]> git.saurik.com Git - apt.git/blame - test/integration/test-changelog
implement --print-uris for download command
[apt.git] / test / integration / test-changelog
CommitLineData
e5837128
MV
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6
7setupenvironment
8configarchitecture "i386"
9
13845042 10buildsimplenativepackage 'apt' 'all' '1.0' 'stable'
e5837128
MV
11
12setupaptarchive
13845042
DK
13changetowebserver
14aptget update -qq
e5837128 15
13845042 16echo 'Apt::Changelogs::Server "http://localhost:8080/";' >> ./aptconfig.conf
e5837128 17
fcb144b9
DK
18testequal "'http://localhost:8080//pool/apt_1.0/changelog'" aptget changelog apt --print-uris
19
13845042
DK
20aptget changelog apt -qq > apt.changelog
21testfileequal 'apt.changelog' "$(cat aptarchive/pool/apt_1.0/changelog)"
72dd5bec
DK
22rm apt.changelog
23
24aptget changelog apt -d -qq
25testfileequal 'apt.changelog' "$(cat aptarchive/pool/apt_1.0/changelog)"
26rm apt.changelog aptarchive/pool/apt_1.0/changelog
13845042
DK
27
28aptget changelog apt -qq -o APT::Changelogs::Server='http://not-on-the-main-server:8080/' > apt.changelog
29testfileequal 'apt.changelog' "$(cat aptarchive/pool/apt_1.0.changelog)"
72dd5bec
DK
30rm apt.changelog
31
32aptget changelog apt -d -qq
33testfileequal 'apt.changelog' "$(cat aptarchive/pool/apt_1.0.changelog)"
34rm apt.changelog aptarchive/pool/apt_1.0.changelog
13845042
DK
35
36testequal 'E: changelog download failed' aptget changelog apt -qq -o APT::Changelogs::Server='http://not-on-the-main-server:8080/'