X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/b53c9cea2902572822bbbece5bac236c1bbf846e..3abb6a6a1e485b3bc899b64b0a1b7dc2db25a9c2:/test/integration/test-bug-758153-versioned-provides-support diff --git a/test/integration/test-bug-758153-versioned-provides-support b/test/integration/test-bug-758153-versioned-provides-support index 6d43d9943..9899f48d9 100755 --- a/test/integration/test-bug-758153-versioned-provides-support +++ b/test/integration/test-bug-758153-versioned-provides-support @@ -4,8 +4,8 @@ set -e # dpkg implements versioned provides in commit 5bb02fe80e9f40dcad9703a72f67cf615ff217b5 # but previous versions seem to allow parsing, working and ignoring it. -TESTDIR=$(readlink -f $(dirname $0)) -. $TESTDIR/framework +TESTDIR="$(readlink -f "$(dirname "$0")")" +. "$TESTDIR/framework" setupenvironment configarchitecture 'amd64' 'i386' @@ -42,6 +42,12 @@ insertpackage 'unstable' 'virtualnext3' 'amd64' '1' 'Multi-Arch: no Provides: next3 (= 2)' insertpackage 'unstable' 'needsnext3' 'amd64,i386' '2' 'Depends: next3 (>= 2)' +insertpackage 'unstable' 'selfprov' 'amd64' '2' 'Provides: selfprov (= 1)' +insertpackage 'unstable' 'needsselfprov1' 'amd64' '1' 'Depends: selfprov (= 1)' +insertpackage 'unstable' 'needsselfprov2' 'amd64' '1' 'Depends: selfprov (= 2)' +insertpackage 'unstable' 'needsselfprov12' 'amd64' '1' 'Depends: selfprov (= 1), selfprov (= 2)' +insertpackage 'unstable' 'needsselfprov123' 'amd64' '1' 'Depends: selfprov (= 1), selfprov (= 2), selfprov (= 3)' + setupaptarchive testsuccessequal 'Reading package lists... @@ -190,7 +196,7 @@ The following NEW packages will be installed: Inst foo (1 unstable [all]) Inst baz (2 experimental [amd64]) Conf foo (1 unstable [all]) -Conf baz (2 experimental [amd64])" aptget install baz/experimental -s -q=0 +Conf baz (2 experimental [amd64])" aptget install baz/experimental -s testsuccessequal "Reading package lists... Building dependency tree... @@ -203,7 +209,7 @@ The following NEW packages will be installed: Inst foo (1 unstable [all]) Inst baz:i386 (2 experimental [i386]) Conf foo (1 unstable [all]) -Conf baz:i386 (2 experimental [i386])" aptget install baz:i386/experimental -s -q=0 +Conf baz:i386 (2 experimental [i386])" aptget install baz:i386/experimental -s testfailureequal 'Reading package lists... Building dependency tree... @@ -214,7 +220,7 @@ or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: - baz-broken:i386 : Depends: bar but it is not installable + baz-broken:i386 : Depends: bar:amd64 but it is not installable E: Unable to correct problems, you have held broken packages.' aptget install baz-broken -s testsuccessequal 'Reading package lists... @@ -288,3 +294,48 @@ The following information may help to resolve the situation: The following packages have unmet dependencies: needsnext3:i386 : Depends: next3:i386 (>= 2) but it is not installable E: Unable to correct problems, you have held broken packages.' aptget install needsnext3:i386 -s + +testsuccessequal 'Reading package lists... +Building dependency tree... +The following additional packages will be installed: + selfprov +The following NEW packages will be installed: + needsselfprov1 selfprov +0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded. +Inst selfprov (2 unstable [amd64]) +Inst needsselfprov1 (1 unstable [amd64]) +Conf selfprov (2 unstable [amd64]) +Conf needsselfprov1 (1 unstable [amd64])' aptget install needsselfprov1 -s +testsuccessequal 'Reading package lists... +Building dependency tree... +The following additional packages will be installed: + selfprov +The following NEW packages will be installed: + needsselfprov2 selfprov +0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded. +Inst selfprov (2 unstable [amd64]) +Inst needsselfprov2 (1 unstable [amd64]) +Conf selfprov (2 unstable [amd64]) +Conf needsselfprov2 (1 unstable [amd64])' aptget install needsselfprov2 -s +testsuccessequal 'Reading package lists... +Building dependency tree... +The following additional packages will be installed: + selfprov +The following NEW packages will be installed: + needsselfprov12 selfprov +0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded. +Inst selfprov (2 unstable [amd64]) +Inst needsselfprov12 (1 unstable [amd64]) +Conf selfprov (2 unstable [amd64]) +Conf needsselfprov12 (1 unstable [amd64])' aptget install needsselfprov12 -s +testfailureequal 'Reading package lists... +Building dependency tree... +Some packages could not be installed. This may mean that you have +requested an impossible situation or if you are using the unstable +distribution that some required packages have not yet been created +or been moved out of Incoming. +The following information may help to resolve the situation: + +The following packages have unmet dependencies: + needsselfprov123 : Depends: selfprov (= 3) +E: Unable to correct problems, you have held broken packages.' aptget install needsselfprov123 -s