From a6281939dff0e1a6f63769d5285cce104bc00046 Mon Sep 17 00:00:00 2001 From: Daniel Mensinger Date: Mon, 22 Apr 2019 20:46:25 +0200 Subject: [PATCH] ast: Improved test case --- test cases/unit/55 introspection/meson.build | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/test cases/unit/55 introspection/meson.build b/test cases/unit/55 introspection/meson.build index 8ae00c222..f11d64d47 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)