]> git.saurik.com Git - apt.git/blame_incremental - test/integration/test-apt-update-simple
keep Release.gpg on untrusted to trusted IMS-Hit
[apt.git] / test / integration / test-apt-update-simple
... / ...
CommitLineData
1#!/bin/sh
2set -e
3
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
6setupenvironment
7configarchitecture 'amd64'
8
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
16
17setupaptarchive --no-update
18changetowebserver
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
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)'