aboutsummaryrefslogtreecommitdiffstats
path: root/tests/fate
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2012-04-25 20:49:01 +0100
committerMans Rullgard <mans@mansr.com>2012-04-25 23:19:40 +0100
commitb6a6e90a7c79f9530637a1efb62e0af4049822c1 (patch)
tree11e75da7ffb1702756b6c5da92e4c035738298f3 /tests/fate
parent6eca84bad8b0692eeede7ae363b7bdd580d6407d (diff)
downloadffmpeg-b6a6e90a7c79f9530637a1efb62e0af4049822c1.tar.gz
fft-test: add option to set cpuflag mask
This can be useful for testing. Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'tests/fate')
-rw-r--r--tests/fate/fft.mak26
1 files changed, 14 insertions, 12 deletions
diff --git a/tests/fate/fft.mak b/tests/fate/fft.mak
index 3afbbe0116..d4199384a4 100644
--- a/tests/fate/fft.mak
+++ b/tests/fate/fft.mak
@@ -4,36 +4,38 @@ FATE_FFT += fate-fft-$(1) fate-ifft-$(1) \
fate-rdft-$(1) fate-irdft-$(1) \
fate-dct1d-$(1) fate-idct1d-$(1)
-fate-fft-$(N): CMD = run libavcodec/fft-test -n$(1)
-fate-ifft-$(N): CMD = run libavcodec/fft-test -n$(1) -i
-fate-mdct-$(N): CMD = run libavcodec/fft-test -n$(1) -m
-fate-imdct-$(N): CMD = run libavcodec/fft-test -n$(1) -m -i
-fate-rdft-$(N): CMD = run libavcodec/fft-test -n$(1) -r
-fate-irdft-$(N): CMD = run libavcodec/fft-test -n$(1) -r -i
-fate-dct1d-$(N): CMD = run libavcodec/fft-test -n$(1) -d
-fate-idct1d-$(N): CMD = run libavcodec/fft-test -n$(1) -d -i
+fate-fft-$(N): ARGS = -n$(1)
+fate-ifft-$(N): ARGS = -n$(1) -i
+fate-mdct-$(N): ARGS = -n$(1) -m
+fate-imdct-$(N): ARGS = -n$(1) -m -i
+fate-rdft-$(N): ARGS = -n$(1) -r
+fate-irdft-$(N): ARGS = -n$(1) -r -i
+fate-dct1d-$(N): ARGS = -n$(1) -d
+fate-idct1d-$(N): ARGS = -n$(1) -d -i
endef
$(foreach N, 4 5 6 7 8 9 10 11 12, $(eval $(call DEF_FFT,$(N))))
fate-fft-test: $(FATE_FFT)
$(FATE_FFT): libavcodec/fft-test$(EXESUF)
+$(FATE_FFT): CMD = run libavcodec/fft-test $(CPUFLAGS:%=-c%) $(ARGS)
$(FATE_FFT): REF = /dev/null
define DEF_FFT_FIXED
FATE_FFT_FIXED += fate-fft-fixed-$(1) fate-ifft-fixed-$(1) \
fate-mdct-fixed-$(1) fate-imdct-fixed-$(1)
-fate-fft-fixed-$(1): CMD = run libavcodec/fft-fixed-test -n$(1)
-fate-ifft-fixed-$(1): CMD = run libavcodec/fft-fixed-test -n$(1) -i
-fate-mdct-fixed-$(1): CMD = run libavcodec/fft-fixed-test -n$(1) -m
-fate-imdct-fixed-$(1): CMD = run libavcodec/fft-fixed-test -n$(1) -m -i
+fate-fft-fixed-$(1): ARGS = -n$(1)
+fate-ifft-fixed-$(1): ARGS = -n$(1) -i
+fate-mdct-fixed-$(1): ARGS = -n$(1) -m
+fate-imdct-fixed-$(1): ARGS = -n$(1) -m -i
endef
$(foreach N, 4 5 6 7 8 9 10 11 12, $(eval $(call DEF_FFT_FIXED,$(N))))
fate-fft-fixed-test: $(FATE_FFT_FIXED)
$(FATE_FFT_FIXED): libavcodec/fft-fixed-test$(EXESUF)
+$(FATE_FFT_FIXED): CMD = run libavcodec/fft-fixed-test $(CPUFLAGS:%=-c%) $(ARGS)
$(FATE_FFT_FIXED): REF = /dev/null
FATE_TESTS += $(FATE_FFT) $(FATE_FFT_FIXED)