diff options
author | Mark Thompson <sw@jkqxz.net> | 2018-05-15 23:15:03 +0100 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2018-05-21 20:54:52 +0100 |
commit | ba7d1377e85662f7b4ae728719c10d5427cc6b9b (patch) | |
tree | 05668054af2a8f22405a2cc35de3ac796cce53b0 /tests | |
parent | 70d25268c21cbee5f08304da95be1f647c630c15 (diff) | |
download | ffmpeg-ba7d1377e85662f7b4ae728719c10d5427cc6b9b.tar.gz |
hwcontext: Add test for device creation and derivation
This uses any devices it can find on the host system - on a system with no
hardware device support or in builds with no support included it will do
nothing and pass.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile | 5 | ||||
-rw-r--r-- | tests/fate/hw.mak | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile index 6074ac748e..98d7b6d608 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -131,6 +131,7 @@ include $(SRC_PATH)/tests/fate/gif.mak include $(SRC_PATH)/tests/fate/h264.mak include $(SRC_PATH)/tests/fate/hap.mak include $(SRC_PATH)/tests/fate/hevc.mak +include $(SRC_PATH)/tests/fate/hw.mak include $(SRC_PATH)/tests/fate/id3v2.mak include $(SRC_PATH)/tests/fate/image.mak include $(SRC_PATH)/tests/fate/indeo.mak @@ -215,6 +216,10 @@ $(addprefix fate-, $(IGNORE_TESTS)): REPORT=ignore fate:: $(FATE) +# Tests requiring hardware support are not included in a default fate run. +fate-hw: $(FATE_HW-yes) +FATE += $(FATE_HW-yes) + $(FATE) $(FATE_TESTS-no): export PROGSUF = $(PROGSSUF) $(FATE) $(FATE_TESTS-no): $(FATE_UTILS:%=tests/%$(HOSTEXESUF)) @echo "TEST $(@:fate-%=%)" diff --git a/tests/fate/hw.mak b/tests/fate/hw.mak new file mode 100644 index 0000000000..d606cdeab6 --- /dev/null +++ b/tests/fate/hw.mak @@ -0,0 +1,6 @@ +FATE_HWCONTEXT += fate-hwdevice +fate-hwdevice: libavutil/tests/hwdevice$(EXESUF) +fate-hwdevice: CMD = run libavutil/tests/hwdevice +fate-hwdevice: CMP = null + +FATE_HW-$(CONFIG_AVUTIL) += $(FATE_HWCONTEXT) |