From 900c0c422b951f3eefcda677b5fdcb2b2056f62e Mon Sep 17 00:00:00 2001 From: pmichaud Date: Wed, 29 Aug 2012 07:12:49 -0500 Subject: Add script to run module tests. --- tools/build/modules-test.pl | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tools/build/modules-test.pl (limited to 'tools/build/modules-test.pl') diff --git a/tools/build/modules-test.pl b/tools/build/modules-test.pl new file mode 100644 index 0000000..b469d6c --- /dev/null +++ b/tools/build/modules-test.pl @@ -0,0 +1,22 @@ +#! perl + +use Cwd; + +my $base = shift @ARGV; +my $perl6 = shift @ARGV; + +while (<>) { + next if /^\s*(#|$)/; + my ($moduledir) = /(\S+)/; + print "Testing modules/$moduledir...\n"; + if (-d "$base/modules/$moduledir/t") { + chdir("$base/modules/$moduledir"); + system('prove', '-e', $perl6, '-r', 't'); + } + else { + print "...no t/ directory found.\n"; + } + print "\n"; +} + +0; -- cgit v1.1