]> git.saurik.com Git - apt.git/blame - test/integration/test-ignore-provides-if-versioned-conflicts
fix memory leaks reported by -fsanitize
[apt.git] / test / integration / test-ignore-provides-if-versioned-conflicts
CommitLineData
074da097
DK
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6setupenvironment
7configarchitecture 'i386' 'amd64'
8
9insertpackage 'unstable' 'unrlated' 'all' '1.0'
10
11insertinstalledpackage 'foo' 'i386' '2.0'
12insertpackage 'unstable' 'foo' 'i386' '4.0'
13insertpackage 'unstable' 'foo-provider' 'i386' '1.0' 'Provides: foo'
14insertpackage 'unstable' 'foo-breaker-3' 'i386' '1.0' 'Conflicts: foo (<< 3.0)'
15insertpackage 'unstable' 'foo-breaker-2' 'i386' '1.0' 'Conflicts: foo (<< 2.0)'
16insertpackage 'unstable' 'foo-breaker-none' 'i386' '1.0' 'Conflicts: foo'
17
18insertinstalledpackage 'foo-foreign' 'amd64' '2.0' 'Multi-Arch: foreign'
19insertpackage 'unstable' 'foo-foreign' 'amd64' '4.0' 'Multi-Arch: foreign'
20insertpackage 'unstable' 'foo-foreign-provider' 'i386' '1.0' 'Provides: foo-foreign'
21insertpackage 'unstable' 'foo-foreign-breaker-3' 'i386' '1.0' 'Conflicts: foo-foreign (<< 3.0)'
22insertpackage 'unstable' 'foo-foreign-breaker-2' 'i386' '1.0' 'Conflicts: foo-foreign (<< 2.0)'
23insertpackage 'unstable' 'foo-foreign-breaker-none' 'i386' '1.0' 'Conflicts: foo-foreign'
24
25insertinstalledpackage 'foo-same' 'i386,amd64' '2.0' 'Multi-Arch: same'
26insertpackage 'unstable' 'foo-same' 'i386,amd64' '4.0' 'Multi-Arch: same'
27insertpackage 'unstable' 'foo-same-provider' 'i386' '1.0' 'Provides: foo-same'
28insertpackage 'unstable' 'foo-same-breaker-3' 'i386' '1.0' 'Conflicts: foo-same (<< 3.0)'
29insertpackage 'unstable' 'foo-same-breaker-2' 'i386' '1.0' 'Conflicts: foo-same (<< 2.0)'
30insertpackage 'unstable' 'foo-same-breaker-none' 'i386' '1.0' 'Conflicts: foo-same'
31
32
33
34setupaptarchive
35
25b86db1 36testfailureequal 'Reading package lists...
074da097
DK
37Building dependency tree...
38Some packages could not be installed. This may mean that you have
39requested an impossible situation or if you are using the unstable
40distribution that some required packages have not yet been created
41or been moved out of Incoming.
42The following information may help to resolve the situation:
43
44The following packages have unmet dependencies:
45 foo-breaker-none : Conflicts: foo
46E: Unable to correct problems, you have held broken packages.' aptget install foo-provider foo-breaker-none -s
47
25b86db1 48testsuccessequal 'Reading package lists...
074da097
DK
49Building dependency tree...
50The following NEW packages will be installed:
51 foo-breaker-2 foo-provider
520 upgraded, 2 newly installed, 0 to remove and 4 not upgraded.
53Inst foo-breaker-2 (1.0 unstable [i386])
54Inst foo-provider (1.0 unstable [i386])
55Conf foo-breaker-2 (1.0 unstable [i386])
56Conf foo-provider (1.0 unstable [i386])' aptget install foo-provider foo-breaker-2 -s
57
25b86db1 58testsuccessequal 'Reading package lists...
074da097
DK
59Building dependency tree...
60The following extra packages will be installed:
61 foo
62The following NEW packages will be installed:
63 foo-breaker-3 foo-provider
64The following packages will be upgraded:
65 foo
661 upgraded, 2 newly installed, 0 to remove and 3 not upgraded.
67Inst foo [2.0] (4.0 unstable [i386])
68Inst foo-breaker-3 (1.0 unstable [i386])
69Inst foo-provider (1.0 unstable [i386])
70Conf foo (4.0 unstable [i386])
71Conf foo-breaker-3 (1.0 unstable [i386])
72Conf foo-provider (1.0 unstable [i386])' aptget install foo-provider foo-breaker-3 -s
73
25b86db1 74testfailureequal 'Reading package lists...
074da097
DK
75Building dependency tree...
76Some packages could not be installed. This may mean that you have
77requested an impossible situation or if you are using the unstable
78distribution that some required packages have not yet been created
79or been moved out of Incoming.
80The following information may help to resolve the situation:
81
82The following packages have unmet dependencies:
83 foo-foreign-breaker-none : Conflicts: foo-foreign
84E: Unable to correct problems, you have held broken packages.' aptget install foo-foreign-provider foo-foreign-breaker-none -s
85
25b86db1 86testsuccessequal 'Reading package lists...
074da097
DK
87Building dependency tree...
88The following NEW packages will be installed:
89 foo-foreign-breaker-2 foo-foreign-provider
900 upgraded, 2 newly installed, 0 to remove and 4 not upgraded.
91Inst foo-foreign-breaker-2 (1.0 unstable [i386])
92Inst foo-foreign-provider (1.0 unstable [i386])
93Conf foo-foreign-breaker-2 (1.0 unstable [i386])
94Conf foo-foreign-provider (1.0 unstable [i386])' aptget install foo-foreign-provider foo-foreign-breaker-2 -s
95
25b86db1 96testsuccessequal 'Reading package lists...
074da097
DK
97Building dependency tree...
98The following extra packages will be installed:
99 foo-foreign:amd64
100The following NEW packages will be installed:
101 foo-foreign-breaker-3 foo-foreign-provider
102The following packages will be upgraded:
103 foo-foreign:amd64
1041 upgraded, 2 newly installed, 0 to remove and 3 not upgraded.
105Inst foo-foreign:amd64 [2.0] (4.0 unstable [amd64])
106Inst foo-foreign-breaker-3 (1.0 unstable [i386])
107Inst foo-foreign-provider (1.0 unstable [i386])
108Conf foo-foreign:amd64 (4.0 unstable [amd64])
109Conf foo-foreign-breaker-3 (1.0 unstable [i386])
110Conf foo-foreign-provider (1.0 unstable [i386])' aptget install foo-foreign-provider foo-foreign-breaker-3 -s
111
25b86db1 112testfailureequal 'Reading package lists...
074da097
DK
113Building dependency tree...
114Some packages could not be installed. This may mean that you have
115requested an impossible situation or if you are using the unstable
116distribution that some required packages have not yet been created
117or been moved out of Incoming.
118The following information may help to resolve the situation:
119
120The following packages have unmet dependencies:
121 foo-same-breaker-none : Conflicts: foo-same
122E: Unable to correct problems, you have held broken packages.' aptget install foo-same-provider foo-same-breaker-none -s
123
25b86db1 124testsuccessequal 'Reading package lists...
074da097
DK
125Building dependency tree...
126The following NEW packages will be installed:
127 foo-same-breaker-2 foo-same-provider
1280 upgraded, 2 newly installed, 0 to remove and 4 not upgraded.
129Inst foo-same-breaker-2 (1.0 unstable [i386])
130Inst foo-same-provider (1.0 unstable [i386])
131Conf foo-same-breaker-2 (1.0 unstable [i386])
132Conf foo-same-provider (1.0 unstable [i386])' aptget install foo-same-provider foo-same-breaker-2 -s
133
25b86db1 134testsuccessequal 'Reading package lists...
074da097
DK
135Building dependency tree...
136The following extra packages will be installed:
137 foo-same:amd64 foo-same
138The following NEW packages will be installed:
139 foo-same-breaker-3 foo-same-provider
140The following packages will be upgraded:
141 foo-same:amd64 foo-same
1422 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
143Inst foo-same:amd64 [2.0] (4.0 unstable [amd64]) [foo-same:amd64 on foo-same:i386] [foo-same:i386 on foo-same:amd64] [foo-same:i386 ]
144Inst foo-same [2.0] (4.0 unstable [i386])
074da097
DK
145Inst foo-same-breaker-3 (1.0 unstable [i386])
146Inst foo-same-provider (1.0 unstable [i386])
0caa5a4c
DK
147Conf foo-same (4.0 unstable [i386])
148Conf foo-same:amd64 (4.0 unstable [amd64])
074da097
DK
149Conf foo-same-breaker-3 (1.0 unstable [i386])
150Conf foo-same-provider (1.0 unstable [i386])' aptget install foo-same-provider foo-same-breaker-3 -s