aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/new.testscript32
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/new.testscript b/tests/new.testscript
index 8a6ff65..161fda1 100644
--- a/tests/new.testscript
+++ b/tests/new.testscript
@@ -230,6 +230,38 @@ status += -d prj
EOE
}
+ # Test create-from-existin functionality.
+ #
+ : exist
+ :
+ {
+ : basics
+ :
+ mkdir libfoo &!libfoo/;
+ git -C libfoo init -q;
+ cat <<EOI >=libfoo/README.md &!libfoo/README.md;
+ # libfoo
+
+ cool foo
+
+ Some more stuff.
+ EOI
+ cat <<EOI >=libfoo/LICENSE &!libfoo/LICENSE;
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+ ...
+ EOI
+ $* -t lib --output-dir libfoo 2>>/"EOE" &libfoo/***;
+ created new library project libfoo in $~/libfoo/
+ EOE
+ test -f libfoo/.gitignore;
+ sed -n -e 's/^summary: (.+)$/\1/p' libfoo/manifest >'cool foo';
+ sed -n -e 's/^license: ([^ ]+).*$/\1/p' libfoo/manifest >'ASLv2'
+ }
+
: pkg
:
{