performtest: use -u with diff
authorH. Peter Anvin <hpa@zytor.com>
Sun, 5 Oct 2008 05:01:42 +0000 (22:01 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Sun, 5 Oct 2008 05:01:42 +0000 (22:01 -0700)
Unified diffs are the only sane option.  When calling diff, pass the
-u option.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
test/performtest.pl

index 5574fc6c940e1bb2e0db0e41e7f113b399f31b26..78e22f6e3dbe8f152ccb15eb1f5cd73aac3ce3cb 100755 (executable)
@@ -100,7 +100,7 @@ sub perform {
                 if($diff) {
                     for(@failedfiles) {
                         if($_ eq $stdoutfile or $_ eq $stderrfile) {
-                            system "diff golden/$testname/$subname/$_ $outputdir/$testname/$subname/$_";
+                            system "diff -u golden/$testname/$subname/$_ $outputdir/$testname/$subname/$_";
                             print "\n";
                         }
                     }