]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-733028-gpg-resource-limit
use c++ style instead of the last two c-arrays
[apt.git] / test / integration / test-bug-733028-gpg-resource-limit
CommitLineData
12841e83
DK
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6setupenvironment
7configarchitecture 'i386'
8
9insertpackage 'unstable' 'foobar' 'all' '1'
10
11setupaptarchive --no-update
12
13for i in $(seq 1 50); do
14 touch rootdir/etc/apt/trusted.gpg.d/emptykey-${i}.gpg
15done
16
17aptkey list | grep '^pub' > aptkey.list
18testfileequal ./aptkey.list 'pub 2048R/DBAC8DAE 2010-08-18'
19
20msgtest 'Test for no gpg errors/warnings in' 'apt-get update'
21aptget update > update.log 2>&1
22if grep -iq 'GPG' update.log; then
23 msgfail
24 cat update.log
25else
26 msgpass
27fi