test-bug-733028-gpg-resource-limit 519 B

1234567891011121314151617181920212223242526
  1. #!/bin/sh
  2. set -e
  3. TESTDIR="$(readlink -f "$(dirname "$0")")"
  4. . "$TESTDIR/framework"
  5. setupenvironment
  6. configarchitecture 'i386'
  7. insertpackage 'unstable' 'foobar' 'all' '1'
  8. setupaptarchive --no-update
  9. for i in $(seq 1 50); do
  10. touch rootdir/etc/apt/trusted.gpg.d/emptykey-${i}.gpg
  11. done
  12. testaptkeys 'Joe Sixpack'
  13. testsuccess aptget update
  14. msgtest 'Test for no gpg errors/warnings in' 'apt-get update'
  15. if grep -iq 'GPG' rootdir/tmp/testsuccess.output; then
  16. cat rootdir/tmp/testsuccess.output
  17. msgfail
  18. else
  19. msgpass
  20. fi