Commit 0b3febb3 authored by Georges Basile Stavracas Neto's avatar Georges Basile Stavracas Neto Committed by Corentin Noël
Browse files

tests: Use a foreach loop in meson.build

We'll add new tests there, and open coding each test is not really
scalable, so add a foreach loop that generate tests automatically.
parent 5a984e2c
......@@ -6,15 +6,16 @@ test_env = [
'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
]
coordinate = executable(
tests = [
'coordinate',
'coordinate.c',
dependencies: libshumate_dep,
)
]
test(
'coordinate',
coordinate,
env: test_env
)
foreach test : tests
executable = executable(
test,
'@0@.c'.format(test),
dependencies: libshumate_dep,
)
test(test, executable, env: test_env)
endforeach
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