Support not having a lib directory
[p5sagit/App-FatPacker.git] / t / pack.t
diff --git a/t/pack.t b/t/pack.t
deleted file mode 100644 (file)
index 4d98b0b..0000000
--- a/t/pack.t
+++ /dev/null
@@ -1,36 +0,0 @@
-#!perl
-use strict;
-use warnings FATAL => 'all';
-use Test::More qw(no_plan);
-use File::Basename;
-use File::Copy;
-use File::Path;
-use File::Temp;
-
-BEGIN { use_ok "App::FatPacker", "" }
-
-my $tempdir = File::Temp->newdir;
-mkpath([<$tempdir/{lib,fatlib}/t/mod>]);
-
-for(<t/mod/*.pm>) {
-  copy $_, "$tempdir/lib/$_" or die "copy failed: $!";
-}
-
-chdir $tempdir;
-
-my $fp = App::FatPacker->new;
-my $temp_fh = File::Temp->new;
-select $temp_fh;
-$fp->script_command_file;
-print "1;\n";
-select STDOUT;
-close $temp_fh;
-
-# Packed, now try using it:
-require $temp_fh;
-
-{
-  require t::mod::a;
-  no warnings 'once';
-  ok $t::mod::a::foo eq 'bar';
-}