summaryrefslogtreecommitdiffstats
path: root/test/meson.build
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-07-17 17:33:37 -0400
committerDavid Robillard <d@drobilla.net>2022-07-18 20:10:45 -0400
commite2731cf7008b2f1f9e1f44283b07c3fe0296bbee (patch)
tree7e24b7005920af4d0e969000dc80e3fdffe3eb41 /test/meson.build
parent1cda90c39e4b2c55c775cd6bd6dcb08aee4d640d (diff)
downloadsord-e2731cf7008b2f1f9e1f44283b07c3fe0296bbee.tar.gz
sord-e2731cf7008b2f1f9e1f44283b07c3fe0296bbee.tar.bz2
sord-e2731cf7008b2f1f9e1f44283b07c3fe0296bbee.zip
Switch to meson build system
Diffstat (limited to 'test/meson.build')
-rw-r--r--test/meson.build22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/meson.build b/test/meson.build
new file mode 100644
index 0000000..72a4870
--- /dev/null
+++ b/test/meson.build
@@ -0,0 +1,22 @@
+autoship = find_program('autoship', required: false)
+
+unit_tests = [
+ 'sord',
+]
+
+foreach unit : unit_tests
+ test(
+ unit,
+ executable(
+ 'test_@0@'.format(unit),
+ files('test_@0@.c'.format(unit)),
+ c_args: c_suppressions,
+ dependencies: sord_dep,
+ ),
+ suite: 'unit',
+ )
+endforeach
+
+if autoship.found()
+ test('autoship', autoship, args: ['test', sord_src_root], suite: 'data')
+endif