aboutsummaryrefslogtreecommitdiff
path: root/tests/new.testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2022-07-19 20:20:47 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2022-07-20 13:48:26 +0300
commitddafa0f3475fe532a66879b807b0a8f47ecb201e (patch)
tree569a72699c810c9157c7ba1a6465d1af839017f1 /tests/new.testscript
parent03cb180e90129ef3435dc8ad81deff1810a5c5bf (diff)
Fail if no module specified for being created configuration
Diffstat (limited to 'tests/new.testscript')
-rw-r--r--tests/new.testscript20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/new.testscript b/tests/new.testscript
index 9f7db17..b3cdae4 100644
--- a/tests/new.testscript
+++ b/tests/new.testscript
@@ -1869,4 +1869,24 @@ subdir=hello,no-subdir-source \
%(mkdir|c\+\+|ld|ln) .+%{4}
EOE
}
+
+ : no-module
+ :
+ {
+ $* -C -@cfg prj 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 new -C ... --
+ EOE
+
+ $* -C -@cfg prj -- 2>>/~"%EOE%" &prj/*** &prj-cfg/***;
+ created new executable project prj in $~/prj/
+ created configuration @cfg $~/prj-cfg/ 1 target default,forwarded,auto-synchronized
+ synchronizing:
+ % new prj.+19700101000000%
+ EOE
+
+ $status >'prj configured 0.1.0-a.0.19700101000000'
+ }
}