Couple more test-harness platform tweaks

This commit is contained in:
Brian Cox 2017-09-10 00:21:44 -07:00
parent 2a278ad29b
commit 15b7d18104
2 changed files with 29 additions and 22 deletions

View File

@ -105,12 +105,12 @@ EOT
#
sub initialize() {
my $twstr = getPolicyFileString();
twtools::GeneratePolicyFile($twstr);
my $twstr = getPolicyFileString();
twtools::GeneratePolicyFile($twstr);
# this test requires a clean start of it's tree
#
system("rm -rf $twtools::twrootdir/" . $TESTS{"0-createTempDir"}{dir});
# this test requires a clean start of it's tree
#
system("rm -rf $twtools::twrootdir/" . $TESTS{"0-createTempDir"}{dir});
}
@ -120,30 +120,37 @@ sub initialize() {
#
sub run() {
my $twpassed = 1;
twtools::logStatus("*** Beginning $description\n");
printf("%-30s", "-- $description");
twtools::logStatus("*** Beginning $description\n");
printf("%-30s", "-- $description");
if ($^O eq "skyos") {
++$twtools::twskippedtests;
print "SKIPPED; TODO: SkyOS has fewer expected changes here; refactor so we can test for correct values\n";
return;
}
#########################################################
#
# Run the tests describe above in the %TESTS structure.
#
$twpassed = twtools::RunIntegrityTests(%TESTS);
my $twpassed = 1;
#########################################################
#
# See if the tests all succeeded...
#
if ($twpassed) {
#########################################################
#
# Run the tests describe above in the %TESTS structure.
#
$twpassed = twtools::RunIntegrityTests(%TESTS);
#########################################################
#
# See if the tests all succeeded...
#
if ($twpassed) {
++$twtools::twpassedtests;
print "PASSED\n";
}
else {
}
else {
++$twtools::twfailedtests;
print "*FAILED*\n";
}
}
}

View File

@ -137,7 +137,7 @@ processCommandLine();
prepareListOfTests() if scalar(@twtests) == 0; # only if none were on the cmdline
print "\n";
print "initializing for tests on $^O\n\n";
print "initializing for tests on $^O...\n\n";
print "logging to $ENV{'PWD'}/$twtools::twrootdir/status.log\n\n";