]> git.saurik.com Git - apt.git/blame_incremental - test/integration/test-bug-683786-build-dep-on-virtual-packages
require explicit paths to dsc/control as we do for deb files
[apt.git] / test / integration / test-bug-683786-build-dep-on-virtual-packages
... / ...
CommitLineData
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
15insertsource 'unstable' 'diffutils' 'any' '1' 'Build-Depends: texi2html'
16
17insertpackage 'unstable' 'libselinux1-dev' 'amd64' '1' 'Provides: libselinux-dev'
18insertsource 'unstable' 'sed' 'any' '1' 'Build-Depends: libselinux-dev'
19
20insertpackage 'unstable' 'libsehurd1-dev' 'amd64,armel' '1' 'Provides: libsehurd-dev'
21insertsource 'unstable' 'sed2' 'any' '1' 'Build-Depends: libsehurd-dev'
22
23setupaptarchive
24
25testsuccessequal 'Package: po-debconf:armel
26Versions:
27
28Reverse Depends:
29 make-po-debconf-pure-virtual:armel,po-debconf:armel
30Dependencies:
31Provides:
32Reverse Provides: ' aptcache showpkg po-debconf:armel
33testsuccessequal 'N: Unable to locate package texi2html:armel' aptcache showpkg texi2html:armel
34
35testsuccessequal 'Reading package lists...
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.
40Inst po-debconf (1 unstable [all])
41Conf po-debconf (1 unstable [all])' aptget build-dep dash -s
42
43testfailureequal 'Reading package lists...
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
47testfailureequal 'Reading package lists...
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
50
51testsuccessequal "Reading package lists...
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
59
60testfailureequal 'Reading package lists...
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
64testsuccessequal "Reading package lists...
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
73testsuccessequal "Reading package lists...
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