forked from FFmpeg/FFmpeg
fate: add rawdiff and use it for subtitles
We want subtitles tests to match exactly line endings and trailing characters.
This commit is contained in:
parent
8022bb1d92
commit
d97d4795fd
2 changed files with 2 additions and 0 deletions
|
@ -229,6 +229,7 @@ fi
|
||||||
if test -e "$ref" || test $cmp = "oneline" ; then
|
if test -e "$ref" || test $cmp = "oneline" ; then
|
||||||
case $cmp in
|
case $cmp in
|
||||||
diff) diff -u -b "$ref" "$outfile" >$cmpfile ;;
|
diff) diff -u -b "$ref" "$outfile" >$cmpfile ;;
|
||||||
|
rawdiff)diff -u "$ref" "$outfile" >$cmpfile ;;
|
||||||
oneoff) oneoff "$ref" "$outfile" >$cmpfile ;;
|
oneoff) oneoff "$ref" "$outfile" >$cmpfile ;;
|
||||||
stddev) stddev "$ref" "$outfile" >$cmpfile ;;
|
stddev) stddev "$ref" "$outfile" >$cmpfile ;;
|
||||||
oneline)oneline "$ref" "$outfile" >$cmpfile ;;
|
oneline)oneline "$ref" "$outfile" >$cmpfile ;;
|
||||||
|
|
|
@ -62,4 +62,5 @@ FATE_SUBTITLES-$(call ENCMUX, ASS, ASS) += $(FATE_SUBTITLES_ASS-yes)
|
||||||
FATE_SUBTITLES += $(FATE_SUBTITLES-yes)
|
FATE_SUBTITLES += $(FATE_SUBTITLES-yes)
|
||||||
|
|
||||||
FATE_SAMPLES_FFMPEG += $(FATE_SUBTITLES)
|
FATE_SAMPLES_FFMPEG += $(FATE_SUBTITLES)
|
||||||
|
fate-subtitles: CMP = rawdiff
|
||||||
fate-subtitles: $(FATE_SUBTITLES)
|
fate-subtitles: $(FATE_SUBTITLES)
|
||||||
|
|
Loading…
Add table
Reference in a new issue