aboutsummaryrefslogtreecommitdiff
path: root/tests
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
parent60fe5f8f374d9c680d0458394ac795830eb7e342 (diff)
Make bdep fail if -d option doesn't refer to project or package root
Diffstat (limited to 'tests')
-rw-r--r--tests/init.testscript7
-rw-r--r--tests/release.testscript2
2 files changed, 8 insertions, 1 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:
diff --git a/tests/release.testscript b/tests/release.testscript
index c39bbba..6c89987 100644
--- a/tests/release.testscript
+++ b/tests/release.testscript
@@ -705,7 +705,7 @@ log2 = $gp2 log '--pretty=format:"%d %s"'
Create
EOO
- tag = $release --tag --push -q --yes -d prj/prj
+ tag = $release --tag --push -q --yes -d prj
: update
: