This commit is contained in:
Jason van Zyl 2006-10-12 19:42:51 +00:00
parent 9000f21fd7
commit 5221e959f4

View File

@ -71,7 +71,18 @@ while ( <TESTS> )
} }
print "};" . "\n"; print "};" . "\n";
$TEST_SUITE = <<EOF;
TestSuite suite = new TestSuite(IntegrationTests.class.getName());
for (int i = 0; i < tests.length; i++) {
suite.addTest(new IntegrationTests(tests[i]));
}
return suite;
}
EOF
print $TEST_SUITE;
opendir(DIR, $dirname) or die "can't opendir $dirname: $!"; opendir(DIR, $dirname) or die "can't opendir $dirname: $!";
while (defined($filename = readdir(DIR))) { while (defined($filename = readdir(DIR))) {
next unless (-d "$dirname/$filename"); next unless (-d "$dirname/$filename");