aboutsummaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2019-12-12 18:35:43 +0100
committerDaniel Mensinger <daniel@mensinger-ka.de>2020-05-23 18:13:25 +0200
commit210b57a136ebaa1b1cd8a4d08c536b601ba77efb (patch)
tree6de543f7ab8dc08ffde7d32f6484a09ead0612bf /test cases
parent54511b4a0f319514ecc16dc29d964187192f716d (diff)
downloadmeson-210b57a136ebaa1b1cd8a4d08c536b601ba77efb.zip
meson-210b57a136ebaa1b1cd8a4d08c536b601ba77efb.tar.gz
meson-210b57a136ebaa1b1cd8a4d08c536b601ba77efb.tar.bz2
ast: add unittest
Diffstat (limited to 'test cases')
-rw-r--r--test cases/unit/57 introspection/meson.build17
1 files changed, 15 insertions, 2 deletions
diff --git a/test cases/unit/57 introspection/meson.build b/test cases/unit/57 introspection/meson.build
index 9716eae..5d4dd02 100644
--- a/test cases/unit/57 introspection/meson.build
+++ b/test cases/unit/57 introspection/meson.build
@@ -13,7 +13,7 @@ test_bool = not test_bool
set_variable('list_test_plusassign', [])
list_test_plusassign += ['bugs everywhere']
-if false
+if not true
vers_str = '<=99.9.9'
dependency('somethingthatdoesnotexist', required: true, version: '>=1.2.3')
dependency('look_i_have_a_fallback', version: ['>=1.0.0', vers_str], fallback: ['oh_no', 'the_subproject_does_not_exist'])
@@ -26,7 +26,7 @@ var1 = '1'
var2 = 2.to_string()
var3 = 'test3'
-t1 = executable('test' + var1, ['t1.cpp'], link_with: [sharedlib], install: true, build_by_default: get_option('test_opt2'))
+t1 = executable('test' + var1, ['t1.cpp'], link_with: [sharedlib], install: not false, build_by_default: get_option('test_opt2'))
t2 = executable('test@0@'.format('@0@'.format(var2)), sources: ['t2.cpp'], link_with: [staticlib])
t3 = executable(var3, 't3.cpp', link_with: [sharedlib, staticlib], dependencies: [dep1])
@@ -46,3 +46,16 @@ message(osmesa_lib_name) # Infinite recursion gets triggered here when the param
test('test case 1', t1)
test('test case 2', t2)
benchmark('benchmark 1', t3)
+
+### Stuff to test the AST JSON printer
+foreach x : ['a', 'b', 'c']
+ if x == 'a'
+ message('a')
+ elif x == 'b'
+ message('a')
+ else
+ continue
+ endif
+ break
+ continue
+endforeach