tests: Move all test programs to a subdirectory
[libav.git] / tests / fate / fft.mak
CommitLineData
240c5d6f 1define DEF_FFT
f6ccee9b
DB
2FATE_DCT-$(CONFIG_DCT) += fate-dct1d-$(1) fate-idct1d-$(1)
3FATE_FFT-$(CONFIG_FFT) += fate-fft-$(1) fate-ifft-$(1)
4FATE_MDCT-$(CONFIG_MDCT) += fate-mdct-$(1) fate-imdct-$(1)
5FATE_RDFT-$(CONFIG_RDFT) += fate-rdft-$(1) fate-irdft-$(1)
240c5d6f 6
b6a6e90a
MR
7fate-fft-$(N): ARGS = -n$(1)
8fate-ifft-$(N): ARGS = -n$(1) -i
9fate-mdct-$(N): ARGS = -n$(1) -m
10fate-imdct-$(N): ARGS = -n$(1) -m -i
11fate-rdft-$(N): ARGS = -n$(1) -r
12fate-irdft-$(N): ARGS = -n$(1) -r -i
13fate-dct1d-$(N): ARGS = -n$(1) -d
14fate-idct1d-$(N): ARGS = -n$(1) -d -i
240c5d6f
MR
15endef
16
17$(foreach N, 4 5 6 7 8 9 10 11 12, $(eval $(call DEF_FFT,$(N))))
4c3fbd4f 18
f6ccee9b 19fate-dct-float: $(FATE_DCT-yes)
24f45c16 20fate-fft-float: $(FATE_FFT-yes)
f6ccee9b
DB
21fate-mdct-float: $(FATE_MDCT-yes)
22fate-rdft-float: $(FATE_RDFT-yes)
23
24FATE_FFT_ALL = $(FATE_DCT-yes) $(FATE_FFT-yes) $(FATE_MDCT-yes) $(FATE_RDFT-yes)
25
a6a750c7
DB
26$(FATE_FFT_ALL): libavcodec/tests/fft$(EXESUF)
27$(FATE_FFT_ALL): CMD = run libavcodec/tests/fft $(CPUFLAGS:%=-c%) $(ARGS)
b41a1089 28
240c5d6f 29define DEF_FFT_FIXED
f6ccee9b
DB
30FATE_FFT_FIXED-$(CONFIG_FFT) += fate-fft-fixed-$(1) fate-ifft-fixed-$(1)
31FATE_MDCT_FIXED-$(CONFIG_MDCT) += fate-mdct-fixed-$(1) fate-imdct-fixed-$(1)
240c5d6f 32
b6a6e90a
MR
33fate-fft-fixed-$(1): ARGS = -n$(1)
34fate-ifft-fixed-$(1): ARGS = -n$(1) -i
35fate-mdct-fixed-$(1): ARGS = -n$(1) -m
36fate-imdct-fixed-$(1): ARGS = -n$(1) -m -i
240c5d6f 37endef
b41a1089 38
240c5d6f 39$(foreach N, 4 5 6 7 8 9 10 11 12, $(eval $(call DEF_FFT_FIXED,$(N))))
b41a1089 40
24f45c16 41fate-fft-fixed: $(FATE_FFT_FIXED-yes)
f6ccee9b
DB
42fate-mdct-fixed: $(FATE_MDCT_FIXED-yes)
43
44FATE_FFT_FIXED_ALL = $(FATE_FFT_FIXED-yes) $(FATE_MDCT_FIXED-yes)
45
a6a750c7
DB
46$(FATE_FFT_FIXED_ALL): libavcodec/tests/fft-fixed$(EXESUF)
47$(FATE_FFT_FIXED_ALL): CMD = run libavcodec/tests/fft-fixed $(CPUFLAGS:%=-c%) $(ARGS)
f6ccee9b
DB
48
49$(FATE_FFT_ALL) $(FATE_FFT_FIXED_ALL): REF = /dev/null
50
51fate-dct: fate-dct-float
52fate-fft: fate-fft-float fate-fft-fixed
53fate-mdct: fate-mdct-float fate-mdct-fixed
54fate-rdft: fate-rdft-float
b41a1089 55
f6ccee9b
DB
56FATE-$(CONFIG_AVCODEC) += $(FATE_FFT_ALL) $(FATE_FFT_FIXED_ALL)
57fate-fft-all: $(FATE_FFT_ALL) $(FATE_FFT_FIXED_ALL)