diff options
author | Mans Rullgard <mans@mansr.com> | 2012-05-18 10:33:28 +0100 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2012-05-29 08:35:41 +0100 |
commit | 7263cd554496d95dec4b97df3e7a935208acd5b1 (patch) | |
tree | c113b3a9413c5044f709a3ead093a24df66aef66 /tests/Makefile | |
parent | 47b5996bb018e15bde6b6af9b5c849961b4bf845 (diff) | |
download | ffmpeg-7263cd554496d95dec4b97df3e7a935208acd5b1.tar.gz |
fate: convert codec-regression.sh to makefile rules
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'tests/Makefile')
-rw-r--r-- | tests/Makefile | 47 |
1 files changed, 17 insertions, 30 deletions
diff --git a/tests/Makefile b/tests/Makefile index 22eb04307a..5ed1e5eefb 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -1,11 +1,7 @@ -AREF = fate-acodec-aref -VREF = fate-vsynth1-vref fate-vsynth2-vref -REFS = $(AREF) $(VREF) +VREF = tests/vsynth1/00.pgm +AREF = tests/data/asynth1.sw -$(VREF): avconv$(EXESUF) tests/vsynth1/00.pgm tests/vsynth2/00.pgm -$(AREF): avconv$(EXESUF) tests/data/asynth1.sw - -OBJDIRS += tests/data tests/vsynth1 tests/vsynth2 +OBJDIRS += tests/data tests/vsynth1 # Required due to missing automatic dependency tracking for HOSTOBJS. tests/rotozoom.o tests/videogen.o: tests/utils.c @@ -13,16 +9,22 @@ tests/rotozoom.o tests/videogen.o: tests/utils.c tests/vsynth1/00.pgm: tests/videogen$(HOSTEXESUF) | tests/vsynth1 $(M)./$< 'tests/vsynth1/' -tests/vsynth2/00.pgm: tests/rotozoom$(HOSTEXESUF) | tests/vsynth2 - $(M)./$< $(SRC_PATH)/tests/lena.pnm 'tests/vsynth2/' - tests/data/asynth1.sw: tests/audiogen$(HOSTEXESUF) | tests/data $(M)./$< $@ tests/data/asynth-%.wav: tests/audiogen$(HOSTEXESUF) | tests/data $(M)./$< $@ $(subst -, ,$*) -tests/data/asynth% tests/vsynth%/00.pgm: TAG = GEN +tests/data/vsynth1.yuv: tests/videogen$(HOSTEXESUF) | tests/data + $(M)$< >$@ + +tests/data/vsynth2.yuv: tests/rotozoom$(HOSTEXESUF) | tests/data + $(M)$< $(SRC_PATH)/tests/lena.pnm >$@ + +tests/data/asynth% tests/data/vsynth%.yuv tests/vsynth%/00.pgm: TAG = GEN + +include $(SRC_PATH)/tests/fate/acodec.mak +include $(SRC_PATH)/tests/fate/vcodec.mak include $(SRC_PATH)/tests/fate/aac.mak include $(SRC_PATH)/tests/fate/ac3.mak @@ -66,17 +68,11 @@ include $(SRC_PATH)/tests/fate/vqf.mak include $(SRC_PATH)/tests/fate/wavpack.mak include $(SRC_PATH)/tests/fate/wma.mak -FATE_ACODEC = $(ACODEC_TESTS:%=fate-acodec-%) -FATE_VSYNTH1 = $(VCODEC_TESTS:%=fate-vsynth1-%) -FATE_VSYNTH2 = $(VCODEC_TESTS:%=fate-vsynth2-%) -FATE_VCODEC = $(FATE_VSYNTH1) $(FATE_VSYNTH2) FATE_LAVF = $(LAVF_TESTS:%=fate-lavf-%) FATE_LAVFI = $(LAVFI_TESTS:%=fate-lavfi-%) FATE_SEEK = $(SEEK_TESTS:seek_%=fate-seek-%) -FATE_AVCONV += $(FATE_ACODEC) \ - $(FATE_VCODEC) \ - $(FATE_LAVF) \ +FATE_AVCONV += $(FATE_LAVF) \ $(FATE_LAVFI) \ $(FATE_SEEK) \ @@ -93,23 +89,14 @@ FATE += $(FATE_LIBAVUTIL) $(FATE_AVCONV) $(FATE_SAMPLES_AVCONV): avconv$(EXESUF) -$(filter-out %-aref,$(FATE_ACODEC)): $(AREF) -$(filter-out %-vref,$(FATE_VSYNTH1)): fate-vsynth1-vref -$(filter-out %-vref,$(FATE_VSYNTH2)): fate-vsynth2-vref -$(FATE_LAVF): $(REFS) -$(FATE_LAVFI): $(REFS) tools/lavfi-showfiltfmts$(EXESUF) -$(FATE_SEEK): fate-codec fate-lavf libavformat/seek-test$(EXESUF) +$(FATE_LAVF): $(AREF) $(VREF) +$(FATE_LAVFI): $(VREF) tools/lavfi-showfiltfmts$(EXESUF) +$(FATE_SEEK): fate-acodec fate-vsynth2 fate-lavf libavformat/seek-test$(EXESUF) -$(FATE_ACODEC): CMD = codectest acodec -$(FATE_VSYNTH1): CMD = codectest vsynth1 -$(FATE_VSYNTH2): CMD = codectest vsynth2 $(FATE_LAVF): CMD = lavftest $(FATE_LAVFI): CMD = lavfitest $(FATE_SEEK): CMD = seektest -fate-codec: fate-acodec fate-vcodec -fate-acodec: $(FATE_ACODEC) -fate-vcodec: $(FATE_VCODEC) fate-lavf: $(FATE_LAVF) fate-lavfi: $(FATE_LAVFI) fate-seek: $(FATE_SEEK) |