]>
Commit | Line | Data |
---|---|---|
f1f874bd DK |
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 | insertpackage 'unstable' 'po-debconf' 'amd64' '1' | |
16 | insertsource 'unstable' 'diffutils' 'any' '1' 'Build-Depends: texi2html' | |
17 | ||
727d8712 DK |
18 | insertpackage 'unstable' 'libselinux1-dev' 'amd64' '1' 'Provides: libselinux-dev' |
19 | insertsource 'unstable' 'sed' 'any' '1' 'Build-Depends: libselinux-dev' | |
20 | ||
f1f874bd DK |
21 | setupaptarchive |
22 | ||
23 | testequal 'Package: po-debconf:armel | |
24 | Versions: | |
25 | ||
26 | Reverse Depends: | |
27 | make-po-debconf-pure-virtual:armel,po-debconf:armel | |
28 | Dependencies: | |
29 | Provides: | |
30 | Reverse Provides: ' aptcache showpkg po-debconf:armel | |
31 | testequal 'N: Unable to locate package texi2html' aptcache showpkg texi2html:armel -q=0 | |
32 | ||
33 | testequal 'Reading package lists... | |
34 | Building dependency tree... | |
35 | The following NEW packages will be installed: | |
36 | po-debconf | |
37 | 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. | |
38 | Inst po-debconf (1 unstable, unstable [all]) | |
39 | Conf po-debconf (1 unstable, unstable [all])' aptget build-dep dash -s | |
40 | ||
41 | testequal 'Reading package lists... | |
42 | Building dependency tree... | |
43 | E: Build-Depends dependency for dash cannot be satisfied because the package po-debconf cannot be found' aptget build-dep -aarmel dash -s | |
44 | ||
45 | testequal 'Reading package lists... | |
46 | Building dependency tree... | |
47 | E: Build-Depends dependency for diffutils cannot be satisfied because the package texi2html cannot be found' aptget build-dep -aarmel diffutils -s | |
727d8712 DK |
48 | |
49 | testequal "Reading package lists... | |
50 | Building dependency tree... | |
51 | Note, selecting 'libselinux1-dev' instead of 'libselinux-dev' | |
52 | The following NEW packages will be installed: | |
53 | libselinux1-dev | |
54 | 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. | |
55 | Inst libselinux1-dev (1 unstable [amd64]) | |
56 | Conf libselinux1-dev (1 unstable [amd64])" aptget build-dep sed -s |