3 use warnings FATAL => 'all';
4 use Test::More qw(no_plan);
8 use File::Temp qw/tempdir/;
11 BEGIN { use_ok "App::FatPacker", "" }
13 my $keep = $ENV{'FATPACKER_KEEP_TESTDIR'};
14 my $tempdir = tempdir($keep ? (CLEANUP => 0) : (CLEANUP => 1));
15 mkpath([<$tempdir/{lib,fatlib}/t/mod>]);
18 copy $_, "$tempdir/lib/$_" or die "copy failed: $!";
24 my $fp = App::FatPacker->new;
25 my $temp_fh = File::Temp->new;
27 $fp->script_command_file;
32 # Packed, now try using it:
38 ok $t::mod::a::foo eq 'bar';
41 # moving away from the dir so it could be deleted