]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-747261-arch-specific-conflicts
ensure outdated files are dropped without lists-cleanup
[apt.git] / test / integration / test-bug-747261-arch-specific-conflicts
CommitLineData
b2db070b
DK
1#!/bin/sh
2set -e
3
3abb6a6a
DK
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
b2db070b
DK
6setupenvironment
7configarchitecture 'amd64' 'sparc' 'armel'
8
a947590a 9insertinstalledpackage 'foobar' 'armel' '1'
4f6d26b4 10msgtest 'Check that dpkg supports' 'arch-specific dependencies'
a947590a
DK
11if ! dpkgcheckbuilddeps -d 'foobar:armel' /dev/null 2>/dev/null >/dev/null; then
12 dpkgcheckbuilddeps -d 'foobar:armel' /dev/null || true
4f6d26b4
DK
13 msgskip
14 exit 0
15else
16 msgpass
17fi
18
b2db070b
DK
19buildsimplenativepackage 'libc6' 'amd64,sparc,armel' '1' 'stable' 'Multi-Arch: same'
20buildsimplenativepackage 'libc6-i386' 'amd64' '1' 'stable' 'Conflicts: libc6:sparc'
21
22setupaptarchive
23
24testsuccess aptget install 'libc6:amd64' 'libc6:sparc' -y
25testdpkginstalled 'libc6:amd64' 'libc6:sparc'
26testdpkgnotinstalled 'libc6-i386' 'libc6:armel'
27
28testsuccess aptget install libc6-i386 -y
29testdpkginstalled 'libc6:amd64' 'libc6-i386'
30testdpkgnotinstalled 'libc6:sparc' 'libc6:armel'
31
32testsuccess aptget install libc6:armel -y
33testdpkginstalled 'libc6:amd64' 'libc6:armel' 'libc6-i386'
34testdpkgnotinstalled 'libc6:sparc'
35
36testsuccess aptget install libc6:sparc -y
37testdpkginstalled 'libc6:amd64' 'libc6:armel' 'libc6:sparc'
38testdpkgnotinstalled 'libc6-i386'
39
40testsuccess aptget purge 'libc6:*' 'libc6-i386' -y
41testdpkgnotinstalled 'libc6:amd64' 'libc6:armel' 'libc6:sparc' 'libc6-i386'
42
43# check that (the actually simpler) single arch is fine, too
44configarchitecture 'amd64'
45testfailure aptget install libc6:sparc -s
46testsuccess aptget install libc6 libc6-i386 -y