X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ftests%2Fmake-grade;h=5f60fa3d1fe7edddbed270886228e6bd5881548a;hb=f72a951030690e4b08b7ba94e63d275fa961d5e2;hp=e6c4b9cdaad627eec2f2ab46612f7b3c43b987ce;hpb=1b18b7d238bdd54d416331436220e4517c4b35db;p=pintos-anon diff --git a/src/tests/make-grade b/src/tests/make-grade index e6c4b9c..5f60fa3 100755 --- a/src/tests/make-grade +++ b/src/tests/make-grade @@ -110,6 +110,9 @@ foreach my $name (keys (%verdicts)) { } } push (@overall, sprintf ("TOTAL TESTING SCORE: %.1f%%", $pct_actual)); +if (sprintf ("%.1f", $pct_actual) eq sprintf ("%.1f", $pct_possible)) { + push (@overall, "ALL TESTED PASSED -- PERFECT SCORE"); +} my (@divider) = ('', '- ' x 38, ''); @@ -132,13 +135,17 @@ for my $test (@failures) { if (open (OUTPUT, '<', "$test.output")) { print "\nOUTPUT FROM $test:\n\n"; - my ($panics) = 0; + my ($panics, $boots) = (0, 0); while () { if (/PANIC/ && ++$panics > 2) { print "[...details of additional panic(s) omitted...]\n"; last; } print; + if (/Pintos booting/ && ++$boots > 1) { + print "[...details of reboot(s) omitted...]\n"; + last; + } } close (OUTPUT); }