3 # lib.pl is the file where database specific things should live,
4 # whereever possible. For example, you define certain constants
8 use warnings FATAL
=> 'all';
19 END { defined( $test_dir ) and rmtree
$test_dir }
23 unless( defined( $test_dir ) )
25 $test_dir = File
::Spec
->rel2abs( File
::Spec
->curdir () );
26 $test_dir = File
::Spec
->catdir ( $test_dir, "test_output_" . $$ );
27 $^O
eq 'VMS' and $test_dir = VMS
::Filespec
::unixify
($test_dir);
39 unless( defined( $test_data ) )
41 my $dist_basedir = Cwd
::abs_path
( File
::Spec
->catdir( File
::Basename
::dirname
($0), File
::Spec
->updir() ) );
42 $test_data = File
::Spec
->catdir( $dist_basedir, 'test_data' );
43 $^O
eq 'VMS' and $test_data = VMS
::Filespec
::unixify
($test_data);