aboutsummaryrefslogtreecommitdiff
path: root/tests/meson.build
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2017-10-11 16:15:57 +0800
committerJonas Ådahl <jadahl@gmail.com>2021-03-26 15:50:36 +0100
commit79b9a42514963939b4c2283f9ab1a081d1bc36dc (patch)
tree74fad0b6b0ae6f6e522745783ed9eeea37ad0ea6 /tests/meson.build
parentf899eff0a7da3db1e47b95c648848a50e38cc29c (diff)
Add meson build system support
Signed-off-by: Jonas Ådahl <jadahl@gmail.com> Reviewed-by: Simon Ser <contact@emersion.fr>
Diffstat (limited to 'tests/meson.build')
-rw-r--r--tests/meson.build14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/meson.build b/tests/meson.build
new file mode 100644
index 0000000..3a6b150
--- /dev/null
+++ b/tests/meson.build
@@ -0,0 +1,14 @@
+prog_scan_sh = find_program('scan.sh')
+prog_scanner = find_program(dep_scanner.get_pkgconfig_variable('wayland_scanner'))
+
+# Check that each protocol passes through the scanner
+foreach protocol_file : protocol_files
+ protocol_path = join_paths(wayland_protocols_srcdir, protocol_file)
+ test_name = 'scan-@0@'.format(protocol_file.underscorify())
+ test(test_name, prog_scan_sh,
+ args: protocol_path,
+ env: [
+ 'SCANNER=@0@'.format(prog_scanner.path()),
+ ]
+ )
+endforeach