aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/common/67 modules/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/common/67 modules/meson.build')
-rw-r--r--meson/test cases/common/67 modules/meson.build14
1 files changed, 14 insertions, 0 deletions
diff --git a/meson/test cases/common/67 modules/meson.build b/meson/test cases/common/67 modules/meson.build
new file mode 100644
index 000000000..ad33ed6d4
--- /dev/null
+++ b/meson/test cases/common/67 modules/meson.build
@@ -0,0 +1,14 @@
+project('module test', 'c')
+
+modtest = import('modtest')
+modtest.print_hello()
+assert(modtest.found())
+
+modtest = import('modtest', required : get_option('disabled'))
+assert(not modtest.found())
+
+notfound = import('not-found', required : false)
+assert(not notfound.found())
+
+disabled = import('not-found', required : false, disabler : true)
+assert(is_disabler(disabled))