Commit 706208ef authored by Diego Biurrun's avatar Diego Biurrun

fate: Split fate-pixdesc tests and dispatch them through Make

This allows running all the tests individually and/or in parallel.
parent d98e6c5d
...@@ -47,6 +47,7 @@ ...@@ -47,6 +47,7 @@
/tests/audiogen /tests/audiogen
/tests/base64 /tests/base64
/tests/data/ /tests/data/
/tests/pixfmts.mak
/tests/rotozoom /tests/rotozoom
/tests/tiny_psnr /tests/tiny_psnr
/tests/videogen /tests/videogen
......
...@@ -24,8 +24,10 @@ tests/data/filtergraphs/%: TAG = COPY ...@@ -24,8 +24,10 @@ tests/data/filtergraphs/%: TAG = COPY
tests/data/filtergraphs/%: $(SRC_PATH)/tests/filtergraphs/% | tests/data/filtergraphs tests/data/filtergraphs/%: $(SRC_PATH)/tests/filtergraphs/% | tests/data/filtergraphs
$(M)cp $< $@ $(M)cp $< $@
RUNNING_FATE := $(filter check fate%,$(filter-out fate-rsync,$(MAKECMDGOALS)))
# Check sanity of dependencies when running FATE tests. # Check sanity of dependencies when running FATE tests.
ifneq (,$(filter check fate%,$(filter-out fate-rsync,$(MAKECMDGOALS)))) ifneq (,$(RUNNING_FATE))
CHKCFG = $(if $($(1))$(!$(1)),$($(1)), $(error No such config: $(1))) CHKCFG = $(if $($(1))$(!$(1)),$($(1)), $(error No such config: $(1)))
endif endif
...@@ -165,6 +167,7 @@ testclean: ...@@ -165,6 +167,7 @@ testclean:
$(RM) -r tests/vsynth1 tests/data $(RM) -r tests/vsynth1 tests/data
$(RM) $(CLEANSUFFIXES:%=tests/%) $(RM) $(CLEANSUFFIXES:%=tests/%)
$(RM) $(TESTTOOLS:%=tests/%$(HOSTEXESUF)) $(RM) $(TESTTOOLS:%=tests/%$(HOSTEXESUF))
$(RM) tests/pixfmts.mak
-include $(wildcard tests/*.d) -include $(wildcard tests/*.d)
......
...@@ -162,14 +162,6 @@ video_filter(){ ...@@ -162,14 +162,6 @@ video_filter(){
$FLAGS $ENC_OPTS -vf "$filters" -vcodec rawvideo $* -f nut md5: $FLAGS $ENC_OPTS -vf "$filters" -vcodec rawvideo $* -f nut md5:
} }
pixdesc(){
pix_fmts="$(avconv -pix_fmts list 2>/dev/null | awk 'NR > 8 && /^IO/ { print $2 }' | sort)"
for pix_fmt in $pix_fmts; do
test=$pix_fmt
video_filter "format=$pix_fmt,pixdesctest" -pix_fmt $pix_fmt
done
}
pixfmts(){ pixfmts(){
filter=${test#filter-pixfmts-} filter=${test#filter-pixfmts-}
filter_args=$1 filter_args=$1
......
...@@ -116,8 +116,25 @@ FATE_FILTER_VSYNTH-$(CONFIG_VFLIP_FILTER) += fate-filter-vflip_vflip ...@@ -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-vflip_vflip: CMD = video_filter "vflip,vflip"
FATE_FILTER_VSYNTH-$(CONFIG_FORMAT_FILTER) += fate-filter-pixdesc tests/pixfmts.mak: TAG = GEN
fate-filter-pixdesc: CMD = pixdesc 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 FATE_FILTER_PIXFMTS += fate-filter-pixfmts-copy
......
abgr 037bf9df6a765520ad6d490066bf4b89
argb c442a8261c2265a07212ef0f72e35f5a
bgr24 0d0cb38ab3fa0b2ec0865c14f78b217b
bgr444be d9ea9307d21b162225b8b2c524cf9477
bgr444le 88035350e9da3a8f67387890b956f0bc
bgr48be 00624e6c7ec7ab19897ba2f0a3257fe8
bgr48le d02c235ebba7167881ca2d576497ff84
bgr4_byte 50d23cc82d9dcef2fd12adb81fb9b806
bgr555be 49f01b1f1f0c84fd9e776dd34cc3c280
bgr555le 378d6ac4223651a1adcbf94a3d0d807b
bgr565be 257cf78afa35dc31e9696f139c916715
bgr565le 1dfdd03995c287e3c754b164bf26a355
bgr8 24bd566170343d06fec6fccfff5abc54
bgra 76a18a5151242fa137133f604cd624d2
gbrp 76204621e200a3cc633012f6720c7005
gbrp10be 2ca4a4a589a7dc461ff186913c7a69e5
gbrp10le 46176f1fcc6e67f9862115fe373f73d3
gbrp9be 981c2c1b0ef1791824b4c7518331bc2e
gbrp9le 25fb915ed11d07d631e0e7b78d54bebf
gray db08f7f0751900347e6b8649e4164d21
gray16be 7becf34ae825a3df3969bf4c6bfeb5e2
gray16le 10bd87059b5c189f3caef2837f4f2b5c
monob 668ebe8b8103b9046b251b2fa8a1d88f
monow 9251497f3b0634f1165d12d5a289d943
nv12 e0af357888584d36eec5aa0f673793ef
nv21 9a3297f3b34baa038b1f37cb202b512f
rgb24 b41eba9651e1b5fe386289b506188105
rgb444be 9e89db334568c6b2e3d5d0540f4ba960
rgb444le 0a68cb6de8bf530aa30c5c1205c25155
rgb48be cc139ec1dd9451f0e049c0cb3a0c8aa2
rgb48le 86c5608904f75360d492dbc5c9589969
rgb4_byte c93ba89b74c504e7f5ae9d9ab1546c73
rgb555be 912a62c5e53bfcbac2a0340e10973cf2
rgb555le a937a0fc764fb57dc1b3af87cba0273c
rgb565be 9cadf742e05ddc23a3b5b270f89aad3c
rgb565le d39aa298bb525e9be8860351c6f62dab
rgb8 4a9d8e4f2f154e83a7e1735be6300700
rgba 93a5b3712e6eb8c5b9a09ffc7b9fbc12
uyvy422 adcf64516a19fce44df77082bdb16291
yuv410p 2d9225153c83ee1132397d619d94d1b3
yuv411p 8b298af3e43348ca1b11eb8a3252ac6c
yuv420p eba2f135a08829387e2f698ff72a2939
yuv420p10be 299fe1d785a3d3dd5e70778700d7fb06
yuv420p10le 8aee004e765a5383be0954f5e916b72f
yuv420p16be 16c009a235cd52b74791a895423152a3
yuv420p16le 2d59c4f1d0314a5a957a7cfc4b6fabcc
yuv420p9be ce880fa07830e5297c22acf6e20555ce
yuv420p9le 16543fda8f87d94a6cf857d2e8d4461a
yuv422p c9bba4529821d796a6ab09f6a5fd355a
yuv422p10be 11af7dfafe8bc025c7e3bd82b830fe8a
yuv422p10le ec04efb76efa79bf0d02b21572371a56
yuv422p16be 5499502e1c29534a158a1fe60e889f60
yuv422p16le e3d61fde6978591596bc36b914386623
yuv422p9be 29b71579946940a8c00fa844c9dff507
yuv422p9le 062b7f9cbb972bf36b5bdb1a7623701a
yuv440p 5a064afe2b453bb52cdb3f176b1aa1cf
yuv444p 0a98447b78fd476aa39686da6a74fa2e
yuv444p10be 71be185a2fb7a353eb024df9bc63212d
yuv444p10le c1c6b30a12065c7901c0a267e4861a0f
yuv444p16be 1c6ea2c2f5e539006112ceec3d4e7d90
yuv444p16le 20f86bc2f68d2b3f1f2b48b97b2189f4
yuv444p9be 6ab31f4c12b533ce318ecdff83cdd054
yuv444p9le f0606604a5c08becab6ba500124c4b7c
yuva420p a29884f3f3dfe1e00b961bc17bef3d47
yuva420p10be 145366ff1632de3e300d947f49844284
yuva420p10le d797038552d7f698e4d1db4dfa18ceb0
yuva420p16be 25a335f66a0670911ced818aa42fb670
yuva420p16le 97bf252e6c030f0f0412d3826c2ea259
yuva420p9be 06b764d85bd3c22e9b7ca4babed84d4f
yuva420p9le 1f01cdd4fc46f98d4c11b2947307a0e3
yuva422p 92b6815f465297284cdb843711682cee
yuva422p10be fb240ff9ac49b45b1b3d40df2c89e39d
yuva422p10le f767ede9ba1d427faadc963cf41d2412
yuva422p16be ef442b11b26e5e61f3c958fa309576dd
yuva422p16le 5789009759d7a44dacc6da2194e402b1
yuva422p9be e0d2f45f7f5541eee988137c7ebb3495
yuva422p9le a4ec81f328efd3856dec430fb27f2f56
yuva444p c523716e4900cfe515eaab1d7124fdd9
yuva444p10be f5791a75fdb86da0c243511ef9ab8fbd
yuva444p10le 578e88dfbe4ab07f280fcc7554f3a5c4
yuva444p16be ee7b9dd854e36b165d5b7cffb646ba6c
yuva444p16le ec93b2907923d5655e9fb085479260ef
yuva444p9be 03414257d78e72c28d03e3c247319b7c
yuva444p9le e421d753257e36a79c2c0ec1607ac9e6
yuvj420p 32eec78ba51857b16ce9b813a49b7189
yuvj422p 0dfa0ed434f73be51428758c69e082cb
yuvj440p 657501a28004e27a592757a7509f5189
yuvj444p 98d3d054f2ec09a75eeed5d328dc75b7
yuyv422 f2569f2b5069a0ee0cecae33de0455e3
yvyu422 17aef3e345d23edd3c660a91dcfc5a19
pixdesc-abgr 037bf9df6a765520ad6d490066bf4b89
pixdesc-argb c442a8261c2265a07212ef0f72e35f5a
pixdesc-bgr24 0d0cb38ab3fa0b2ec0865c14f78b217b
pixdesc-bgr444be d9ea9307d21b162225b8b2c524cf9477
pixdesc-bgr444le 88035350e9da3a8f67387890b956f0bc
pixdesc-bgr48be 00624e6c7ec7ab19897ba2f0a3257fe8
pixdesc-bgr48le d02c235ebba7167881ca2d576497ff84
pixdesc-bgr4_byte 50d23cc82d9dcef2fd12adb81fb9b806
pixdesc-bgr555be 49f01b1f1f0c84fd9e776dd34cc3c280
pixdesc-bgr555le 378d6ac4223651a1adcbf94a3d0d807b
pixdesc-bgr565be 257cf78afa35dc31e9696f139c916715
pixdesc-bgr565le 1dfdd03995c287e3c754b164bf26a355
pixdesc-bgr8 24bd566170343d06fec6fccfff5abc54
pixdesc-bgra 76a18a5151242fa137133f604cd624d2
pixdesc-gbrp 76204621e200a3cc633012f6720c7005
pixdesc-gbrp10be 2ca4a4a589a7dc461ff186913c7a69e5
pixdesc-gbrp10le 46176f1fcc6e67f9862115fe373f73d3
pixdesc-gbrp9be 981c2c1b0ef1791824b4c7518331bc2e
pixdesc-gbrp9le 25fb915ed11d07d631e0e7b78d54bebf
pixdesc-gray db08f7f0751900347e6b8649e4164d21
pixdesc-gray16be 7becf34ae825a3df3969bf4c6bfeb5e2
pixdesc-gray16le 10bd87059b5c189f3caef2837f4f2b5c
pixdesc-monob 668ebe8b8103b9046b251b2fa8a1d88f
pixdesc-monow 9251497f3b0634f1165d12d5a289d943
pixdesc-nv12 e0af357888584d36eec5aa0f673793ef
pixdesc-nv21 9a3297f3b34baa038b1f37cb202b512f
pixdesc-rgb24 b41eba9651e1b5fe386289b506188105
pixdesc-rgb444be 9e89db334568c6b2e3d5d0540f4ba960
pixdesc-rgb444le 0a68cb6de8bf530aa30c5c1205c25155
pixdesc-rgb48be cc139ec1dd9451f0e049c0cb3a0c8aa2
pixdesc-rgb48le 86c5608904f75360d492dbc5c9589969
pixdesc-rgb4_byte c93ba89b74c504e7f5ae9d9ab1546c73
pixdesc-rgb555be 912a62c5e53bfcbac2a0340e10973cf2
pixdesc-rgb555le a937a0fc764fb57dc1b3af87cba0273c
pixdesc-rgb565be 9cadf742e05ddc23a3b5b270f89aad3c
pixdesc-rgb565le d39aa298bb525e9be8860351c6f62dab
pixdesc-rgb8 4a9d8e4f2f154e83a7e1735be6300700
pixdesc-rgba 93a5b3712e6eb8c5b9a09ffc7b9fbc12
pixdesc-uyvy422 adcf64516a19fce44df77082bdb16291
pixdesc-yuv410p 2d9225153c83ee1132397d619d94d1b3
pixdesc-yuv411p 8b298af3e43348ca1b11eb8a3252ac6c
pixdesc-yuv420p eba2f135a08829387e2f698ff72a2939
pixdesc-yuv420p10be 299fe1d785a3d3dd5e70778700d7fb06
pixdesc-yuv420p10le 8aee004e765a5383be0954f5e916b72f
pixdesc-yuv420p16be 16c009a235cd52b74791a895423152a3
pixdesc-yuv420p16le 2d59c4f1d0314a5a957a7cfc4b6fabcc
pixdesc-yuv420p9be ce880fa07830e5297c22acf6e20555ce
pixdesc-yuv420p9le 16543fda8f87d94a6cf857d2e8d4461a
pixdesc-yuv422p c9bba4529821d796a6ab09f6a5fd355a
pixdesc-yuv422p10be 11af7dfafe8bc025c7e3bd82b830fe8a
pixdesc-yuv422p10le ec04efb76efa79bf0d02b21572371a56
pixdesc-yuv422p16be 5499502e1c29534a158a1fe60e889f60
pixdesc-yuv422p16le e3d61fde6978591596bc36b914386623
pixdesc-yuv422p9be 29b71579946940a8c00fa844c9dff507
pixdesc-yuv422p9le 062b7f9cbb972bf36b5bdb1a7623701a
pixdesc-yuv440p 5a064afe2b453bb52cdb3f176b1aa1cf
pixdesc-yuv444p 0a98447b78fd476aa39686da6a74fa2e
pixdesc-yuv444p10be 71be185a2fb7a353eb024df9bc63212d
pixdesc-yuv444p10le c1c6b30a12065c7901c0a267e4861a0f
pixdesc-yuv444p16be 1c6ea2c2f5e539006112ceec3d4e7d90
pixdesc-yuv444p16le 20f86bc2f68d2b3f1f2b48b97b2189f4
pixdesc-yuv444p9be 6ab31f4c12b533ce318ecdff83cdd054
pixdesc-yuv444p9le f0606604a5c08becab6ba500124c4b7c
pixdesc-yuva420p a29884f3f3dfe1e00b961bc17bef3d47
pixdesc-yuva420p10be145366ff1632de3e300d947f49844284
pixdesc-yuva420p10led797038552d7f698e4d1db4dfa18ceb0
pixdesc-yuva420p16be25a335f66a0670911ced818aa42fb670
pixdesc-yuva420p16le97bf252e6c030f0f0412d3826c2ea259
pixdesc-yuva420p9be 06b764d85bd3c22e9b7ca4babed84d4f
pixdesc-yuva420p9le 1f01cdd4fc46f98d4c11b2947307a0e3
pixdesc-yuva422p 92b6815f465297284cdb843711682cee
pixdesc-yuva422p10befb240ff9ac49b45b1b3d40df2c89e39d
pixdesc-yuva422p10lef767ede9ba1d427faadc963cf41d2412
pixdesc-yuva422p16beef442b11b26e5e61f3c958fa309576dd
pixdesc-yuva422p16le5789009759d7a44dacc6da2194e402b1
pixdesc-yuva422p9be e0d2f45f7f5541eee988137c7ebb3495
pixdesc-yuva422p9le a4ec81f328efd3856dec430fb27f2f56
pixdesc-yuva444p c523716e4900cfe515eaab1d7124fdd9
pixdesc-yuva444p10bef5791a75fdb86da0c243511ef9ab8fbd
pixdesc-yuva444p10le578e88dfbe4ab07f280fcc7554f3a5c4
pixdesc-yuva444p16beee7b9dd854e36b165d5b7cffb646ba6c
pixdesc-yuva444p16leec93b2907923d5655e9fb085479260ef
pixdesc-yuva444p9be 03414257d78e72c28d03e3c247319b7c
pixdesc-yuva444p9le e421d753257e36a79c2c0ec1607ac9e6
pixdesc-yuvj420p 32eec78ba51857b16ce9b813a49b7189
pixdesc-yuvj422p 0dfa0ed434f73be51428758c69e082cb
pixdesc-yuvj440p 657501a28004e27a592757a7509f5189
pixdesc-yuvj444p 98d3d054f2ec09a75eeed5d328dc75b7
pixdesc-yuyv422 f2569f2b5069a0ee0cecae33de0455e3
pixdesc-yvyu422 17aef3e345d23edd3c660a91dcfc5a19
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