]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-683786-build-dep-on-virtual-packages
Merge remote-tracking branch 'mvo/feature/drop-rights' into debian/experimental
[apt.git] / test / integration / test-bug-683786-build-dep-on-virtual-packages
CommitLineData
f1f874bd
DK
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6setupenvironment
7configarchitecture 'amd64' 'armel'
8
9insertinstalledpackage 'build-essential' 'all' '11.5' 'Multi-Arch: foreign'
10
11insertpackage 'unstable' 'po-debconf' 'all' '1'
12insertsource 'unstable' 'dash' 'any' '1' 'Build-Depends: po-debconf'
13insertpackage 'unstable' 'make-po-debconf-pure-virtual' 'armel' '1' 'Depends: po-debconf'
14
15insertpackage 'unstable' 'po-debconf' 'amd64' '1'
16insertsource 'unstable' 'diffutils' 'any' '1' 'Build-Depends: texi2html'
17
727d8712
DK
18insertpackage 'unstable' 'libselinux1-dev' 'amd64' '1' 'Provides: libselinux-dev'
19insertsource 'unstable' 'sed' 'any' '1' 'Build-Depends: libselinux-dev'
20
666faa35
DK
21insertpackage 'unstable' 'libsehurd1-dev' 'amd64,armel' '1' 'Provides: libsehurd-dev'
22insertsource 'unstable' 'sed2' 'any' '1' 'Build-Depends: libsehurd-dev'
23
f1f874bd
DK
24setupaptarchive
25
26testequal 'Package: po-debconf:armel
27Versions:
28
29Reverse Depends:
30 make-po-debconf-pure-virtual:armel,po-debconf:armel
31Dependencies:
32Provides:
33Reverse Provides: ' aptcache showpkg po-debconf:armel
34testequal 'N: Unable to locate package texi2html' aptcache showpkg texi2html:armel -q=0
35
36testequal 'Reading package lists...
37Building dependency tree...
38The following NEW packages will be installed:
39 po-debconf
400 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
34de054c
MV
41Inst po-debconf (1 unstable [all])
42Conf po-debconf (1 unstable [all])' aptget build-dep dash -s
f1f874bd
DK
43
44testequal 'Reading package lists...
45Building dependency tree...
46E: Build-Depends dependency for dash cannot be satisfied because the package po-debconf cannot be found' aptget build-dep -aarmel dash -s
47
48testequal 'Reading package lists...
49Building dependency tree...
50E: Build-Depends dependency for diffutils cannot be satisfied because the package texi2html cannot be found' aptget build-dep -aarmel diffutils -s
727d8712
DK
51
52testequal "Reading package lists...
53Building dependency tree...
54Note, selecting 'libselinux1-dev' instead of 'libselinux-dev'
55The following NEW packages will be installed:
56 libselinux1-dev
570 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
58Inst libselinux1-dev (1 unstable [amd64])
59Conf libselinux1-dev (1 unstable [amd64])" aptget build-dep sed -s
666faa35
DK
60
61testequal 'Reading package lists...
62Building dependency tree...
63E: Build-Depends dependency for sed cannot be satisfied because the package libselinux-dev cannot be found' aptget build-dep -aarmel sed -s
64
65testequal "Reading package lists...
66Building dependency tree...
67Note, selecting 'libsehurd1-dev' instead of 'libsehurd-dev'
68The following NEW packages will be installed:
69 libsehurd1-dev
700 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
71Inst libsehurd1-dev (1 unstable [amd64])
72Conf libsehurd1-dev (1 unstable [amd64])" aptget build-dep sed2 -s
73
74testequal "Reading package lists...
75Building dependency tree...
76Note, selecting 'libsehurd1-dev:armel' instead of 'libsehurd-dev:armel'
77The following NEW packages will be installed:
78 libsehurd1-dev:armel
790 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
80Inst libsehurd1-dev:armel (1 unstable [armel])
81Conf libsehurd1-dev:armel (1 unstable [armel])" aptget build-dep -aarmel sed2 -s