File: line.t

package info (click to toggle)
libapp-fatpacker-perl 0.010008-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 140 kB
  • sloc: perl: 325; makefile: 2
file content (22 lines) | stat: -rw-r--r-- 477 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use strict;
use warnings FATAL => 'all';
use Test::More tests => 2;
use File::Temp qw/tempdir/;
use File::Spec;

use App::FatPacker;

chdir 't/line';

my $fp = App::FatPacker->new;
my $temp_fh = File::Temp->new;
select $temp_fh;
$fp->script_command_file([ 'line-test.pl' ]);
select STDOUT;
close $temp_fh;

# make sure we don't pick up things from our created dir
chdir File::Spec->tmpdir;

# Packed, now try using it. This should run the tests inside t/line/a.pm
do $temp_fh;