diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2022-07-19 20:20:47 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2022-07-20 13:48:26 +0300 |
commit | ddafa0f3475fe532a66879b807b0a8f47ecb201e (patch) | |
tree | 569a72699c810c9157c7ba1a6465d1af839017f1 /tests/config.testscript | |
parent | 03cb180e90129ef3435dc8ad81deff1810a5c5bf (diff) |
Fail if no module specified for being created configuration
Diffstat (limited to 'tests/config.testscript')
-rw-r--r-- | tests/config.testscript | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/tests/config.testscript b/tests/config.testscript index b02a2b2..17cfcb1 100644 --- a/tests/config.testscript +++ b/tests/config.testscript @@ -184,6 +184,22 @@ deinit += -d prj created configuration $~/cfg/ 1 target default,forwarded,auto-synchronized EOE } + + : no-module + { + $clone_root_prj; + + $* create @cfg 2>>EOE != 0; + error: no module(s) specified for configuration to be created + info: for example, for C/C++ configuration specify 'cc' + info: use '--' to create configuration without modules + info: for example: bdep config create ... -- + EOE + + $* create @cfg -- 2>>/"EOE" &prj-cfg/*** + created configuration @cfg $~/prj-cfg/ 1 target default,forwarded,auto-synchronized + EOE + } } : add @@ -257,8 +273,8 @@ deinit += -d prj { $clone_root_prj; - $* create @cfg &prj-cfg/*** 2>!; - $* create --config-type host @host-cfg &prj-host-cfg/*** 2>!; + $* create @cfg -- &prj-cfg/*** 2>!; + $* create --config-type host @host-cfg -- &prj-host-cfg/*** 2>!; $* link @cfg @host-cfg 2>!; |