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