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