diff options
author | Steven Schubiger <stsc@refcnt.org> | 2019-08-18 20:50:39 +0200 |
---|---|---|
committer | Steven Schubiger <stsc@refcnt.org> | 2019-08-18 20:50:39 +0200 |
commit | 25afef6a972cc5761894da143924856eb19cb749 (patch) | |
tree | 218d53e769ee501225dbdf7540f32e8e1155f629 | |
parent | 7636fceeb6c659db3e40fc90b7e5ef593bc47875 (diff) | |
download | colorize-25afef6a972cc5761894da143924856eb19cb749.tar.gz colorize-25afef6a972cc5761894da143924856eb19cb749.tar.bz2 |
Invoke new test files
-rwxr-xr-x | test.pl | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -7,6 +7,7 @@ use constant true => 1; use constant false => 0; use Colorize::Common qw(:defaults $compiler_flags %BUF_SIZE $valgrind_command $write_to_tmpfile); +use File::Find; use File::Temp qw(tmpnam); use Getopt::Long qw(:config no_auto_abbrev no_ignore_case); use Test::Harness qw(runtests); @@ -28,8 +29,9 @@ my $valgrind_cmd = ''; } { - my @test_files = glob('t/*.t'); - eval { runtests(@test_files) } or warn $@; + my @test_files; + find ({ wanted => sub { push @test_files, $File::Find::name if /\.t$/ } }, 't'); + eval { runtests(sort @test_files) } or warn $@; } plan tests => $tests; |