fate: add 'null' comparison method
authorMans Rullgard <mans@mansr.com>
Sun, 3 Jul 2011 23:56:38 +0000 (00:56 +0100)
committerMans Rullgard <mans@mansr.com>
Mon, 4 Jul 2011 08:54:16 +0000 (09:54 +0100)
Setting CMP=null uses stdout from the test as the diff record in
the report without further inspection.  This can be useful when
the exit status of the test itself determines success while the
output is informative.

Signed-off-by: Mans Rullgard <mans@mansr.com>
tests/fate-run.sh

index 2c744b880f73f68b06a21dddd6fe3cd3ac4c4421..10497c497e7909b6a55c85d05ee8238986b5993f 100755 (executable)
@@ -123,6 +123,7 @@ if test -e "$ref"; then
         diff)   diff -u -w "$ref" "$outfile"            >$cmpfile ;;
         oneoff) oneoff     "$ref" "$outfile" "$fuzz"    >$cmpfile ;;
         stddev) stddev     "$ref" "$outfile" "$fuzz"    >$cmpfile ;;
+        null)   cat               "$outfile"            >$cmpfile ;;
     esac
     cmperr=$?
     test $err = 0 && err=$cmperr