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.
 
 
 
 
 
 

31 lines
996 B

  1. #!/bin/sh
  2. set -e
  3. TESTDIR="$(readlink -f "$(dirname "$0")")"
  4. . "$TESTDIR/framework"
  5. setupenvironment
  6. configarchitecture "i386"
  7. setupaptarchive
  8. testfailureequal "Reading package lists...
  9. Building dependency tree...
  10. Calculating upgrade...
  11. The following packages will be upgraded:
  12. php5 php5-cgi
  13. 2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  14. Need to get 0 B/5715 kB of archives.
  15. After this operation, 0 B of additional disk space will be used.
  16. E: Trivial Only specified but this is not a trivial operation." aptget dist-upgrade --trivial-only
  17. msgtest "Solution process doesn't involve" 'apache2-mpm-prefork'
  18. if aptget dist-upgrade --trivial-only -o Debug::pkgProblemResolver=1 -o Debug::pkgDepCache::Marker=1 2>&1 | grep apache2-mpm-prefork > /dev/null; then
  19. msgfail
  20. else
  21. msgpass
  22. fi
  23. # the Packages file includes only MD5
  24. testfailure aptget dist-upgrade -y
  25. testsuccess grep 'Insufficient information available to perform this download securely' rootdir/tmp/testfailure.output