]>
Commit | Line | Data |
---|---|---|
1 | #!/bin/sh | |
2 | set -e | |
3 | ||
4 | TESTDIR="$(readlink -f "$(dirname "$0")")" | |
5 | . "$TESTDIR/framework" | |
6 | setupenvironment | |
7 | configarchitecture 'i386' 'armel' | |
8 | ||
9 | pkglibc6="Package: libc6 | |
10 | Architecture: armel | |
11 | Version: 2.11.2-2~0.3 | |
12 | Description: Embedded GNU C Library: Shared libraries | |
13 | Description-md5: b8c1e0561b75e2dc6b6482a99079c3e4 | |
14 | Filename: pool/main/e/eglibc/libc6_2.11.2-2_armel.deb | |
15 | Installed-Size: 9740 | |
16 | MD5sum: f5b878ce5fb8aa01a7927fa1460df537 | |
17 | Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org> | |
18 | Priority: required | |
19 | SHA1: 0464d597dfbf949e8c17a42325b1f93fb4914afd | |
20 | SHA256: faca4a3d9ccff57568abf41f6cb81ddd835be7b5d8b0161e2d5f9a7f26aae3c0 | |
21 | Section: libs | |
22 | Size: 4178958 | |
23 | " | |
24 | ||
25 | pkglibdb1="Package: libdb1 | |
26 | Architecture: i386 | |
27 | Version: 2.1.3-13~0.3 | |
28 | Replaces: libc6 (<< 2.2.5-13~0.3) | |
29 | Description: The Berkeley database routines [glibc 2.0/2.1 compatibility] | |
30 | Description-md5: de1876f7fe7f7709a110875e145e38a8 | |
31 | Filename: pool/main/d/db1-compat/libdb1-compat_2.1.3-13_armel.deb | |
32 | Installed-Size: 136 | |
33 | MD5sum: 4043f176ab2b40b0c01bc1211b8c103c | |
34 | Maintainer: Colin Watson <cjwatson@debian.org> | |
35 | Priority: extra | |
36 | SHA1: b9396fdd2e3e8d1d4ba9e74e7346075852d85666 | |
37 | SHA256: f17decaa28d1db3eeb9eb17bebe50d437d293a509bcdd7cdfd3ebb56f5de3cea | |
38 | Section: oldlibs | |
39 | Size: 44168 | |
40 | " | |
41 | ||
42 | cat >aptarchive/Packages <<EOF | |
43 | $pkglibc6 | |
44 | $pkglibdb1 | |
45 | EOF | |
46 | ||
47 | setupaptarchive | |
48 | ||
49 | testnopackage libc6:i386 | |
50 | testsuccessequal "$pkglibc6" aptcache show libc6:armel | |
51 | testsuccessequal "$pkglibc6" aptcache show libc6 | |
52 | testsuccessequal "$pkglibdb1" aptcache show libdb1:i386 | |
53 | testnopackage libdb1:armel | |
54 | testsuccessequal "$pkglibdb1" aptcache show libdb1 |