use File::Temp qw(tempfile tempdir tmpnam);
use IPC::Open3 qw(open3);
use Symbol qw(gensym);
+use TAP::Harness;
use Test::More;
-my $tests = 24;
+my $tests = 25;
my %BUF_SIZE = (
normal => 1024,
return $tmpfile;
};
+{
+ my @tests = glob('t/*.t');
+ my $harness = TAP::Harness->new;
+ $harness->runtests(@tests);
+}
+
plan tests => $tests;
SKIP: {
like(qx(valgrind $program none/none $infile1 2>&1 >/dev/null), qr/no leaks are possible/, 'valgrind memleaks');
}
+ {
+ my $debug = tmpnam();
+ is(system("gcc -DDEBUG -o $debug $source"), 0, 'debugging build');
+ unlink $debug if -e $debug;
+ }
+
print <<'EOT';
Colors
======