fate: add rawdiff and use it for subtitles
authorClément Bœsch <u@pkh.me>
Sat, 11 Oct 2014 17:17:33 +0000 (19:17 +0200)
committerClément Bœsch <u@pkh.me>
Wed, 15 Oct 2014 17:24:39 +0000 (19:24 +0200)
We want subtitles tests to match exactly line endings and trailing
characters.

tests/fate-run.sh
tests/fate/subtitles.mak

index 224da8b..2f18fa3 100755 (executable)
@@ -229,6 +229,7 @@ fi
 if test -e "$ref" || test $cmp = "oneline" ; then
     case $cmp in
         diff)   diff -u -b "$ref" "$outfile"            >$cmpfile ;;
+        rawdiff)diff -u    "$ref" "$outfile"            >$cmpfile ;;
         oneoff) oneoff     "$ref" "$outfile"            >$cmpfile ;;
         stddev) stddev     "$ref" "$outfile"            >$cmpfile ;;
         oneline)oneline    "$ref" "$outfile"            >$cmpfile ;;
index 0134752..2c6edc6 100644 (file)
@@ -62,4 +62,5 @@ FATE_SUBTITLES-$(call ENCMUX, ASS, ASS) += $(FATE_SUBTITLES_ASS-yes)
 FATE_SUBTITLES += $(FATE_SUBTITLES-yes)
 
 FATE_SAMPLES_FFMPEG += $(FATE_SUBTITLES)
+fate-subtitles: CMP = rawdiff
 fate-subtitles: $(FATE_SUBTITLES)