]> git.saurik.com Git - apt.git/blame_incremental - test/integration/test-bug-618288-multiarch-same-lockstep
eipp: add Allow-Temporary-Remove-of-Essentials
[apt.git] / test / integration / test-bug-618288-multiarch-same-lockstep
... / ...
CommitLineData
1#!/bin/sh
2set -e
3
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
6setupenvironment
7configarchitecture 'amd64' 'i386'
8
9insertinstalledpackage 'libsame' 'i386,amd64' '1' 'Multi-Arch: same' 'required'
10insertinstalledpackage 'apt' 'i386' '1' 'Depends: libsame (= 1)
11Essential: yes' 'required'
12insertinstalledpackage 'apt2' 'amd64' '1' 'Depends: libsame (= 1)
13Essential: yes' 'required'
14buildsimplenativepackage 'libsame' 'i386,amd64' '2' 'unstable' 'Multi-Arch: same' '' 'required'
15buildsimplenativepackage 'apt' 'i386' '2' 'unstable' 'Depends: libsame (= 2)' '' 'required'
16buildsimplenativepackage 'apt2' 'amd64' '2' 'unstable' 'Depends: libsame (= 2)' '' 'required'
17
18setupaptarchive
19testsuccess aptget dist-upgrade -s -o Debug::pkgPackageManager=1
20
21# order in switch libsame:{amd64,i386} are unpacked is irrelevant, as both are installed - but we need to do it together
22OUTPUT=rootdir/tmp/testsuccess.output
23LS_U_AMD="$(grep -o -n '^Inst libsame ' $OUTPUT | cut -d: -f1)"
24LS_U_INT="$(grep -o -n '^Inst libsame:i386 ' $OUTPUT | cut -d: -f1)"
25LS_C_AMD="$(grep -o -n '^Conf libsame ' $OUTPUT | cut -d: -f1)"
26LS_C_INT="$(grep -o -n '^Conf libsame:i386 ' $OUTPUT | cut -d: -f1)"
27
28msgtest 'Test if' 'libsame:amd64 unpack before configure'
29test "$LS_U_AMD" -lt "$LS_C_AMD" && msgpass || msgfail
30
31msgtest 'Test if' 'libsame:i386 unpack before configure'
32test "$LS_U_INT" -lt "$LS_C_INT" && msgpass || msgfail
33
34msgtest 'Test if' 'libsame:amd64 unpack is before libsame:i386 configure'
35test "$LS_U_AMD" -lt "$LS_C_INT" && msgpass || msgfail
36
37msgtest 'Test if' 'libsame:i386 unpack is before libsame:amd64 configure'
38test "$LS_U_INT" -lt "$LS_C_AMD" && msgpass || msgfail