aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2019-04-22 20:46:25 +0200
committerDaniel Mensinger <daniel@mensinger-ka.de>2019-04-23 09:10:48 +0200
commita6281939dff0e1a6f63769d5285cce104bc00046 (patch)
tree7d79afd635bf7b95f25264cad8566ac1d81bac24
parentb7ba98a6577c471e14aa71c5878d5190db70c413 (diff)
downloadmeson-a6281939dff0e1a6f63769d5285cce104bc00046.zip
meson-a6281939dff0e1a6f63769d5285cce104bc00046.tar.gz
meson-a6281939dff0e1a6f63769d5285cce104bc00046.tar.bz2
ast: Improved test case
-rw-r--r--test cases/unit/55 introspection/meson.build16
1 files changed, 4 insertions, 12 deletions
diff --git a/test cases/unit/55 introspection/meson.build b/test cases/unit/55 introspection/meson.build
index 8ae00c2..f11d64d 100644
--- a/test cases/unit/55 introspection/meson.build
+++ b/test cases/unit/55 introspection/meson.build
@@ -28,19 +28,11 @@ 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())
+### BEGIN: Test inspired by taisei: https://github.com/taisei-project/taisei/blob/master/meson.build#L293
+systype = '@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
+message(systype)
+### END: Test inspired by taisei
test('test case 1', t1)
test('test case 2', t2)