test-bug-720597-build-dep-purge 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/bin/sh
  2. set -e
  3. TESTDIR=$(readlink -f $(dirname $0))
  4. . $TESTDIR/framework
  5. setupenvironment
  6. configarchitecture 'amd64'
  7. insertinstalledpackage 'build-essential' 'all' '11.5' 'Multi-Arch: foreign'
  8. insertinstalledpackage 'pkga' 'all' '1'
  9. buildsimplenativepackage 'pkgb' 'amd64' '1' 'stable' 'Conflicts: pkga'
  10. buildsimplenativepackage 'pkgc' 'amd64' '1' 'stable' 'Build-Depends: pkgb'
  11. setupaptarchive
  12. testequal 'Reading package lists...
  13. Building dependency tree...
  14. The following packages will be REMOVED:
  15. pkga
  16. The following NEW packages will be installed:
  17. pkgb
  18. 0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
  19. Remv pkga [1]
  20. Inst pkgb (1 stable [amd64])
  21. Conf pkgb (1 stable [amd64])' aptget build-dep pkgc -s
  22. testequal 'Reading package lists...
  23. Building dependency tree...
  24. The following packages will be REMOVED:
  25. pkga*
  26. The following NEW packages will be installed:
  27. pkgb
  28. 0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
  29. Purg pkga [1]
  30. Inst pkgb (1 stable [amd64])
  31. Conf pkgb (1 stable [amd64])' aptget build-dep pkgc -s --purge