You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
940 B

  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