From 6cd3f066b4c4e9ffbe7c8af6a183a6ebe39925dc Mon Sep 17 00:00:00 2001 From: Matthias Klumpp Date: Tue, 12 Sep 2017 14:29:23 +0200 Subject: d: Implement specific properties for D features --- test cases/d/9 features/meson.build | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) (limited to 'test cases') diff --git a/test cases/d/9 features/meson.build b/test cases/d/9 features/meson.build index 9fda3bd..1d36b9d 100644 --- a/test cases/d/9 features/meson.build +++ b/test cases/d/9 features/meson.build @@ -1,28 +1,29 @@ project('D Features', 'd') -dc = meson.get_compiler('d') # directory for data data_dir = join_paths(meson.current_source_dir(), 'data') -# test string import dirs only -dfeatures_simple = dc.feature_args(import_dirs: [data_dir]) - -e_plain = executable('dapp_menu', 'app.d', d_args: dfeatures_simple) +e_plain = executable('dapp_menu', + 'app.d', + d_feature_import_dirs: [data_dir] +) test('dapp_menu_t_fail', e_plain, should_fail: true) test('dapp_menu_t', e_plain, args: ['menu']) # test feature versions and string imports -dfeatures_version = dc.feature_args(import_dirs: [data_dir], versions: ['No_Menu', 'With_People']) -e_versions = executable('dapp_versions', 'app.d', d_args: dfeatures_version) +e_versions = executable('dapp_versions', + 'app.d', + d_feature_import_dirs: [data_dir], + d_feature_versions: ['No_Menu', 'With_People'] +) test('dapp_versions_t_fail', e_versions, args: ['menu'], should_fail: true) test('dapp_versions_t', e_versions, args: ['people']) # test everything and unittests -dfeatures_test = dc.feature_args( - import_dirs: [data_dir], - versions: ['No_Menu', 'With_People'], - unittest: true +e_test = executable('dapp_test', + 'app.d', + d_feature_import_dirs: [data_dir], + d_feature_versions: ['No_Menu', 'With_People'], + d_feature_unittest: true ) -e_test = executable('dapp_test', 'app.d', - d_args: dfeatures_test) test('dapp_test', e_test) -- cgit v1.1