aboutsummaryrefslogtreecommitdiff
path: root/bpkg/test.sh
diff options
context:
space:
mode:
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