aboutsummaryrefslogtreecommitdiff
path: root/tests/init.testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2021-03-10 22:15:57 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-03-11 12:53:14 +0300
commita6f2a14c328000950f6055ab41c967145ec718db (patch)
tree9a87609466501bc64d3733c720cbcfb678fa2b70 /tests/init.testscript
parent60fe5f8f374d9c680d0458394ac795830eb7e342 (diff)
Make bdep fail if -d option doesn't refer to project or package root
Diffstat (limited to 'tests/init.testscript')
-rw-r--r--tests/init.testscript7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/init.testscript b/tests/init.testscript
index a0aef6d..ba67b56 100644
--- a/tests/init.testscript
+++ b/tests/init.testscript
@@ -219,6 +219,13 @@ deinit += -d prj
created new library package libprj in $~/prj/libprj/
EOE
+ # While at it, make sure we fail if misspell the package directory.
+ #
+ mkdir prj/libpr;
+ $init --all -d prj/libpr 2>>/~"%EOE%" != 0;
+ error: prj/libpr/ is not a package or project directory
+ EOE
+
$init --all -d prj/libprj 2>>/~"%EOE%";
initializing in project $~/prj/
synchronizing: