aboutsummaryrefslogtreecommitdiff
path: root/bpkg/test.sh
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-09-18 07:58:04 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-09-18 07:58:04 +0200
commitf146720a3800fa2a9025a7326e0f0a2ce9048364 (patch)
treeef463d23a347032fe1c30e617223edd80bdf6278 /bpkg/test.sh
parent9accdefc33940d713828195313ca1a0eb0de030f (diff)
Implement pkg-clean command
Diffstat (limited to 'bpkg/test.sh')
-rwxr-xr-xbpkg/test.sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/bpkg/test.sh b/bpkg/test.sh
index b7282b6..3ab76df 100755
--- a/bpkg/test.sh
+++ b/bpkg/test.sh
@@ -291,3 +291,34 @@ test pkg-update $pkg
test pkg-update $pkg
test pkg-disfigure $pkg
test pkg-purge $pkg
+
+##
+## pkg-clean
+##
+
+fail pkg-clean # package name expected
+fail pkg-clean $pkg # no such package
+test pkg-fetch -e $pkga
+fail pkg-clean $pkg # wrong package state
+test pkg-purge $pkg
+
+# src == out
+#
+test pkg-fetch -e $pkga
+test pkg-unpack $pkg
+test pkg-configure $pkg
+test pkg-update $pkg
+test pkg-clean $pkg
+test pkg-clean $pkg
+test pkg-disfigure $pkg
+test pkg-purge $pkg
+
+# src != out
+#
+test pkg-unpack -e $pkgd
+test pkg-configure $pkg
+test pkg-update $pkg
+test pkg-clean $pkg
+test pkg-clean $pkg
+test pkg-disfigure $pkg
+test pkg-purge $pkg