]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-747261-arch-specific-conflicts
adapt to the new CacheSetHelper API
[apt.git] / test / integration / test-bug-747261-arch-specific-conflicts
CommitLineData
b2db070b
DK
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6setupenvironment
7configarchitecture 'amd64' 'sparc' 'armel'
8
4f6d26b4
DK
9msgtest 'Check that dpkg supports' 'arch-specific dependencies'
10set +e
11# this fails always, the question is just how it fails
12dpkg-checkbuilddeps -d 'foobar:barfoo' /dev/null 2>/dev/null >/dev/null
13RETURNCODE=$?
14set -e
15if [ "$RETURNCODE" != '1' ]; then
16 dpkg-checkbuilddeps -d 'foobar:barfoo' /dev/null || true
17 echo "Command had returncode: $RETURNCODE"
18 msgskip
19 exit 0
20else
21 msgpass
22fi
23
b2db070b
DK
24buildsimplenativepackage 'libc6' 'amd64,sparc,armel' '1' 'stable' 'Multi-Arch: same'
25buildsimplenativepackage 'libc6-i386' 'amd64' '1' 'stable' 'Conflicts: libc6:sparc'
26
27setupaptarchive
28
29testsuccess aptget install 'libc6:amd64' 'libc6:sparc' -y
30testdpkginstalled 'libc6:amd64' 'libc6:sparc'
31testdpkgnotinstalled 'libc6-i386' 'libc6:armel'
32
33testsuccess aptget install libc6-i386 -y
34testdpkginstalled 'libc6:amd64' 'libc6-i386'
35testdpkgnotinstalled 'libc6:sparc' 'libc6:armel'
36
37testsuccess aptget install libc6:armel -y
38testdpkginstalled 'libc6:amd64' 'libc6:armel' 'libc6-i386'
39testdpkgnotinstalled 'libc6:sparc'
40
41testsuccess aptget install libc6:sparc -y
42testdpkginstalled 'libc6:amd64' 'libc6:armel' 'libc6:sparc'
43testdpkgnotinstalled 'libc6-i386'
44
45testsuccess aptget purge 'libc6:*' 'libc6-i386' -y
46testdpkgnotinstalled 'libc6:amd64' 'libc6:armel' 'libc6:sparc' 'libc6-i386'
47
48# check that (the actually simpler) single arch is fine, too
49configarchitecture 'amd64'
50testfailure aptget install libc6:sparc -s
51testsuccess aptget install libc6 libc6-i386 -y