aboutsummaryrefslogtreecommitdiff
path: root/tests/config.testscript
diff options
context:
space:
mode:
Diffstat (limited to 'tests/config.testscript')
-rw-r--r--tests/config.testscript20
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>!;