test-bug-679371-apt-get-autoclean-multiarch 752 B

12345678910111213141516171819202122232425262728
  1. #!/bin/sh
  2. set -e
  3. TESTDIR="$(readlink -f "$(dirname "$0")")"
  4. . "$TESTDIR/framework"
  5. setupenvironment
  6. configarchitecture 'amd64' 'i386'
  7. buildsimplenativepackage 'pkgall' 'all' '1' 'stable'
  8. buildsimplenativepackage 'pkgnative' 'amd64' '1' 'stable'
  9. buildsimplenativepackage 'pkgforeign' 'i386' '1' 'stable'
  10. setupaptarchive
  11. changetowebserver
  12. testsuccess aptget update
  13. testsuccess aptget install pkgall pkgnative pkgforeign -y
  14. # if we work with an old dpkg, pkgforeign will be listed differently,
  15. # so test with aptcache for install status instead
  16. testdpkginstalled pkgall pkgnative
  17. testsuccess aptcache show pkgforeign/installed
  18. testsuccessequal 'Reading package lists...
  19. Building dependency tree...
  20. Reading state information...' aptget autoclean -s