]>
Commit | Line | Data |
---|---|---|
e5837128 MV |
1 | #!/bin/sh |
2 | set -e | |
3 | ||
4 | TESTDIR=$(readlink -f $(dirname $0)) | |
5 | . $TESTDIR/framework | |
6 | ||
7 | setupenvironment | |
8 | configarchitecture "i386" | |
9 | ||
10 | # this will be valid until ubuntu lucid is EOL (04/2015) | |
11 | pkgchangelogtest="Package: apt | |
12 | Architecture: i386 | |
13 | Version: 0.7.25.3ubuntu7 | |
14 | Filename: pool/main/a/apt/apt_0.7.25.3ubuntu7_i386.deb | |
15 | Section: admin | |
16 | " | |
17 | cat <<-EOF >aptarchive/Packages | |
18 | $pkgchangelogtest | |
19 | EOF | |
20 | ||
21 | setupaptarchive | |
22 | ||
23 | echo "Apt::Changelogs::Server \"http://changelogs.ubuntu.com/\";" >> ./aptconfig.conf | |
24 | msgnmsg "apt-get changelog: " | |
25 | aptget changelog apt -qq > downloaded-changelog | |
26 | expected="apt (0.7.25.3ubuntu7) lucid; urgency=low" | |
27 | got="$(head -n1 downloaded-changelog)" | |
28 | if [ -s downloaded-changelog ] && [ "$got" = "$expected" ]; then | |
29 | msgpass | |
30 | else | |
31 | msgfail | |
32 | msgwarn "$got != $expected" | |
33 | fi | |
34 |