]> git.saurik.com Git - apt.git/blame - test/integration/test-releasefile-verification-noflat
add a testcase for support of various build-dependency types
[apt.git] / test / integration / test-releasefile-verification-noflat
CommitLineData
71203dbf
JAK
1#!/bin/sh
2set -e
3
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
6
7setupenvironment
8configarchitecture "i386"
9
10export APT_DONT_SIGN='Release.gpg'
11insertpackage 'unstable' 'foo' 'i386' '1.0'
12setupaptarchive "now" "now + 1 year"
13changetowebserver
14
15SIXPACK="$(aptkey --keyring keys/joesixpack.pub finger | grep 'Key fingerprint' | cut -d'=' -f 2 | tr -d ' ')"
16
17testsuccess aptget update
18
19msgmsg 'Warm archive with signed-by' 'Joe Sixpack'
20sed -i "/^Valid-Until: / a\
21Signed-By: ${SIXPACK}" rootdir/var/lib/apt/lists/*Release
22touch -d 'now - 1 year' rootdir/var/lib/apt/lists/*Release
23testsuccessequal "Get:1 http://localhost:${APTHTTPPORT} unstable InRelease [$(stat -c '%s' 'aptarchive/dists/unstable/InRelease') B]
24Reading package lists..." aptget update
25testsuccess aptcache show foo