summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2011-07-28 09:29:44 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2011-07-28 09:29:44 +0200
commit3952f883f3b60aaebe538afe3e8fb2b9f75c9262 (patch)
treeda5be7ddf1de74d170737ff01eabb0d771ff2e5e /test
parent0b7d641cf12761c3dcc5edb4031adfc9709963e4 (diff)
parentb433026f2803b42904937059cc62d902f2ca6294 (diff)
merged from debian-apt
Diffstat (limited to 'test')
-rwxr-xr-xtest/integration/test-bug-633350-do-not-kill-last-char-in-Release27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/integration/test-bug-633350-do-not-kill-last-char-in-Release b/test/integration/test-bug-633350-do-not-kill-last-char-in-Release
new file mode 100755
index 000000000..3d3835507
--- /dev/null
+++ b/test/integration/test-bug-633350-do-not-kill-last-char-in-Release
@@ -0,0 +1,27 @@
+#!/bin/sh
+set -e
+
+TESTDIR=$(readlink -f $(dirname $0))
+. $TESTDIR/framework
+setupenvironment
+configarchitecture 'amd64'
+
+insertpackage 'unstable' 'cool' 'amd64' '1.0'
+
+setupaptarchive 2> /dev/null
+
+echo 'NotAutomatic: yes' >> aptarchive/dists/unstable/Release
+
+signreleasefiles
+find aptarchive/dists -name 'InRelease' -delete
+
+rm -rf rootdir/var/lib/apt/lists rootdir/var/cache/apt
+
+OUTPUT="$(aptget update 2>&1)"
+msgtest 'Check that parsing happens without warnings' 'with missing newline'
+if echo "${OUTPUT}" | grep '^W:' > /dev/null; then
+ msgfail
+ echo "${OUTPUT}"
+else
+ msgpass
+fi