summaryrefslogtreecommitdiff
path: root/test/integration/test-phased-updates-upgrade
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/test-phased-updates-upgrade')
-rwxr-xr-xtest/integration/test-phased-updates-upgrade89
1 files changed, 60 insertions, 29 deletions
diff --git a/test/integration/test-phased-updates-upgrade b/test/integration/test-phased-updates-upgrade
index 887995893..fec8bece8 100755
--- a/test/integration/test-phased-updates-upgrade
+++ b/test/integration/test-phased-updates-upgrade
@@ -30,6 +30,15 @@ insertinstalledpackage 'depends-phased-new' 'all' '1'
insertpackage 'unstable-updates' 'phased-new' 'all' '3' 'Phased-Update-Percentage: 0'
insertpackage 'unstable-updates' 'depends-phased-new' 'all' '3' 'Depends: phased-new (= 3)'
+# Test case phased-dep: A released update depends on the phased dependency phased-dep
+insertinstalledpackage 'ready-dep' 'all' '1'
+insertinstalledpackage 'phased-depends-ready-dep' 'all' '1' 'Depends: ready-dep (= 1)
+Protected: yes'
+insertpackage 'unstable-updates' 'ready-dep' 'all' '3'
+insertpackage 'unstable-updates' 'phased-depends-ready-dep' 'all' '3' 'Depends: ready-dep (= 3)
+Protected: yes
+Phased-Update-Percentage: 0'
+
setupaptarchive
msgmsg "Testing with default (upgrade-based) implementation"
@@ -40,10 +49,10 @@ Calculating upgrade...
The following NEW packages will be installed:
phased-new
The following packages have been kept back:
- depends-phased-dep phased phased-dep
+ depends-phased-dep phased phased-dep phased-depends-ready-dep ready-dep
The following packages will be upgraded:
depends-phased-new phased-security
-2 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
+2 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Inst phased-new (3 unstable-updates [all])
Inst depends-phased-new [1] (3 unstable-updates [all])
Inst phased-security [1] (3 unstable-updates [all])
@@ -58,19 +67,24 @@ Calculating upgrade...
The following NEW packages will be installed:
phased-new
The following packages will be upgraded:
- depends-phased-dep depends-phased-new phased phased-dep phased-security
-5 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
+ depends-phased-dep depends-phased-new phased phased-dep
+ phased-depends-ready-dep phased-security ready-dep
+7 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Inst phased-dep [1] (3 unstable-updates [all])
Inst depends-phased-dep [1] (3 unstable-updates [all])
Inst phased-new (3 unstable-updates [all])
Inst depends-phased-new [1] (3 unstable-updates [all])
Inst phased [1] (3 unstable-updates [all])
+Inst phased-depends-ready-dep [1] (3 unstable-updates [all]) []
+Inst ready-dep [1] (3 unstable-updates [all])
Inst phased-security [1] (3 unstable-updates [all])
Conf phased-dep (3 unstable-updates [all])
Conf depends-phased-dep (3 unstable-updates [all])
Conf phased-new (3 unstable-updates [all])
Conf depends-phased-new (3 unstable-updates [all])
Conf phased (3 unstable-updates [all])
+Conf phased-depends-ready-dep (3 unstable-updates [all])
+Conf ready-dep (3 unstable-updates [all])
Conf phased-security (3 unstable-updates [all])" aptget dist-upgrade -s -q -o $always=1
done
@@ -80,19 +94,24 @@ Calculating upgrade...
The following NEW packages will be installed:
phased-new
The following packages will be upgraded:
- depends-phased-dep depends-phased-new phased phased-dep phased-security
-5 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
+ depends-phased-dep depends-phased-new phased phased-dep
+ phased-depends-ready-dep phased-security ready-dep
+7 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Inst phased-dep [1] (3 unstable-updates [all])
Inst depends-phased-dep [1] (3 unstable-updates [all])
Inst phased-new (3 unstable-updates [all])
Inst depends-phased-new [1] (3 unstable-updates [all])
Inst phased [1] (3 unstable-updates [all])
+Inst phased-depends-ready-dep [1] (3 unstable-updates [all]) []
+Inst ready-dep [1] (3 unstable-updates [all])
Inst phased-security [1] (3 unstable-updates [all])
Conf phased-dep (3 unstable-updates [all])
Conf depends-phased-dep (3 unstable-updates [all])
Conf phased-new (3 unstable-updates [all])
Conf depends-phased-new (3 unstable-updates [all])
Conf phased (3 unstable-updates [all])
+Conf phased-depends-ready-dep (3 unstable-updates [all])
+Conf ready-dep (3 unstable-updates [all])
Conf phased-security (3 unstable-updates [all])" aptget dist-upgrade -s -q -o with-source-date-epoch=1
for never in APT::Get::Never-Include-Phased-Updates Update-Manager::Never-Include-Phased-Updates; do
@@ -102,10 +121,10 @@ Calculating upgrade...
The following NEW packages will be installed:
phased-new
The following packages have been kept back:
- depends-phased-dep phased phased-dep
+ depends-phased-dep phased phased-dep phased-depends-ready-dep ready-dep
The following packages will be upgraded:
depends-phased-new phased-security
-2 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
+2 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Inst phased-new (3 unstable-updates [all])
Inst depends-phased-new [1] (3 unstable-updates [all])
Inst phased-security [1] (3 unstable-updates [all])
@@ -120,10 +139,10 @@ Calculating upgrade...
The following NEW packages will be installed:
phased-new
The following packages have been kept back:
- depends-phased-dep phased phased-dep
+ depends-phased-dep phased phased-dep phased-depends-ready-dep ready-dep
The following packages will be upgraded:
depends-phased-new phased-security
-2 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
+2 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Inst phased-new (3 unstable-updates [all])
Inst depends-phased-new [1] (3 unstable-updates [all])
Inst phased-security [1] (3 unstable-updates [all])
@@ -136,9 +155,10 @@ Building dependency tree...
Calculating upgrade...
The following packages have been kept back:
depends-phased-dep depends-phased-new phased phased-dep
+ phased-depends-ready-dep ready-dep
The following packages will be upgraded:
phased-security
-1 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
+1 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
Inst phased-security [1] (3 unstable-updates [all])
Conf phased-security (3 unstable-updates [all])" aptget upgrade -s -q
@@ -149,10 +169,10 @@ Calculating upgrade...
The following NEW packages will be installed:
phased-new
The following packages have been kept back:
- phased
+ phased phased-depends-ready-dep ready-dep
The following packages will be upgraded:
depends-phased-dep depends-phased-new phased-dep phased-security
-4 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
+4 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Inst phased-dep [1] (3 unstable-updates [all])
Inst depends-phased-dep [1] (3 unstable-updates [all])
Inst phased-new (3 unstable-updates [all])
@@ -169,10 +189,10 @@ testsuccessequal "Reading package lists...
Building dependency tree...
Calculating upgrade...
The following packages have been kept back:
- depends-phased-new phased
+ depends-phased-new phased phased-depends-ready-dep ready-dep
The following packages will be upgraded:
depends-phased-dep phased-dep phased-security
-3 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
+3 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Inst phased-dep [1] (3 unstable-updates [all])
Inst depends-phased-dep [1] (3 unstable-updates [all])
Inst phased-security [1] (3 unstable-updates [all])
@@ -187,7 +207,7 @@ The following additional packages will be installed:
phased-dep
The following packages will be upgraded:
depends-phased-dep phased phased-dep phased-security
-4 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
+4 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Inst phased-dep [1] (3 unstable-updates [all])
Inst depends-phased-dep [1] (3 unstable-updates [all])
Inst phased [1] (3 unstable-updates [all])
@@ -207,10 +227,10 @@ Calculating upgrade...
The following NEW packages will be installed:
phased-new
The following packages have been kept back:
- depends-phased-dep
+ depends-phased-dep ready-dep
The following packages will be upgraded:
depends-phased-new phased-security
-2 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
+2 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Inst phased-new (3 unstable-updates [all])
Inst depends-phased-new [1] (3 unstable-updates [all])
Inst phased-security [1] (2 unstable-security [all])
@@ -225,19 +245,24 @@ Calculating upgrade...
The following NEW packages will be installed:
phased-new
The following packages will be upgraded:
- depends-phased-dep depends-phased-new phased phased-dep phased-security
-5 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
+ depends-phased-dep depends-phased-new phased phased-dep
+ phased-depends-ready-dep phased-security ready-dep
+7 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Inst phased-dep [1] (3 unstable-updates [all])
Inst depends-phased-dep [1] (3 unstable-updates [all])
Inst phased-new (3 unstable-updates [all])
Inst depends-phased-new [1] (3 unstable-updates [all])
Inst phased [1] (3 unstable-updates [all])
+Inst phased-depends-ready-dep [1] (3 unstable-updates [all]) []
+Inst ready-dep [1] (3 unstable-updates [all])
Inst phased-security [1] (3 unstable-updates [all])
Conf phased-dep (3 unstable-updates [all])
Conf depends-phased-dep (3 unstable-updates [all])
Conf phased-new (3 unstable-updates [all])
Conf depends-phased-new (3 unstable-updates [all])
Conf phased (3 unstable-updates [all])
+Conf phased-depends-ready-dep (3 unstable-updates [all])
+Conf ready-dep (3 unstable-updates [all])
Conf phased-security (3 unstable-updates [all])" aptget dist-upgrade -s -q -o $always=1
done
@@ -249,10 +274,10 @@ Calculating upgrade...
The following NEW packages will be installed:
phased-new
The following packages have been kept back:
- depends-phased-dep
+ depends-phased-dep ready-dep
The following packages will be upgraded:
depends-phased-new phased-security
-2 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
+2 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Inst phased-new (3 unstable-updates [all])
Inst depends-phased-new [1] (3 unstable-updates [all])
Inst phased-security [1] (2 unstable-security [all])
@@ -267,31 +292,37 @@ Calculating upgrade...
The following NEW packages will be installed:
phased-new
The following packages will be upgraded:
- depends-phased-dep depends-phased-new phased phased-dep phased-security
-5 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
+ depends-phased-dep depends-phased-new phased phased-dep
+ phased-depends-ready-dep phased-security ready-dep
+7 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Inst phased-dep [1] (3 unstable-updates [all])
Inst depends-phased-dep [1] (3 unstable-updates [all])
Inst phased-new (3 unstable-updates [all])
Inst depends-phased-new [1] (3 unstable-updates [all])
Inst phased [1] (3 unstable-updates [all])
+Inst phased-depends-ready-dep [1] (3 unstable-updates [all]) []
+Inst ready-dep [1] (3 unstable-updates [all])
Inst phased-security [1] (3 unstable-updates [all])
Conf phased-dep (3 unstable-updates [all])
Conf depends-phased-dep (3 unstable-updates [all])
Conf phased-new (3 unstable-updates [all])
Conf depends-phased-new (3 unstable-updates [all])
Conf phased (3 unstable-updates [all])
+Conf phased-depends-ready-dep (3 unstable-updates [all])
+Conf ready-dep (3 unstable-updates [all])
Conf phased-security (3 unstable-updates [all])" aptget dist-upgrade -s -q -o with-source-date-epoch=1
+
testsuccessequal "Reading package lists...
Building dependency tree...
Calculating upgrade...
The following NEW packages will be installed:
phased-new
The following packages have been kept back:
- depends-phased-dep
+ depends-phased-dep ready-dep
The following packages will be upgraded:
depends-phased-new phased-security
-2 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
+2 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Inst phased-new (3 unstable-updates [all])
Inst depends-phased-new [1] (3 unstable-updates [all])
Inst phased-security [1] (2 unstable-security [all])
@@ -303,10 +334,10 @@ testsuccessequal "Reading package lists...
Building dependency tree...
Calculating upgrade...
The following packages have been kept back:
- depends-phased-dep depends-phased-new
+ depends-phased-dep depends-phased-new ready-dep
The following packages will be upgraded:
phased-security
-1 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
+1 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Inst phased-security [1] (2 unstable-security [all])
Conf phased-security (2 unstable-security [all])" aptget upgrade -s -q
@@ -321,6 +352,6 @@ Building dependency tree...
phased is already the newest version (1).
The following packages will be upgraded:
phased-security
-1 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
+1 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Inst phased-security [1] (2 unstable-security [all])
Conf phased-security (2 unstable-security [all])" aptget install -s -q phased phased-security