]> git.refcnt.org Git - colorize.git/commitdiff
Run test files from test directory
authorSteven Schubiger <stsc@refcnt.org>
Sun, 9 Aug 2015 20:11:45 +0000 (22:11 +0200)
committerSteven Schubiger <stsc@refcnt.org>
Sun, 9 Aug 2015 20:11:45 +0000 (22:11 +0200)
test.pl

diff --git a/test.pl b/test.pl
index 959d83f1817bc26acaa5cdd925bef38e5433974a..32b1b51ce3c6ba08b8df0c97a2c4580c52b89707 100755 (executable)
--- a/test.pl
+++ b/test.pl
@@ -8,6 +8,7 @@ use constant false => 0;
 use File::Temp qw(tempfile tempdir tmpnam);
 use IPC::Open3 qw(open3);
 use Symbol qw(gensym);
+use TAP::Harness;
 use Test::More;
 
 my $tests = 25;
@@ -30,6 +31,12 @@ my $write_to_tmpfile = sub
     return $tmpfile;
 };
 
+{
+    my @tests = glob('t/*.t');
+    my $harness = TAP::Harness->new;
+    $harness->runtests(@tests);
+}
+
 plan tests => $tests;
 
 SKIP: {