]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-683786-build-dep-on-virtual-packages
debian/gbp.conf: point debian-branch to master
[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
f1f874bd
DK
15insertsource 'unstable' 'diffutils' 'any' '1' 'Build-Depends: texi2html'
16
727d8712
DK
17insertpackage 'unstable' 'libselinux1-dev' 'amd64' '1' 'Provides: libselinux-dev'
18insertsource 'unstable' 'sed' 'any' '1' 'Build-Depends: libselinux-dev'
19
666faa35
DK
20insertpackage 'unstable' 'libsehurd1-dev' 'amd64,armel' '1' 'Provides: libsehurd-dev'
21insertsource 'unstable' 'sed2' 'any' '1' 'Build-Depends: libsehurd-dev'
22
f1f874bd
DK
23setupaptarchive
24
25b86db1 25testsuccessequal 'Package: po-debconf:armel
f1f874bd
DK
26Versions:
27
28Reverse Depends:
29 make-po-debconf-pure-virtual:armel,po-debconf:armel
30Dependencies:
31Provides:
32Reverse Provides: ' aptcache showpkg po-debconf:armel
87d6947d 33testsuccessequal 'N: Unable to locate package texi2html:armel' aptcache showpkg texi2html:armel
f1f874bd 34
25b86db1 35testsuccessequal 'Reading package lists...
f1f874bd
DK
36Building dependency tree...
37The following NEW packages will be installed:
38 po-debconf
390 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
34de054c
MV
40Inst po-debconf (1 unstable [all])
41Conf po-debconf (1 unstable [all])' aptget build-dep dash -s
f1f874bd 42
25b86db1 43testfailureequal 'Reading package lists...
f1f874bd
DK
44Building dependency tree...
45E: Build-Depends dependency for dash cannot be satisfied because the package po-debconf cannot be found' aptget build-dep -aarmel dash -s
46
25b86db1 47testfailureequal 'Reading package lists...
f1f874bd
DK
48Building dependency tree...
49E: Build-Depends dependency for diffutils cannot be satisfied because the package texi2html cannot be found' aptget build-dep -aarmel diffutils -s
727d8712 50
25b86db1 51testsuccessequal "Reading package lists...
727d8712
DK
52Building dependency tree...
53Note, selecting 'libselinux1-dev' instead of 'libselinux-dev'
54The following NEW packages will be installed:
55 libselinux1-dev
560 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
57Inst libselinux1-dev (1 unstable [amd64])
58Conf libselinux1-dev (1 unstable [amd64])" aptget build-dep sed -s
666faa35 59
25b86db1 60testfailureequal 'Reading package lists...
666faa35
DK
61Building dependency tree...
62E: Build-Depends dependency for sed cannot be satisfied because the package libselinux-dev cannot be found' aptget build-dep -aarmel sed -s
63
25b86db1 64testsuccessequal "Reading package lists...
666faa35
DK
65Building dependency tree...
66Note, selecting 'libsehurd1-dev' instead of 'libsehurd-dev'
67The following NEW packages will be installed:
68 libsehurd1-dev
690 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
70Inst libsehurd1-dev (1 unstable [amd64])
71Conf libsehurd1-dev (1 unstable [amd64])" aptget build-dep sed2 -s
72
25b86db1 73testsuccessequal "Reading package lists...
666faa35
DK
74Building dependency tree...
75Note, selecting 'libsehurd1-dev:armel' instead of 'libsehurd-dev:armel'
76The following NEW packages will be installed:
77 libsehurd1-dev:armel
780 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
79Inst libsehurd1-dev:armel (1 unstable [armel])
80Conf libsehurd1-dev:armel (1 unstable [armel])" aptget build-dep -aarmel sed2 -s