summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2019-01-16 01:03:40 +0000
committerTim-Philipp Müller <tim@centricular.com>2019-01-16 01:03:40 +0000
commit7ea8ec892980c2e6dcba63106c59ab624b384655 (patch)
tree01b00dec4c5b02299694b2e282dd392f98e8fbe5 /tests
parentd56aec8b0cceb15457712476f9690bd0f18e33ac (diff)
downloadgstreamer-plugins-bad-7ea8ec892980c2e6dcba63106c59ab624b384655.tar.gz
meson: enable tests for orc code
Diffstat (limited to 'tests')
-rw-r--r--tests/check/meson.build25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/check/meson.build b/tests/check/meson.build
index ca74ed723..1790fdf07 100644
--- a/tests/check/meson.build
+++ b/tests/check/meson.build
@@ -146,6 +146,31 @@ foreach t : base_tests
endif
endforeach
+# orc tests
+orc_tests = [
+ ['orc_bayer', files('../../gst/bayer/gstbayerorc.orc')],
+]
+
+if have_orcc
+ # FIXME: there should really just be a separate orc-test-0.4.pc file for this
+ if orc_dep.type_name() == 'pkgconfig'
+ orc_test_dep = cc.find_library('orc-test-0.4', dependencies: orc_dep)
+ else
+ orc_test_dep = dependency('', fallback: ['orc', 'orc_test_dep'])
+ endif
+ foreach t : orc_tests
+ tname = t[0]
+ torcfile = t[1]
+ tcfilename = '@0@.c'.format(tname)
+ test_c = custom_target(tcfilename,
+ output: tcfilename,
+ input: torcfile,
+ command: [orcc, '--include', 'stdint.h', '--test', '-o', '@OUTPUT@', '@INPUT@'])
+ test_exe = executable(tname, test_c, dependencies: [orc_dep, orc_test_dep])
+ test(tname, test_exe)
+ endforeach
+endif
+
if enable_gst_player_tests
subdir ('media')
endif