aboutsummaryrefslogtreecommitdiff
path: root/tests
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
parent4c7b3f9500c668aa99328e419f6d09c722814f97 (diff)
Implement package drops via plan refinements
Diffstat (limited to 'tests')
-rw-r--r--tests/pkg-build.test13
-rw-r--r--tests/pkg-drop.test2
2 files changed, 9 insertions, 6 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
diff --git a/tests/pkg-drop.test b/tests/pkg-drop.test
index e10bbe2..438e12d 100644
--- a/tests/pkg-drop.test
+++ b/tests/pkg-drop.test
@@ -405,7 +405,7 @@ $* libfoo/1.0.0 2>>~%EOE% != 0
{
$clone_cfg && $pkg_build libbar;
- $* libbar 2>>EOE
+ $* libbar --yes 2>>EOE
disfigured libbar
disfigured libfoo
purged libbar