aboutsummaryrefslogtreecommitdiff
path: root/tests/new.test
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-07-11 14:36:04 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-07-11 14:36:04 +0200
commita8f253fabeb331d02505dae508d6f2f168a6a1d8 (patch)
treece11a3d8be87821950cbc5352f4c482b8e01cf18 /tests/new.test
parent8a211c3b1fbb448ed8ea0284fc13422a0ff7d033 (diff)
Write project name to package manifest in new command
Diffstat (limited to 'tests/new.test')
-rw-r--r--tests/new.test26
1 files changed, 16 insertions, 10 deletions
diff --git a/tests/new.test b/tests/new.test
index 94886ad..1329ee5 100644
--- a/tests/new.test
+++ b/tests/new.test
@@ -56,24 +56,30 @@ status += -d prj
: name
:
- : Test that the package name is validated.
+ : Test that the package/project name is validated.
:
{
- : project
+ : package
:
$* x 2>'error: invalid package name: length is less than two characters' != 0
- : separate
+ : project
:
- : Here we also test that the project name is not validated as a package.
+ : Here we also test that the project name is also validated as a package.
:
- {
- $* -t empty x 2>>/"EOE" &x/***;
- created new empty project x in $~/x/
- EOE
+ $* -t empty x 2>'error: invalid project name: length is less than two characters' != 0
- $* --package y -d x 2>'error: invalid package name: length is less than two characters' != 0
- }
+ : project-derived
+ :
+ $* -t empty xx 2>>/"EOE";
+ created new empty project xx in $~/xx/
+ EOE
+ mv xx x &x/***;
+ $* --package pkg -d x 2>>/"EOE"
+ warning: project name 'x' is invalid: length is less than two characters
+ info: leaving the 'project' manifest value empty
+ created new executable package pkg in $~/x/pkg/
+ EOE
}
}