Skip to content
runtests.pl 54.3 KiB
Newer Older
            # display all files in log/ in a nice way
        if(!$anyway) {
            # a test failed, abort
            print "\n - abort tests\n";
            last;
        }
#######################################################################
# Close command log
#
close(CMDLOG);

# Tests done, stop the servers
stopservers();
    printf("TESTDONE: $ok tests out of $total reported OK: %d%%\n",
        print "TESTFAIL: These test cases failed: $failed\n";
    print "TESTFAIL: No tests were performed!\n";
    my $sofar = time()-$start;
    print "TESTDONE: $all tests were considered during $sofar seconds.\n";
if($skipped) {
    my $s=0;
    print "TESTINFO: $skipped tests were skipped due to these restraints:\n";

    for(keys %skipped) {
        my $r = $_;
        printf "TESTINFO: \"%s\" %d times (", $r, $skipped{$_};

        # now show all test case numbers that had this reason for being
        # skipped
        my $c=0;
        for(0 .. $lasttest) {
            my $t = $_;
            if($teststat[$_] eq $r) {
                print ", " if($c);
                print $_;
                $c++;
            }
        }
        print ")\n";
    }
if($total && ($ok != $total)) {
    exit 1;
}