8 my $srcroot = $ENV{abs_top_srcdir
};
9 my $binroot = $ENV{abs_top_builddir
};
11 # Setup the environment
13 $ENV{DPKG_COLORS
} = 'never';
14 $ENV{PATH
} = "$binroot/src:$binroot/scripts:$binroot/utils:$ENV{PATH}";
16 my $harness = TAP
::Harness
->new({
18 my (undef, $test) = @_;
19 return [ $test ] if $test !~ m/\.t$/ and -x
$test;
24 "$srcroot/dselect/methods"
27 verbosity
=> $ENV{TEST_VERBOSE
},
28 jobs
=> $ENV{TEST_PARALLEL
},
32 my $aggregate = $harness->runtests(@ARGV);
33 die "FAIL: test suite has errors\n" if $aggregate->has_errors;