summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2018-05-15 23:15:03 +0100
committerMark Thompson <sw@jkqxz.net>2018-05-21 20:54:52 +0100
commitba7d1377e85662f7b4ae728719c10d5427cc6b9b (patch)
tree05668054af2a8f22405a2cc35de3ac796cce53b0 /tests
parent70d25268c21cbee5f08304da95be1f647c630c15 (diff)
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/Makefile5
-rw-r--r--tests/fate/hw.mak6
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)