diff options
author | Diego Biurrun <diego@biurrun.de> | 2014-07-29 02:41:28 -0700 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2014-08-01 01:18:30 -0700 |
commit | 706208ef47bffd525c982975d2756f7b2b220b8d (patch) | |
tree | 1857faef038f92b0929bb9cf725a5ede4913dcea /tests/fate | |
parent | d98e6c5d5d80c1dfe0c30f2e73d41a3aea0b920d (diff) |
fate: Split fate-pixdesc tests and dispatch them through Make
This allows running all the tests individually and/or in parallel.
Diffstat (limited to 'tests/fate')
-rw-r--r-- | tests/fate/filter-video.mak | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak index 28699322b8..bbe77ce6e2 100644 --- a/tests/fate/filter-video.mak +++ b/tests/fate/filter-video.mak @@ -116,8 +116,25 @@ FATE_FILTER_VSYNTH-$(CONFIG_VFLIP_FILTER) += fate-filter-vflip_vflip fate-filter-vflip_vflip: CMD = video_filter "vflip,vflip" -FATE_FILTER_VSYNTH-$(CONFIG_FORMAT_FILTER) += fate-filter-pixdesc -fate-filter-pixdesc: CMD = pixdesc +tests/pixfmts.mak: TAG = GEN +tests/pixfmts.mak: avconv$(EXESUF) + $(M)printf "PIXFMTS = " > $@ + $(Q)$(TARGET_EXEC) $(TARGET_PATH)/$< -pix_fmts list 2> /dev/null | awk 'NR > 8 && /^IO/ { printf $$2 " " }' >> $@ + $(Q)printf "\n" >> $@ + +ifneq (,$(RUNNING_FATE)) +-include tests/pixfmts.mak +endif + +define PIXDESC_TEST +FATE_FILTER_PIXDESC-$(CONFIG_FORMAT_FILTER) += fate-filter-pixdesc-$(1) +fate-filter-pixdesc-$(1): CMD = video_filter "format=$(1),pixdesctest" -pix_fmt $(1) +endef + +$(foreach fmt, $(PIXFMTS), $(eval $(call PIXDESC_TEST,$(fmt)))) + +fate-filter-pixdesc: $(FATE_FILTER_PIXDESC-yes) +FATE_FILTER_VSYNTH-yes += $(FATE_FILTER_PIXDESC-yes) FATE_FILTER_PIXFMTS += fate-filter-pixfmts-copy |