]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-683786-build-dep-on-virtual-packages
improve the check for purely virtuals as provided packages aren't
[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
f1f874bd
DK
21setupaptarchive
22
23testequal 'Package: po-debconf:armel
24Versions:
25
26Reverse Depends:
27 make-po-debconf-pure-virtual:armel,po-debconf:armel
28Dependencies:
29Provides:
30Reverse Provides: ' aptcache showpkg po-debconf:armel
31testequal 'N: Unable to locate package texi2html' aptcache showpkg texi2html:armel -q=0
32
33testequal 'Reading package lists...
34Building dependency tree...
35The following NEW packages will be installed:
36 po-debconf
370 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
38Inst po-debconf (1 unstable, unstable [all])
39Conf po-debconf (1 unstable, unstable [all])' aptget build-dep dash -s
40
41testequal 'Reading package lists...
42Building dependency tree...
43E: Build-Depends dependency for dash cannot be satisfied because the package po-debconf cannot be found' aptget build-dep -aarmel dash -s
44
45testequal 'Reading package lists...
46Building dependency tree...
47E: Build-Depends dependency for diffutils cannot be satisfied because the package texi2html cannot be found' aptget build-dep -aarmel diffutils -s
727d8712
DK
48
49testequal "Reading package lists...
50Building dependency tree...
51Note, selecting 'libselinux1-dev' instead of 'libselinux-dev'
52The following NEW packages will be installed:
53 libselinux1-dev
540 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
55Inst libselinux1-dev (1 unstable [amd64])
56Conf libselinux1-dev (1 unstable [amd64])" aptget build-dep sed -s