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.
 
 
 
 
 
 

28 lines
564 B

  1. #!/bin/sh
  2. set -e
  3. TESTDIR=$(readlink -f $(dirname $0))
  4. . $TESTDIR/framework
  5. setupenvironment
  6. configarchitecture 'amd64'
  7. insertpackage 'unstable' 'cool' 'amd64' '1.0'
  8. setupaptarchive 2> /dev/null
  9. echo 'NotAutomatic: yes' >> aptarchive/dists/unstable/Release
  10. signreleasefiles
  11. find aptarchive/dists -name 'InRelease' -delete
  12. rm -rf rootdir/var/lib/apt/lists
  13. OUTPUT="$(aptget update 2>&1)"
  14. msgtest 'Check that parsing happens without warnings' 'with missing newline'
  15. if echo "${OUTPUT}" | grep '^W:' > /dev/null; then
  16. msgfail
  17. echo "${OUTPUT}"
  18. else
  19. msgpass
  20. fi