]> git.saurik.com Git - apt.git/blame - test/integration/test-changelog
merged from the lp:~mvo/apt/mvo branch
[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
10# this will be valid until ubuntu lucid is EOL (04/2015)
11pkgchangelogtest="Package: apt
12Architecture: i386
13Version: 0.7.25.3ubuntu7
14Filename: pool/main/a/apt/apt_0.7.25.3ubuntu7_i386.deb
15Section: admin
16"
17cat <<-EOF >aptarchive/Packages
18$pkgchangelogtest
19EOF
20
21setupaptarchive
22
23echo "Apt::Changelogs::Server \"http://changelogs.ubuntu.com/\";" >> ./aptconfig.conf
24msgnmsg "apt-get changelog: "
25aptget changelog apt -qq > downloaded-changelog
26expected="apt (0.7.25.3ubuntu7) lucid; urgency=low"
27got="$(head -n1 downloaded-changelog)"
28if [ -s downloaded-changelog ] && [ "$got" = "$expected" ]; then
29 msgpass
30else
31 msgfail
32 msgwarn "$got != $expected"
33fi
34