]>
Commit | Line | Data |
---|---|---|
7a223b93 DK |
1 | #!/bin/sh |
2 | set -e | |
3 | ||
3abb6a6a DK |
4 | TESTDIR="$(readlink -f "$(dirname "$0")")" |
5 | . "$TESTDIR/framework" | |
7a223b93 DK |
6 | setupenvironment |
7 | configarchitecture 'amd64' | |
8 | ||
10e100e5 DK |
9 | insertpackage 'unstable,installed' 'cool-foo' 'amd64' '1.0' 'Depends: foo' |
10 | insertpackage 'unstable,installed' 'foo' 'amd64' '1.0' 'Multi-Arch: foreign' | |
7a223b93 DK |
11 | |
12 | setupaptarchive | |
13 | ||
14 | testsuccess aptget check -s | |
15 | ||
16 | configarchitecture 'amd64' 'i386' | |
25b86db1 | 17 | testfailureequal 'E: The package cache was built for different architectures: amd64 vs amd64,i386' aptget check -s -o pkgCacheFile::Generate=false |
7a223b93 DK |
18 | |
19 | testsuccess aptget check -s | |
20 | ||
21 | insertinstalledpackage 'awesome-foo' 'i386' '1.0' 'Depends: foo' | |
22 | ||
23 | testsuccess aptget check -s | |
24 | ||
25 | testsuccess aptget update --no-download | |
26 | ||
27 | testsuccess aptget check -s |