aboutsummaryrefslogtreecommitdiff
path: root/tests/pkg-build.test
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-03-28 21:42:23 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-04-19 19:39:55 +0300
commitb6102badb2719cc0120b34741ed373cf8a28d23c (patch)
treef95e9836bb285b37e5e4a59db7059cef9b094518 /tests/pkg-build.test
parent4c7b3f9500c668aa99328e419f6d09c722814f97 (diff)
Implement package drops via plan refinements
Diffstat (limited to 'tests/pkg-build.test')
-rw-r--r--tests/pkg-build.test13
1 files changed, 8 insertions, 5 deletions
diff --git a/tests/pkg-build.test b/tests/pkg-build.test
index 8b114cd..18b4813 100644
--- a/tests/pkg-build.test
+++ b/tests/pkg-build.test
@@ -630,7 +630,7 @@ rep_fetch += -d cfg --auth all --trust-yes 2>!
info: or explicitly specify package libfoo version to manually satisfy these constraints
EOE
- $* libfoo/1.1.0 >'build libfoo/1.1.0';
+ $* libfoo/1.1.0 --keep-unused >'build libfoo/1.1.0';
$pkg_disfigure libbar 2>'disfigured libbar/1.1.0';
$pkg_purge libbar 2>'purged libbar/1.1.0';
@@ -643,6 +643,8 @@ rep_fetch += -d cfg --auth all --trust-yes 2>!
: dependent-reconfiguration
:
{
+ test.arguments += --keep-unused
+
+$clone_root_cfg
+$pkg_fetch -e $src/libfoo-1.0.0.tar.gz && $pkg_unpack libfoo
@@ -1008,12 +1010,12 @@ rep_fetch += -d cfg --auth all --trust-yes 2>!
$* libbar 2>>~%EOE%;
disfigured libbar/1.0.0
+ disfigured libfoo/1.0.0
+ purged libfoo/1.0.0
%.*
%.*fetched libbar/1.2.0%
unpacked libbar/1.2.0
configured libbar/1.2.0
- disfigured libfoo
- purged libfoo
%info: .+dir\{libbar-1.2.0.\} is up to date%
updated libbar/1.2.0
EOE
@@ -1134,14 +1136,15 @@ rep_fetch += -d cfg --auth all --trust-yes 2>!
EOE
$* libbar/1.2.0 <'y' 2>>~%EOE%;
+ drop libfoo/1.0.0 (unused)
upgrade libbar/1.2.0
continue? [Y/n] disfigured libbar/1.0.0
+ disfigured libfoo/1.0.0
+ purged libfoo/1.0.0
%.*
%.*fetched libbar/1.2.0%
unpacked libbar/1.2.0
configured libbar/1.2.0
- disfigured libfoo
- purged libfoo
%info: .+ is up to date%
updated libbar/1.2.0
EOE