]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-633350-do-not-kill-last-char-in-Release
add optional support for comments in pkgTagFile
[apt.git] / test / integration / test-bug-633350-do-not-kill-last-char-in-Release
CommitLineData
ae6ea526
DK
1#!/bin/sh
2set -e
3
3abb6a6a
DK
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
ae6ea526
DK
6setupenvironment
7configarchitecture 'amd64'
8
9insertpackage 'unstable' 'cool' 'amd64' '1.0'
10
18908589 11setupaptarchive --no-update
ae6ea526
DK
12
13echo 'NotAutomatic: yes' >> aptarchive/dists/unstable/Release
14
15signreleasefiles
16find aptarchive/dists -name 'InRelease' -delete
17
8de79b68 18rm -rf rootdir/var/lib/apt/lists
ae6ea526
DK
19
20OUTPUT="$(aptget update 2>&1)"
21msgtest 'Check that parsing happens without warnings' 'with missing newline'
22if echo "${OUTPUT}" | grep '^W:' > /dev/null; then
23 msgfail
24 echo "${OUTPUT}"
25else
26 msgpass
27fi