~ubuntu-core-dev/apt/oneiric

« back to all changes in this revision

Viewing changes to test/integration/test-ubuntu-bug-835625-multiarch-lockstep-installed-first

  • Committer: Michael Vogt
  • Date: 2011-09-13 07:03:14 UTC
  • Revision ID: michael.vogt@ubuntu.com-20110913070314-8bca62ta0wi2x12e
* cherry pick revision 2173 from lp:~donkult/apt/sid

- M-A:same lockstep unpack should operate on installed
  packages first (LP: #835625)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
set -e
 
3
 
 
4
TESTDIR=$(readlink -f $(dirname $0))
 
5
. $TESTDIR/framework
 
6
setupenvironment
 
7
configarchitecture 'amd64' 'i386'
 
8
 
 
9
insertinstalledpackage 'libsame' 'i386' '1'
 
10
insertinstalledpackage 'apt' 'i386' '1' 'Depends: libsame (= 1)'
 
11
 
 
12
insertpackage 'unstable' 'libsame' 'i386,amd64' '2' 'Multi-Arch: same'
 
13
insertpackage 'unstable' 'apt' 'i386' '2' 'Depends: libsame (= 2)'
 
14
 
 
15
setupaptarchive
 
16
 
 
17
testequal 'Reading package lists...
 
18
Building dependency tree...
 
19
The following extra packages will be installed:
 
20
  apt:i386 libsame:i386
 
21
The following NEW packages will be installed:
 
22
  libsame
 
23
The following packages will be upgraded:
 
24
  apt:i386 libsame:i386
 
25
2 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
 
26
Inst libsame:i386 [1] (2 unstable [i386]) [apt:i386 ]
 
27
Inst libsame (2 unstable [amd64]) [apt:i386 ]
 
28
Conf libsame:i386 (2 unstable [i386]) [apt:i386 ]
 
29
Conf libsame (2 unstable [amd64]) [apt:i386 ]
 
30
Inst apt:i386 [1] (2 unstable [i386])
 
31
Conf apt:i386 (2 unstable [i386])' aptget install libsame:amd64 -s