]> git.saurik.com Git - apt.git/blame - test/integration/test-apt-update-simple
correct cross & disappear progress detection
[apt.git] / test / integration / test-apt-update-simple
CommitLineData
2861bd9a
MV
1#!/bin/sh
2set -e
3
3abb6a6a
DK
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
2861bd9a
MV
6setupenvironment
7configarchitecture 'amd64'
8
4ff5e237
DK
9insertpackage 'unstable' 'foo' 'all' '1'
10insertpackage 'unstable' 'bar' 'amd64' '1'
11insertpackage 'unstable' 'bar' 'i386' '1'
12insertsource 'unstable' 'foo' 'all' '1'
13
14sed -e 's#^Description-en:#Description-de:#' \
15 aptarchive/dists/unstable/main/i18n/Translation-en > aptarchive/dists/unstable/main/i18n/Translation-de
2861bd9a
MV
16
17setupaptarchive --no-update
18changetowebserver
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
23echo 'Acquire::IndexTargets::Randomized "true";
24Acquire::Languages { "environment"; "en"; "de"; };
25' > rootdir/etc/apt/apt.conf.d/restore-simplicity
26
27testempty aptget indextargets
28testsuccess aptget update
29testequal 'main/source/Sources
30main/binary-amd64/Packages
31main/binary-all/Packages
32main/i18n/Translation-en
33main/i18n/Translation-de' aptget indextargets --format '$(METAKEY)'