]>
Commit | Line | Data |
---|---|---|
2861bd9a MV |
1 | #!/bin/sh |
2 | set -e | |
3 | ||
3abb6a6a DK |
4 | TESTDIR="$(readlink -f "$(dirname "$0")")" |
5 | . "$TESTDIR/framework" | |
2861bd9a MV |
6 | setupenvironment |
7 | configarchitecture 'amd64' | |
8 | ||
4ff5e237 DK |
9 | insertpackage 'unstable' 'foo' 'all' '1' |
10 | insertpackage 'unstable' 'bar' 'amd64' '1' | |
11 | insertpackage 'unstable' 'bar' 'i386' '1' | |
12 | insertsource 'unstable' 'foo' 'all' '1' | |
13 | ||
14 | sed -e 's#^Description-en:#Description-de:#' \ | |
15 | aptarchive/dists/unstable/main/i18n/Translation-en > aptarchive/dists/unstable/main/i18n/Translation-de | |
2861bd9a MV |
16 | |
17 | setupaptarchive --no-update | |
18 | changetowebserver | |
19 | ||
4ff5e237 DK |
20 | # the framework modifies some configs to ensure testability, |
21 | # at the expense of creating an environment which doesn't always | |
22 | # reflect apts "normal" behavior on a "normal" system | |
23 | echo 'Acquire::IndexTargets::Randomized "true"; | |
24 | Acquire::Languages { "environment"; "en"; "de"; }; | |
25 | ' > rootdir/etc/apt/apt.conf.d/restore-simplicity | |
26 | ||
27 | testempty aptget indextargets | |
28 | testsuccess aptget update | |
29 | testequal 'main/source/Sources | |
30 | main/binary-amd64/Packages | |
31 | main/binary-all/Packages | |
32 | main/i18n/Translation-en | |
33 | main/i18n/Translation-de' aptget indextargets --format '$(METAKEY)' |