]>
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 | ||
666faa35 DK |
21 | insertpackage 'unstable' 'libsehurd1-dev' 'amd64,armel' '1' 'Provides: libsehurd-dev' |
22 | insertsource 'unstable' 'sed2' 'any' '1' 'Build-Depends: libsehurd-dev' | |
23 | ||
f1f874bd DK |
24 | setupaptarchive |
25 | ||
26 | testequal 'Package: po-debconf:armel | |
27 | Versions: | |
28 | ||
29 | Reverse Depends: | |
30 | make-po-debconf-pure-virtual:armel,po-debconf:armel | |
31 | Dependencies: | |
32 | Provides: | |
33 | Reverse Provides: ' aptcache showpkg po-debconf:armel | |
34 | testequal 'N: Unable to locate package texi2html' aptcache showpkg texi2html:armel -q=0 | |
35 | ||
36 | testequal 'Reading package lists... | |
37 | Building dependency tree... | |
38 | The following NEW packages will be installed: | |
39 | po-debconf | |
40 | 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. | |
34de054c MV |
41 | Inst po-debconf (1 unstable [all]) |
42 | Conf po-debconf (1 unstable [all])' aptget build-dep dash -s | |
f1f874bd DK |
43 | |
44 | testequal 'Reading package lists... | |
45 | Building dependency tree... | |
46 | E: Build-Depends dependency for dash cannot be satisfied because the package po-debconf cannot be found' aptget build-dep -aarmel dash -s | |
47 | ||
48 | testequal 'Reading package lists... | |
49 | Building dependency tree... | |
50 | E: Build-Depends dependency for diffutils cannot be satisfied because the package texi2html cannot be found' aptget build-dep -aarmel diffutils -s | |
727d8712 DK |
51 | |
52 | testequal "Reading package lists... | |
53 | Building dependency tree... | |
54 | Note, selecting 'libselinux1-dev' instead of 'libselinux-dev' | |
55 | The following NEW packages will be installed: | |
56 | libselinux1-dev | |
57 | 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. | |
58 | Inst libselinux1-dev (1 unstable [amd64]) | |
59 | Conf libselinux1-dev (1 unstable [amd64])" aptget build-dep sed -s | |
666faa35 DK |
60 | |
61 | testequal 'Reading package lists... | |
62 | Building dependency tree... | |
63 | E: Build-Depends dependency for sed cannot be satisfied because the package libselinux-dev cannot be found' aptget build-dep -aarmel sed -s | |
64 | ||
65 | testequal "Reading package lists... | |
66 | Building dependency tree... | |
67 | Note, selecting 'libsehurd1-dev' instead of 'libsehurd-dev' | |
68 | The following NEW packages will be installed: | |
69 | libsehurd1-dev | |
70 | 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. | |
71 | Inst libsehurd1-dev (1 unstable [amd64]) | |
72 | Conf libsehurd1-dev (1 unstable [amd64])" aptget build-dep sed2 -s | |
73 | ||
74 | testequal "Reading package lists... | |
75 | Building dependency tree... | |
76 | Note, selecting 'libsehurd1-dev:armel' instead of 'libsehurd-dev:armel' | |
77 | The following NEW packages will be installed: | |
78 | libsehurd1-dev:armel | |
79 | 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. | |
80 | Inst libsehurd1-dev:armel (1 unstable [armel]) | |
81 | Conf libsehurd1-dev:armel (1 unstable [armel])" aptget build-dep -aarmel sed2 -s |