test cleanup
[p5sagit/App-FatPacker.git] / t / line.t
CommitLineData
56a51caa 1use strict;
2use warnings FATAL => 'all';
f93cfa2d 3use Test::More tests => 2;
56a51caa 4use File::Temp qw/tempdir/;
5use File::Spec;
6
f93cfa2d 7use App::FatPacker;
56a51caa 8
9chdir 't/line';
10
11my $fp = App::FatPacker->new;
12my $temp_fh = File::Temp->new;
13select $temp_fh;
14$fp->script_command_file([ 'line-test.pl' ]);
15select STDOUT;
16close $temp_fh;
17
18# make sure we don't pick up things from our created dir
19chdir File::Spec->tmpdir;
20
21# Packed, now try using it. This should run the tests inside t/line/a.pm
22do $temp_fh;