You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

34 lines
1.6 KiB

  1. #!/bin/sh
  2. set -e
  3. TESTDIR="$(readlink -f "$(dirname "$0")")"
  4. . "$TESTDIR/framework"
  5. setupenvironment
  6. configarchitecture 'amd64'
  7. msgtest 'Check that a repository with' 'signed-by and two components works'
  8. echo 'deb [signed-by=CDE5618B8805FD6E202CE9C2D73C39E56580B386] https://people.debian.org/~jak/debian/ stable main contrib # Äffchen' > rootdir/etc/apt/sources.list
  9. testsuccess --nomsg aptcache policy
  10. msgtest 'Check that a repository with' 'two fingerprints work'
  11. echo 'deb [signed-by=CDE5618B8805FD6E202CE9C2D73C39E56580B386,AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA] https://people.debian.org/~jak/debian/ stable main contrib # Äffchen' > rootdir/etc/apt/sources.list
  12. testsuccess --nomsg aptcache policy
  13. msgtest 'Check that a repository with' 'exact fingerprint works'
  14. echo 'deb [signed-by=CDE5618B8805FD6E202CE9C2D73C39E56580B386!] https://people.debian.org/~jak/debian/ stable main contrib # Äffchen' > rootdir/etc/apt/sources.list
  15. testsuccess --nomsg aptcache policy
  16. msgtest 'Check that a repository with' 'whitespaced fingerprints work'
  17. echo 'deb [signed-by=CDE5618B8805FD6E202CE9C2D73C39E56580B386!,,,,AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA] https://people.debian.org/~jak/debian/ stable main contrib # Äffchen' > rootdir/etc/apt/sources.list
  18. cat > rootdir/etc/apt/sources.list.d/people.sources <<EOF
  19. Types: deb
  20. URIs: mirror+file:/var/lib/apt/mirror.lst
  21. Suites: stable testing
  22. Components: main contrib
  23. Architectures: amd64 i386
  24. Signed-By: CDE5618B8805FD6E202CE9C2D73C39E56580B386! AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  25. , , BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
  26. EOF
  27. testsuccess --nomsg aptcache policy