mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-24 16:08:14 +02:00
lua tests: script tests: add a new folder
Move the script-tester.c one folder up so that it is common for wplua and these tests.
This commit is contained in:
parent
fcfae4eeb3
commit
8e78ec58e3
5 changed files with 21 additions and 7 deletions
|
|
@ -62,6 +62,7 @@ endif
|
|||
subdir('wp')
|
||||
if build_modules
|
||||
subdir('wplua')
|
||||
subdir('scripts')
|
||||
subdir('modules')
|
||||
endif
|
||||
subdir('examples')
|
||||
|
|
|
|||
19
tests/scripts/meson.build
Normal file
19
tests/scripts/meson.build
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
common_deps = [wplua_dep, pipewire_dep, wp_dep]
|
||||
common_env = common_test_env
|
||||
common_env.set('G_TEST_SRCDIR', meson.current_source_dir())
|
||||
common_env.set('G_TEST_BUILDDIR', meson.current_build_dir())
|
||||
common_args = [
|
||||
'-D_GNU_SOURCE',
|
||||
]
|
||||
|
||||
script_tester = executable('script-tester',
|
||||
'..'/'script-tester.c',
|
||||
dependencies: common_deps, c_args: common_args
|
||||
)
|
||||
|
||||
test(
|
||||
'test-lua-event-policy-hooks',
|
||||
script_tester,
|
||||
args: ['policy-tests', 'policy-hooks.lua'],
|
||||
env: common_env,
|
||||
)
|
||||
|
|
@ -14,7 +14,7 @@ test(
|
|||
)
|
||||
|
||||
script_tester = executable('script-tester',
|
||||
'script-tester.c',
|
||||
'..'/'script-tester.c',
|
||||
dependencies: common_deps, c_args: common_args
|
||||
)
|
||||
|
||||
|
|
@ -60,9 +60,3 @@ test(
|
|||
args: ['lua-api-tests', 'event-hooks.lua'],
|
||||
env: common_env,
|
||||
)
|
||||
test(
|
||||
'test-lua-event-policy-hooks',
|
||||
script_tester,
|
||||
args: ['policy-tests', 'policy-hooks.lua'],
|
||||
env: common_env,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue