diff options
author | Michael Vogt <mvo@debian.org> | 2011-02-02 22:49:41 +0100 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2011-02-02 22:49:41 +0100 |
commit | 7c748f4aa1bd47089672353fd1a401d1c5c94723 (patch) | |
tree | 633dd1ca8e7e40cfa25d6227d9859b04bd9d1fad /test/integration/test-changelog | |
parent | a92392501b5981b41da8497a99f5964e2f6075b0 (diff) | |
parent | 7763525dea18d978a1df8eee4a517314ae49ca71 (diff) |
merged from the lp:~mvo/apt/mvo branch
Diffstat (limited to 'test/integration/test-changelog')
-rwxr-xr-x | test/integration/test-changelog | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/test/integration/test-changelog b/test/integration/test-changelog new file mode 100755 index 000000000..292df6e32 --- /dev/null +++ b/test/integration/test-changelog @@ -0,0 +1,34 @@ +#!/bin/sh +set -e + +TESTDIR=$(readlink -f $(dirname $0)) +. $TESTDIR/framework + +setupenvironment +configarchitecture "i386" + +# this will be valid until ubuntu lucid is EOL (04/2015) +pkgchangelogtest="Package: apt +Architecture: i386 +Version: 0.7.25.3ubuntu7 +Filename: pool/main/a/apt/apt_0.7.25.3ubuntu7_i386.deb +Section: admin +" +cat <<-EOF >aptarchive/Packages +$pkgchangelogtest +EOF + +setupaptarchive + +echo "Apt::Changelogs::Server \"http://changelogs.ubuntu.com/\";" >> ./aptconfig.conf +msgnmsg "apt-get changelog: " +aptget changelog apt -qq > downloaded-changelog +expected="apt (0.7.25.3ubuntu7) lucid; urgency=low" +got="$(head -n1 downloaded-changelog)" +if [ -s downloaded-changelog ] && [ "$got" = "$expected" ]; then + msgpass +else + msgfail + msgwarn "$got != $expected" +fi + |