diff options
author | Victor Toso <me@victortoso.com> | 2018-08-29 11:52:25 +0200 |
---|---|---|
committer | Victor Toso <me@victortoso.com> | 2018-08-30 09:15:11 +0200 |
commit | 29b11bb1586f8f3722e27ec5e1cfbf8c43134d3a (patch) | |
tree | cc43bb2c088158d0e78051ebef13c1860592b667 /tests | |
parent | 9c9479d821dea38fbbd24d927824cf309b3c02bb (diff) | |
download | grilo-29b11bb1586f8f3722e27ec5e1cfbf8c43134d3a.tar.gz |
meson: build and run unit tests
Test builds were missing in meson. Building and running with a 10s
timeout (instead of 30s as default).
Also created a include_directory for GrlNet library to be included in
tests.
Signed-off-by: Victor Toso <victortoso@gnome.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/meson.build | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/meson.build b/tests/meson.build new file mode 100644 index 0000000..605ad56 --- /dev/null +++ b/tests/meson.build @@ -0,0 +1,21 @@ +# meson.build +# +# Author: Victor Toso <me@victortoso.com> +# +# Copyright (C) 2018 Grilo Project + +tests = [ + 'autoptr', + 'lib-net', + 'registry', +] + +foreach t: tests + source = t + '.c' + exe = executable(t, + source, + install: false, + link_with: [libgrl, libgrlnet], + dependencies: [libgrl_dep, libgrlnet_dep]) + test(t, exe, timeout:10) +endforeach |