]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-747261-arch-specific-conflicts
add an additional test for arch specific conflicts
[apt.git] / test / integration / test-bug-747261-arch-specific-conflicts
CommitLineData
6f22aa08
DK
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6setupenvironment
7configarchitecture 'amd64' 'sparc' 'armel'
8
9buildsimplenativepackage 'libc6' 'amd64,sparc,armel' '1' 'stable' 'Multi-Arch: same'
10buildsimplenativepackage 'libc6-i386' 'amd64' '1' 'stable' 'Conflicts: libc6:sparc'
11
12setupaptarchive
13
14testsuccess aptget install 'libc6:amd64' 'libc6:sparc' -y
15testdpkginstalled 'libc6:amd64' 'libc6:sparc'
16testdpkgnotinstalled 'libc6-i386' 'libc6:armel'
17
18testsuccess aptget install libc6-i386 -y
19testdpkginstalled 'libc6:amd64' 'libc6-i386'
20testdpkgnotinstalled 'libc6:sparc' 'libc6:armel'
21
22testsuccess aptget install libc6:armel -y
23testdpkginstalled 'libc6:amd64' 'libc6:armel' 'libc6-i386'
24testdpkgnotinstalled 'libc6:sparc'
25
26testsuccess aptget install libc6:sparc -y
27testdpkginstalled 'libc6:amd64' 'libc6:armel' 'libc6:sparc'
28testdpkgnotinstalled 'libc6-i386'
29
30testsuccess aptget purge 'libc6:*' 'libc6-i386' -y
31testdpkgnotinstalled 'libc6:amd64' 'libc6:armel' 'libc6:sparc' 'libc6-i386'
32
33# check that (the actually simpler) single arch is fine, too
34configarchitecture 'amd64'
35testfailure aptget install libc6:sparc -s
36testsuccess aptget install libc6 libc6-i386 -y