]> git.saurik.com Git - apt.git/blame_incremental - test/integration/test-bug-733028-gpg-resource-limit
test: Use :$(id -gn) instead of :root (when run as root)
[apt.git] / test / integration / test-bug-733028-gpg-resource-limit
... / ...
CommitLineData
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
16testaptkeys 'Joe Sixpack'
17
18testsuccess aptget update
19msgtest 'Test for no gpg errors/warnings in' 'apt-get update'
20if grep -iq 'GPG' rootdir/tmp/testsuccess.output; then
21 cat rootdir/tmp/testsuccess.output
22 msgfail
23else
24 msgpass
25fi