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.
 
 
 
 
 
 

49 lines
1.4 KiB

  1. #!/bin/sh
  2. set -e
  3. TESTDIR="$(readlink -f "$(dirname "$0")")"
  4. . "$TESTDIR/framework"
  5. setupenvironment
  6. configarchitecture 'amd64'
  7. buildsimplenativepackage 'foo' 'all' '1' 'stable'
  8. export APT_DONT_SIGN=''
  9. setupaptarchive --no-update
  10. changetowebserver
  11. testsuccess aptget update
  12. testdpkgnotinstalled 'foo'
  13. testsuccess apt install foo -y
  14. testdpkginstalled 'foo'
  15. testsuccess apt purge foo -y
  16. testdpkgnotinstalled 'foo'
  17. msgmsg 'Untrusted to trusted hit' 'InRelease'
  18. rm -rf rootdir/var/lib/apt/lists rootdir/var/cache/apt/archives
  19. mv rootdir/etc/apt/trusted.gpg.d rootdir/etc/apt/trusted.gpg.d-bak
  20. testfailure aptget update
  21. testwarning aptget update --allow-insecure-repositories
  22. testfailure apt install foo -y
  23. testdpkgnotinstalled 'foo'
  24. mv rootdir/etc/apt/trusted.gpg.d-bak rootdir/etc/apt/trusted.gpg.d
  25. testsuccess aptget update
  26. testsuccess apt install foo -y
  27. testdpkginstalled 'foo'
  28. testsuccess apt purge foo -y
  29. testdpkgnotinstalled 'foo'
  30. msgmsg 'Untrusted to trusted hit' 'Release.gpg'
  31. find aptarchive -name 'InRelease' -delete
  32. rm -rf rootdir/var/lib/apt/lists rootdir/var/cache/apt/archives
  33. mv rootdir/etc/apt/trusted.gpg.d rootdir/etc/apt/trusted.gpg.d-bak
  34. testfailure aptget update
  35. testwarning aptget update --allow-insecure-repositories
  36. testfailure apt install foo -y
  37. testdpkgnotinstalled 'foo'
  38. mv rootdir/etc/apt/trusted.gpg.d-bak rootdir/etc/apt/trusted.gpg.d
  39. testsuccess aptget update
  40. testsuccess apt install foo -y
  41. testdpkginstalled 'foo'