File: line.t

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

BEGIN { use_ok "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;