diff options
author | Matthias Klumpp <matthias@tenstral.net> | 2017-09-12 14:29:23 +0200 |
---|---|---|
committer | Matthias Klumpp <matthias@tenstral.net> | 2017-09-12 17:32:03 +0200 |
commit | 6cd3f066b4c4e9ffbe7c8af6a183a6ebe39925dc (patch) | |
tree | 4f27c3d8dc22fdfdf5659f09405ed35dcc5b9e21 /test cases | |
parent | d83c2894428104188cd5f75565ee7bd2b4fdcd54 (diff) | |
download | meson-6cd3f066b4c4e9ffbe7c8af6a183a6ebe39925dc.zip meson-6cd3f066b4c4e9ffbe7c8af6a183a6ebe39925dc.tar.gz meson-6cd3f066b4c4e9ffbe7c8af6a183a6ebe39925dc.tar.bz2 |
d: Implement specific properties for D features
Diffstat (limited to 'test cases')
-rw-r--r-- | test cases/d/9 features/meson.build | 27 |
1 files changed, 14 insertions, 13 deletions
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) |