@@ -1,12 +1,15 @@
#!/usr/bin/perl
-$count = shift || 1;
+use strict;
+use warnings;
+
+my $count = shift || 1;
print "Running all tests $count times\n";
-for ( $i = 0 ; $i < $count ; $i++ ) {
+for ( my $i = 0 ; $i < $count ; $i++ ) {
print "$i: ";
- $foo = `./runtests.pl`;
+ my $foo = `./runtests.pl`;
if ( $foo =~ m|All tests successful.\n| ) {
print $';
}
@@ -1,5 +1,9 @@
#!/usr/bin/perl
+
+use strict;
+use warnings;
+
use Test::Harness;
-@test = "$ARGV[0]";
+my @test = "$ARGV[0]";
runtests(@test);
@@ -1,20 +1,24 @@
#!/usr/bin/perl
+use strict;
+use warnings;
+
use Test::Harness;
-@dirs = split( / /, $ENV{SUBDIRS} );
+my @dirs = split( / /, $ENV{SUBDIRS} );
+my @scripts = ();
for (@dirs) {
push @scripts, "$_/test";
}
-$output = `id`;
+my $output = `id`;
$output =~ /uid=\d+\((\w+)\).*context=(\w+):(\w+):(\w+)/
|| die("Can't determine user's id\n");
-$unixuser = $1;
-$user = $2;
-$role = $3;
-$type = $4;
+my $unixuser = $1;
+my $user = $2;
+my $role = $3;
+my $type = $4;
print "Running as user $unixuser with context $2:$3:$4\n\n";