Debian Codegraph @

test/integration/test-bug-723586-any-stripped-in-single-arch

raw
1 #!/bin/sh
2 set -e
3
4 TESTDIR="$(readlink -f "$(dirname "$0")")"
5 . "$TESTDIR/framework"
6 setupenvironment
7 configarchitecture 'amd64'
8
9 insertinstalledpackage 'python3' 'all' '3.2.3-6'
10
11 insertpackage 'unstable' 'python3' 'amd64' '3.3.2-16' 'Multi-Arch: allowed'
12 insertpackage 'stable' 'python3-gnupg' 'all' '0.3.5-2' 'Depends: python3:any (>= 3.2.3-3~)'
13
14 insertpackage 'unstable' 'python-mips' 'amd64' '3' 'Depends: python3:mips'
15
16 setupaptarchive
17
18 INSTALLLOG='Reading package lists...
19 Building dependency tree...
20 The following additional packages will be installed:
21 python3
22 The following NEW packages will be installed:
23 python3-gnupg
24 The following packages will be upgraded:
25 python3
26 1 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
27 Inst python3 [3.2.3-6] (3.3.2-16 unstable [amd64])
28 Inst python3-gnupg (0.3.5-2 stable [all])
29 Conf python3 (3.3.2-16 unstable [amd64])
30 Conf python3-gnupg (0.3.5-2 stable [all])'
31
32 if [ "$APT_SOLVER" != "internal" ]; then
33 FAILLOG='Reading package lists...
34 Building dependency tree...
35 Solving dependencies...
36 Some packages could not be installed. This may mean that you have
37 requested an impossible situation or if you are using the unstable
38 distribution that some required packages have not yet been created
39 or been moved out of Incoming.
40 The following information may help to resolve the situation:
41
42 The following packages have unmet dependencies:
43 python-mips : Depends: python3:mips but it is not installable
44 E: Unable to satisfy dependencies. Reached two conflicting assignments:
45 1. python-mips:amd64=3 is selected for install
46 2. python-mips:amd64 Depends python3:mips
47 but none of the choices are installable:
48 [no choices]'
49 else
50 FAILLOG='Reading package lists...
51 Building dependency tree...
52 Some packages could not be installed. This may mean that you have
53 requested an impossible situation or if you are using the unstable
54 distribution that some required packages have not yet been created
55 or been moved out of Incoming.
56 The following information may help to resolve the situation:
57
58 The following packages have unmet dependencies:
59 python-mips : Depends: python3:mips but it is not installable
60 E: Unable to correct problems, you have held broken packages.'
61 fi
62
63 testsuccessequal "$INSTALLLOG" aptget install python3-gnupg -s
64 aptcache showpkg python3 > showpkg.log
65 testfailureequal "$FAILLOG" aptget install python-mips -s
66
67 # same test, but this time in a multi-arch environment
68 configarchitecture 'amd64' 'armhf'
69 rm rootdir/var/cache/apt/*.bin
70
71 testsuccessequal "$INSTALLLOG" aptget install python3-gnupg -s
72 testsuccessequal "$(cat showpkg.log)" aptcache showpkg python3
73 testfailureequal "$FAILLOG" aptget install python-mips -s