test-bug-673536-pre-depends-breaks-loop 670 B

123456789101112131415161718192021222324
  1. #!/bin/sh
  2. set -e
  3. TESTDIR=$(readlink -f $(dirname $0))
  4. . $TESTDIR/framework
  5. setupenvironment
  6. configarchitecture 'native'
  7. buildsimplenativepackage 'basic' 'native' '1' 'stable'
  8. buildsimplenativepackage 'basic' 'native' '2' 'unstable' 'Pre-Depends: common'
  9. buildsimplenativepackage 'common' 'native' '2' 'unstable' 'Breaks: basic (<= 1)'
  10. setupaptarchive
  11. # we check with 'real' packages here as the simulation reports a 'Conf broken'
  12. # which is technical correct for the simulation, but testing errormsg is ugly
  13. testsuccess aptget install basic=1 -y
  14. testdpkginstalled basic
  15. testdpkgnotinstalled common
  16. testsuccess aptget dist-upgrade -y
  17. testdpkginstalled basic common