]> git.saurik.com Git - apt.git/blob - test/integration/test-bug-683786-build-dep-on-virtual-packages
run update post-invokes even on (partial) failures
[apt.git] / test / integration / test-bug-683786-build-dep-on-virtual-packages
1 #!/bin/sh
2 set -e
3
4 TESTDIR="$(readlink -f "$(dirname "$0")")"
5 . "$TESTDIR/framework"
6 setupenvironment
7 configarchitecture 'amd64' 'armel'
8
9 insertinstalledpackage 'build-essential' 'all' '11.5' 'Multi-Arch: foreign'
10
11 insertpackage 'unstable' 'po-debconf' 'all' '1'
12 insertsource 'unstable' 'dash' 'any' '1' 'Build-Depends: po-debconf'
13 insertpackage 'unstable' 'make-po-debconf-pure-virtual' 'armel' '1' 'Depends: po-debconf'
14
15 insertsource 'unstable' 'diffutils' 'any' '1' 'Build-Depends: texi2html'
16
17 insertpackage 'unstable' 'libselinux1-dev' 'amd64' '1' 'Provides: libselinux-dev'
18 insertsource 'unstable' 'sed' 'any' '1' 'Build-Depends: libselinux-dev'
19
20 insertpackage 'unstable' 'libsehurd1-dev' 'amd64,armel' '1' 'Provides: libsehurd-dev'
21 insertsource 'unstable' 'sed2' 'any' '1' 'Build-Depends: libsehurd-dev'
22
23 setupaptarchive
24
25 testsuccessequal 'Package: po-debconf:armel
26 Versions:
27
28 Reverse Depends:
29 make-po-debconf-pure-virtual:armel,po-debconf:armel
30 Dependencies:
31 Provides:
32 Reverse Provides: ' aptcache showpkg po-debconf:armel
33 testsuccessequal 'N: Unable to locate package texi2html:armel' aptcache showpkg texi2html:armel
34
35 testsuccessequal 'Reading package lists...
36 Reading package lists...
37 Building dependency tree...
38 The following NEW packages will be installed:
39 po-debconf
40 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
41 Inst po-debconf (1 unstable [all])
42 Conf po-debconf (1 unstable [all])' aptget build-dep dash -s
43
44 testfailureequal 'Reading package lists...
45 Reading package lists...
46 Building dependency tree...
47 Some packages could not be installed. This may mean that you have
48 requested an impossible situation or if you are using the unstable
49 distribution that some required packages have not yet been created
50 or been moved out of Incoming.
51 The following information may help to resolve the situation:
52
53 The following packages have unmet dependencies:
54 builddeps:dash:armel : Depends: po-debconf:armel but it is not installable
55 E: Unable to correct problems, you have held broken packages.' aptget build-dep -aarmel dash -s
56 testfailureequal 'Reading package lists...
57 Reading package lists...
58 Building dependency tree...
59 Some packages could not be installed. This may mean that you have
60 requested an impossible situation or if you are using the unstable
61 distribution that some required packages have not yet been created
62 or been moved out of Incoming.
63 The following information may help to resolve the situation:
64
65 The following packages have unmet dependencies:
66 builddeps:diffutils:armel : Depends: texi2html:armel but it is not installable
67 E: Unable to correct problems, you have held broken packages.' aptget build-dep -aarmel diffutils -s
68
69 testsuccessequal "Reading package lists...
70 Reading package lists...
71 Building dependency tree...
72 The following NEW packages will be installed:
73 libselinux1-dev
74 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
75 Inst libselinux1-dev (1 unstable [amd64])
76 Conf libselinux1-dev (1 unstable [amd64])" aptget build-dep sed -s
77
78 testfailureequal 'Reading package lists...
79 Reading package lists...
80 Building dependency tree...
81 Some packages could not be installed. This may mean that you have
82 requested an impossible situation or if you are using the unstable
83 distribution that some required packages have not yet been created
84 or been moved out of Incoming.
85 The following information may help to resolve the situation:
86
87 The following packages have unmet dependencies:
88 builddeps:sed:armel : Depends: libselinux-dev:armel but it is not installable
89 E: Unable to correct problems, you have held broken packages.' aptget build-dep -aarmel sed -s
90
91 testsuccessequal "Reading package lists...
92 Reading package lists...
93 Building dependency tree...
94 The following NEW packages will be installed:
95 libsehurd1-dev
96 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
97 Inst libsehurd1-dev (1 unstable [amd64])
98 Conf libsehurd1-dev (1 unstable [amd64])" aptget build-dep sed2 -s
99
100 testsuccessequal "Reading package lists...
101 Reading package lists...
102 Building dependency tree...
103 The following NEW packages will be installed:
104 libsehurd1-dev:armel
105 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
106 Inst libsehurd1-dev:armel (1 unstable [armel])
107 Conf libsehurd1-dev:armel (1 unstable [armel])" aptget build-dep -aarmel sed2 -s