aboutsummaryrefslogtreecommitdiff
path: root/tests/test.sh
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-02-13 16:30:31 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-02-13 16:30:31 +0200
commit74bcab9dfa50647dd6615f261f2c2bc9f5a38951 (patch)
tree3cd60a784ff8a16b58ddd2ec4bb12003e9d11719 /tests/test.sh
parent4fd0df2573341824eea5edfaf45be33997ce56ce (diff)
Offer in pkg-build to drop prerequisite packages that are no longer necessary
This can happen if a package that is being upgraded/downgraded changes its dependencies.
Diffstat (limited to 'tests/test.sh')
-rwxr-xr-xtests/test.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/test.sh b/tests/test.sh
index 2dcd6f7..e4d962b 100755
--- a/tests/test.sh
+++ b/tests/test.sh
@@ -1204,6 +1204,34 @@ test cfg-fetch
test pkg-build -y libbaz
stat libfoo "configured 1.1.0"
+# drop prerequisites on downgrade
+#
+test rep-create repository/1/satisfy/t5
+test cfg-create --wipe
+test cfg-add $rep/satisfy/t2
+test cfg-fetch
+
+test pkg-build -y libbar
+stat libfoo "configured 1.0.0"
+stat libbar "configured 1.0.0 hold_package"
+
+test cfg-add $rep/satisfy/t5
+test cfg-fetch
+
+test pkg-build -y libbar
+stat libfoo "available 1.0.0"
+stat libbar "configured 1.2.0 hold_package"
+
+#@@test pkg-build -y libbar/1.0.0 libfoo
+test pkg-build -y libbar/1.0.0
+test pkg-build -y libfoo
+stat libfoo "configured 1.0.0 hold_package"
+stat libbar "configured 1.0.0 hold_package hold_version; available 1.2.0"
+
+test pkg-build -y libbar
+stat libfoo "configured 1.0.0 hold_package"
+#@@stat libbar "configured 1.2.0 hold_package"
+stat libbar "configured 1.2.0 hold_package hold_version"
##
## pkg-drop