Commit 7ea8ec89 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠

meson: enable tests for orc code

parent d56aec8b
Pipeline #15085 passed with stages
in 20 minutes and 5 seconds
...@@ -146,6 +146,31 @@ foreach t : base_tests ...@@ -146,6 +146,31 @@ foreach t : base_tests
endif endif
endforeach 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)
orc_test_dep = dependency('', fallback: ['orc', 'orc_test_dep'])
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)
if enable_gst_player_tests if enable_gst_player_tests
subdir ('media') subdir ('media')
endif endif
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