]> git.saurik.com Git - apt.git/blob - test/integration/test-bug-683786-build-dep-on-virtual-packages
add optional support for comments in pkgTagFile
[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 Building dependency tree...
37 The following NEW packages will be installed:
38 po-debconf
39 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
40 Inst po-debconf (1 unstable [all])
41 Conf po-debconf (1 unstable [all])' aptget build-dep dash -s
42
43 testfailureequal 'Reading package lists...
44 Building dependency tree...
45 E: Build-Depends dependency for dash cannot be satisfied because the package po-debconf cannot be found' aptget build-dep -aarmel dash -s
46
47 testfailureequal 'Reading package lists...
48 Building dependency tree...
49 E: Build-Depends dependency for diffutils cannot be satisfied because the package texi2html cannot be found' aptget build-dep -aarmel diffutils -s
50
51 testsuccessequal "Reading package lists...
52 Building dependency tree...
53 Note, selecting 'libselinux1-dev' instead of 'libselinux-dev'
54 The following NEW packages will be installed:
55 libselinux1-dev
56 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
57 Inst libselinux1-dev (1 unstable [amd64])
58 Conf libselinux1-dev (1 unstable [amd64])" aptget build-dep sed -s
59
60 testfailureequal 'Reading package lists...
61 Building dependency tree...
62 E: Build-Depends dependency for sed cannot be satisfied because the package libselinux-dev cannot be found' aptget build-dep -aarmel sed -s
63
64 testsuccessequal "Reading package lists...
65 Building dependency tree...
66 Note, selecting 'libsehurd1-dev' instead of 'libsehurd-dev'
67 The following NEW packages will be installed:
68 libsehurd1-dev
69 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
70 Inst libsehurd1-dev (1 unstable [amd64])
71 Conf libsehurd1-dev (1 unstable [amd64])" aptget build-dep sed2 -s
72
73 testsuccessequal "Reading package lists...
74 Building dependency tree...
75 Note, selecting 'libsehurd1-dev:armel' instead of 'libsehurd-dev:armel'
76 The following NEW packages will be installed:
77 libsehurd1-dev:armel
78 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
79 Inst libsehurd1-dev:armel (1 unstable [armel])
80 Conf libsehurd1-dev:armel (1 unstable [armel])" aptget build-dep -aarmel sed2 -s