test-ubuntu-bug-859188-multiarch-reinstall 940 B

12345678910111213141516171819202122232425262728
  1. #!/bin/sh
  2. set -e
  3. TESTDIR="$(readlink -f "$(dirname "$0")")"
  4. . "$TESTDIR/framework"
  5. setupenvironment
  6. configarchitecture 'amd64' 'i386' 'armel'
  7. buildsimplenativepackage 'libsame' 'amd64,i386,armel' '1.0' 'unstable' 'Multi-Arch: same'
  8. setupaptarchive
  9. testsuccess aptget install libsame libsame:i386
  10. REINSTALL='Reading package lists...
  11. Building dependency tree...
  12. Reading state information...
  13. 0 upgraded, 0 newly installed, 2 reinstalled, 0 to remove and 0 not upgraded.
  14. Inst libsame [1.0] (1.0 unstable [amd64])
  15. Inst libsame:i386 [1.0] (1.0 unstable [i386])
  16. Conf libsame (1.0 unstable [amd64])
  17. Conf libsame:i386 (1.0 unstable [i386])'
  18. testsuccessequal "$REINSTALL" aptget install --reinstall libsame -s
  19. testsuccessequal "$REINSTALL" aptget install --reinstall libsame:amd64 -s
  20. testsuccessequal "$REINSTALL" aptget install --reinstall libsame:i386 -s
  21. testsuccessequal "$REINSTALL" aptget install --reinstall libsame:amd64 libsame:i386 -s