test-apt-move-and-forget-manual-sections 841 B

1234567891011121314151617181920212223242526272829303132
  1. #!/bin/sh
  2. set -e
  3. TESTDIR="$(readlink -f "$(dirname "$0")")"
  4. . "$TESTDIR/framework"
  5. setupenvironment
  6. configarchitecture 'native'
  7. aptconfig dump --no-empty --format '%v%n' APT::Move-Autobit-Sections > move-autobit.sections
  8. testsuccess grep '^oldlibs$' move-autobit.sections
  9. buildsimplenativepackage 'libabc' 'native' '1' 'stable' '' '' 'libs'
  10. buildsimplenativepackage 'libabc' 'native' '2' 'unstable' 'Depends: libdef' '' 'oldlibs'
  11. buildsimplenativepackage 'libdef' 'native' '1' 'unstable' '' '' 'libs'
  12. setupaptarchive
  13. testmarkedauto
  14. testmarkedmanual 'dpkg'
  15. testsuccess aptget install libabc/stable -y
  16. testdpkginstalled 'libabc'
  17. testdpkgnotinstalled 'libdef'
  18. testmarkedmanual 'dpkg' 'libabc'
  19. testmarkedauto
  20. testsuccess aptget dist-upgrade -y
  21. testdpkginstalled 'libabc' 'libdef'
  22. testmarkedauto 'libabc'
  23. testmarkedmanual 'dpkg' 'libdef'