prepare 1.0.4 upload
[ntk/apt.git] / test / integration / test-bug-723586-any-stripped-in-single-arch
CommitLineData
b4140ecf
DK
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6setupenvironment
7configarchitecture 'amd64'
8
9insertinstalledpackage 'python3' 'all' '3.2.3-6'
10
11insertpackage 'unstable' 'python3' 'amd64' '3.3.2-16' 'Multi-Arch: allowed'
12insertpackage 'stable' 'python3-gnupg' 'all' '0.3.5-2' 'Depends: python3:any (>= 3.2.3-3~)'
13
14insertpackage 'unstable' 'python-mips' 'amd64' '3' 'Depends: python3:mips'
15
16setupaptarchive
17
18INSTALLLOG='Reading package lists...
19Building dependency tree...
20The following extra packages will be installed:
21 python3
22The following NEW packages will be installed:
23 python3-gnupg
24The following packages will be upgraded:
25 python3
261 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
27Inst python3 [3.2.3-6] (3.3.2-16 unstable [amd64])
28Inst python3-gnupg (0.3.5-2 stable [all])
29Conf python3 (3.3.2-16 unstable [amd64])
30Conf python3-gnupg (0.3.5-2 stable [all])'
31
32FAILLOG='Reading package lists...
33Building dependency tree...
34Some packages could not be installed. This may mean that you have
35requested an impossible situation or if you are using the unstable
36distribution that some required packages have not yet been created
37or been moved out of Incoming.
38The following information may help to resolve the situation:
39
40The following packages have unmet dependencies:
41 python-mips : Depends: python3:mips but it is not installable
42E: Unable to correct problems, you have held broken packages.'
43
44testequal "$INSTALLLOG" aptget install python3-gnupg -s
45aptcache showpkg python3 > showpkg.log
46testequal "$FAILLOG" aptget install python-mips -s
47
48# same test, but this time in a multi-arch environment
49configarchitecture 'amd64' 'armhf'
50rm rootdir/var/cache/apt/*.bin
51
52testequal "$INSTALLLOG" aptget install python3-gnupg -s
53testequal "$(sed 's#3.3.2-16 - python3#3.3.2-16 - python3:any:armhf python3#' showpkg.log)" aptcache showpkg python3
54testequal "$FAILLOG" aptget install python-mips -s