aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/meson.build33
1 files changed, 33 insertions, 0 deletions
diff --git a/test/meson.build b/test/meson.build
new file mode 100644
index 0000000..340a7dd
--- /dev/null
+++ b/test/meson.build
@@ -0,0 +1,33 @@
+basic_tests = [
+ 'realize',
+ 'redisplay',
+ 'show_hide',
+ 'stub_hints',
+ 'timer',
+ 'update',
+]
+
+gl_tests = [
+ 'gl_hints'
+]
+
+includes = [
+ '.',
+ '../include',
+]
+
+foreach test : basic_tests
+ test(test,
+ executable('test_' + test, 'test_@0@.c'.format(test),
+ include_directories: include_directories(includes),
+ dependencies: [pugl_dep, stub_backend_dep]))
+endforeach
+
+if opengl_dep.found()
+ foreach test : gl_tests
+ test(test,
+ executable('test_' + test, 'test_@0@.c'.format(test),
+ include_directories: include_directories(includes),
+ dependencies: [pugl_dep, gl_backend_dep]))
+ endforeach
+endif