aboutsummaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2019-04-20 23:33:30 +0200
committerDaniel Mensinger <daniel@mensinger-ka.de>2019-04-23 09:10:48 +0200
commit38f2eae6815baad42248f5461bea049f1f2e1f13 (patch)
tree95b0ab6f28a2e4848c48d622dfb2198f7544c0b4 /test cases
parent75b7a856cd7a5fc8af697584aec453c82c7c923d (diff)
downloadmeson-38f2eae6815baad42248f5461bea049f1f2e1f13.zip
meson-38f2eae6815baad42248f5461bea049f1f2e1f13.tar.gz
meson-38f2eae6815baad42248f5461bea049f1f2e1f13.tar.bz2
ast: Make sure to avoid infinite recursions
Diffstat (limited to 'test cases')
-rw-r--r--test cases/unit/55 introspection/meson.build14
1 files changed, 14 insertions, 0 deletions
diff --git a/test cases/unit/55 introspection/meson.build b/test cases/unit/55 introspection/meson.build
index 7ee11a8..8ae00c2 100644
--- a/test cases/unit/55 introspection/meson.build
+++ b/test cases/unit/55 introspection/meson.build
@@ -28,6 +28,20 @@ t1 = executable('test' + var1, ['t1.cpp'], link_with: [sharedlib], install: true
t2 = executable('test@0@'.format('@0@'.format(var2)), 't2.cpp', link_with: [staticlib])
t3 = executable(var3, 't3.cpp', link_with: [sharedlib, staticlib], dependencies: [dep1])
+### BEGIN: Test stolen from taisei: https://github.com/taisei-project/taisei/blob/master/meson.build#L293
+have_posix = true
+systype = (have_posix ? 'POSIX (@0@)' : '@0@').format(host_machine.system())
+systype = '@0@, @1@, @2@'.format(systype, host_machine.cpu_family(), host_machine.cpu())
+systype = '@0@ (cross-compiling)'.format(systype)
+summary = '''
+
+Summary:
+ System type: @0@
+'''.format(systype)
+
+message(summary)
+### END: Test stolen from taisei
+
test('test case 1', t1)
test('test case 2', t2)
benchmark('benchmark 1', t3)