Commit 698ac8f9 authored by Diego Biurrun's avatar Diego Biurrun

fate: Make null comparison method more useful

This allows dropping /dev/null as reference value when no output is generated.
parent c483398b
...@@ -203,7 +203,7 @@ if [ $err -gt 128 ]; then ...@@ -203,7 +203,7 @@ if [ $err -gt 128 ]; then
test "${sig}" = "${sig%[!A-Za-z]*}" || unset sig test "${sig}" = "${sig%[!A-Za-z]*}" || unset sig
fi fi
if test -e "$ref" || test $cmp = "oneline" ; then if test -e "$ref" || test $cmp = "oneline" || test $cmp = "null" ; then
case $cmp in case $cmp in
diff) diff -u -b "$ref" "$outfile" >$cmpfile ;; diff) diff -u -b "$ref" "$outfile" >$cmpfile ;;
oneoff) oneoff "$ref" "$outfile" >$cmpfile ;; oneoff) oneoff "$ref" "$outfile" >$cmpfile ;;
......
FATE_LIBAVCODEC-$(CONFIG_GOLOMB) += fate-golomb FATE_LIBAVCODEC-$(CONFIG_GOLOMB) += fate-golomb
fate-golomb: libavcodec/tests/golomb$(EXESUF) fate-golomb: libavcodec/tests/golomb$(EXESUF)
fate-golomb: CMD = run libavcodec/tests/golomb fate-golomb: CMD = run libavcodec/tests/golomb
fate-golomb: REF = /dev/null fate-golomb: CMP = null
FATE_LIBAVCODEC-$(CONFIG_IDCTDSP) += fate-idct8x8 FATE_LIBAVCODEC-$(CONFIG_IDCTDSP) += fate-idct8x8
fate-idct8x8: libavcodec/tests/dct$(EXESUF) fate-idct8x8: libavcodec/tests/dct$(EXESUF)
fate-idct8x8: CMD = run libavcodec/tests/dct -i fate-idct8x8: CMD = run libavcodec/tests/dct -i
fate-idct8x8: CMP = null fate-idct8x8: CMP = null
fate-idct8x8: REF = /dev/null
FATE_LIBAVCODEC-$(CONFIG_IIRFILTER) += fate-iirfilter FATE_LIBAVCODEC-$(CONFIG_IIRFILTER) += fate-iirfilter
fate-iirfilter: libavcodec/tests/iirfilter$(EXESUF) fate-iirfilter: libavcodec/tests/iirfilter$(EXESUF)
...@@ -17,7 +16,6 @@ FATE_LIBAVCODEC-$(CONFIG_RANGECODER) += fate-rangecoder ...@@ -17,7 +16,6 @@ FATE_LIBAVCODEC-$(CONFIG_RANGECODER) += fate-rangecoder
fate-rangecoder: libavcodec/tests/rangecoder$(EXESUF) fate-rangecoder: libavcodec/tests/rangecoder$(EXESUF)
fate-rangecoder: CMD = run libavcodec/tests/rangecoder fate-rangecoder: CMD = run libavcodec/tests/rangecoder
fate-rangecoder: CMP = null fate-rangecoder: CMP = null
fate-rangecoder: REF = /dev/null
FATE-$(CONFIG_AVCODEC) += $(FATE_LIBAVCODEC-yes) FATE-$(CONFIG_AVCODEC) += $(FATE_LIBAVCODEC-yes)
fate-libavcodec: $(FATE_LIBAVCODEC-yes) fate-libavcodec: $(FATE_LIBAVCODEC-yes)
FATE_LIBAVUTIL += fate-adler32 FATE_LIBAVUTIL += fate-adler32
fate-adler32: libavutil/tests/adler32$(EXESUF) fate-adler32: libavutil/tests/adler32$(EXESUF)
fate-adler32: CMD = run libavutil/tests/adler32 fate-adler32: CMD = run libavutil/tests/adler32
fate-adler32: REF = /dev/null fate-adler32: CMP = null
FATE_LIBAVUTIL += fate-aes FATE_LIBAVUTIL += fate-aes
fate-aes: libavutil/tests/aes$(EXESUF) fate-aes: libavutil/tests/aes$(EXESUF)
fate-aes: CMD = run libavutil/tests/aes fate-aes: CMD = run libavutil/tests/aes
fate-aes: REF = /dev/null fate-aes: CMP = null
FATE_LIBAVUTIL += fate-avstring FATE_LIBAVUTIL += fate-avstring
fate-avstring: libavutil/tests/avstring$(EXESUF) fate-avstring: libavutil/tests/avstring$(EXESUF)
...@@ -23,12 +23,12 @@ fate-blowfish: CMD = run libavutil/tests/blowfish ...@@ -23,12 +23,12 @@ fate-blowfish: CMD = run libavutil/tests/blowfish
FATE_LIBAVUTIL += fate-cpu FATE_LIBAVUTIL += fate-cpu
fate-cpu: libavutil/tests/cpu$(EXESUF) fate-cpu: libavutil/tests/cpu$(EXESUF)
fate-cpu: CMD = run libavutil/tests/cpu $(CPUFLAGS:%=-c%) $(THREADS:%=-t%) fate-cpu: CMD = run libavutil/tests/cpu $(CPUFLAGS:%=-c%) $(THREADS:%=-t%)
fate-cpu: REF = /dev/null fate-cpu: CMP = null
FATE_LIBAVUTIL-$(HAVE_THREADS) += fate-cpu_init FATE_LIBAVUTIL-$(HAVE_THREADS) += fate-cpu_init
fate-cpu_init: libavutil/tests/cpu_init$(EXESUF) fate-cpu_init: libavutil/tests/cpu_init$(EXESUF)
fate-cpu_init: CMD = run libavutil/tests/cpu_init fate-cpu_init: CMD = run libavutil/tests/cpu_init
fate-cpu_init: REF = /dev/null fate-cpu_init: CMP = null
FATE_LIBAVUTIL += fate-crc FATE_LIBAVUTIL += fate-crc
fate-crc: libavutil/tests/crc$(EXESUF) fate-crc: libavutil/tests/crc$(EXESUF)
...@@ -37,7 +37,7 @@ fate-crc: CMD = run libavutil/tests/crc ...@@ -37,7 +37,7 @@ fate-crc: CMD = run libavutil/tests/crc
FATE_LIBAVUTIL += fate-des FATE_LIBAVUTIL += fate-des
fate-des: libavutil/tests/des$(EXESUF) fate-des: libavutil/tests/des$(EXESUF)
fate-des: CMD = run libavutil/tests/des fate-des: CMD = run libavutil/tests/des
fate-des: REF = /dev/null fate-des: CMP = null
FATE_LIBAVUTIL += fate-eval FATE_LIBAVUTIL += fate-eval
fate-eval: libavutil/tests/eval$(EXESUF) fate-eval: libavutil/tests/eval$(EXESUF)
...@@ -51,7 +51,6 @@ FATE_LIBAVUTIL += fate-float-dsp ...@@ -51,7 +51,6 @@ FATE_LIBAVUTIL += fate-float-dsp
fate-float-dsp: libavutil/tests/float_dsp$(EXESUF) fate-float-dsp: libavutil/tests/float_dsp$(EXESUF)
fate-float-dsp: CMD = run libavutil/tests/float_dsp fate-float-dsp: CMD = run libavutil/tests/float_dsp
fate-float-dsp: CMP = null fate-float-dsp: CMP = null
fate-float-dsp: REF = /dev/null
FATE_LIBAVUTIL += fate-hmac FATE_LIBAVUTIL += fate-hmac
fate-hmac: libavutil/tests/hmac$(EXESUF) fate-hmac: libavutil/tests/hmac$(EXESUF)
...@@ -72,7 +71,7 @@ fate-sha: CMD = run libavutil/tests/sha ...@@ -72,7 +71,7 @@ fate-sha: CMD = run libavutil/tests/sha
FATE_LIBAVUTIL += fate-tree FATE_LIBAVUTIL += fate-tree
fate-tree: libavutil/tests/tree$(EXESUF) fate-tree: libavutil/tests/tree$(EXESUF)
fate-tree: CMD = run libavutil/tests/tree fate-tree: CMD = run libavutil/tests/tree
fate-tree: REF = /dev/null fate-tree: CMP = null
FATE_LIBAVUTIL += fate-xtea FATE_LIBAVUTIL += fate-xtea
fate-xtea: libavutil/tests/xtea$(EXESUF) fate-xtea: libavutil/tests/xtea$(EXESUF)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment