aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-10-22 11:07:03 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-10-22 11:07:03 +0200
commite6f10cabb7fbdba6fd11bcd109dbe765285c762c (patch)
tree350e0bf1230e930d2c9512eab396a80ffc98b610 /tests
parent56af938cd423c1b6730d753ba1ce7b70cd660c29 (diff)
Implement dependents check in drop command
Also, add support for commands to return program status.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/test.sh b/tests/test.sh
index c6c8a79..932b0d6 100755
--- a/tests/test.sh
+++ b/tests/test.sh
@@ -153,6 +153,8 @@ function gone ()
fi
}
+#if false; then
+
##
## rep-create
##
@@ -1129,3 +1131,24 @@ test rep-add $rep/satisfy/t4c
test rep-fetch
test build -y libbaz
stat libfoo "configured 1.1.0"
+
+##
+## drop
+##
+test cfg-create --wipe
+
+fail drop -p # package name expected
+fail drop -p libfoo # unknown package
+fail drop -p libfoo/1.0.0 # unknown package
+
+# dependents
+#
+test cfg-create --wipe
+test rep-add $rep/satisfy/t4c
+test rep-fetch
+test build -y libbaz
+fail drop -y libfoo
+fail drop -y libfoo libbar
+fail drop -y libfoo libbaz
+test drop -y libfoo libbaz libbar
+test drop -y --drop-dependent libfoo