Changeset 9320 in webkit for trunk/JavaScriptCore/tests
- Timestamp:
- Jun 6, 2005, 10:25:20 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/tests/mozilla/run-mozilla-tests
r7171 r9320 1 perl jsDriver.pl -e kjs -L ecma/Date -f actual.html 2 "$SYMROOTS/jst" expected.html actual.html 1 #!/usr/bin/perl -w 2 3 use strict; 4 5 my $result = system "perl", "jsDriver.pl", "-e", "kjs", "-L", "ecma/Date", "-f", "actual.html"; 6 7 exit $result if $result; 8 9 my %failures; 10 11 open EXPECTED, "expected.html" or die; 12 while (<EXPECTED>) { 13 last if /failures reported\.$/; 14 } 15 while (<EXPECTED>) { 16 chomp; 17 $failures{$_} = 1; 18 } 19 close EXPECTED; 20 21 my %newFailures; 22 23 open ACTUAL, "actual.html" or die; 24 while (<ACTUAL>) { 25 last if /failures reported\.$/; 26 } 27 while (<ACTUAL>) { 28 chomp; 29 if ($failures{$_}) { 30 delete $failures{$_}; 31 } else { 32 $newFailures{$_} = 1; 33 } 34 } 35 close ACTUAL; 36 37 my $numNewFailures = %newFailures + 0; 38 if ($numNewFailures) { 39 print "\n** Danger, Will Robinson! Danger! The following failures have been introduced:\n"; 40 foreach my $failure (sort keys %newFailures) { 41 print "\t$failure\n"; 42 } 43 } 44 45 my $numOldFailures = %failures + 0; 46 if ($numOldFailures) { 47 print "\nYou fixed the following test"; 48 print "s" if $numOldFailures != 1; 49 print ":\n"; 50 foreach my $failure (sort keys %failures) { 51 print "\t$failure\n"; 52 } 53 } 54 55 print "\n"; 56 57 print "$numNewFailures regression"; 58 print "s" if $numNewFailures != 1; 59 print " found.\n"; 60 61 print "$numOldFailures test"; 62 print "s" if $numOldFailures != 1; 63 print " fixed.\n"; 64 65 print "OK.\n" if $numNewFailures == 0;
Note:
See TracChangeset
for help on using the changeset viewer.