]> git.saurik.com Git - apt.git/blob - test/integration/test-apt-update-simple
test/integration/test-srcrecord: Make executable
[apt.git] / test / integration / test-apt-update-simple
1 #!/bin/sh
2 set -e
3
4 TESTDIR="$(readlink -f "$(dirname "$0")")"
5 . "$TESTDIR/framework"
6 setupenvironment
7 configarchitecture 'amd64'
8
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
16
17 setupaptarchive --no-update
18 changetowebserver
19
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)'