test-bug-618288-multiarch-same-lockstep 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #!/bin/sh
  2. set -e
  3. TESTDIR=$(readlink -f $(dirname $0))
  4. . $TESTDIR/framework
  5. setupenvironment
  6. configarchitecture 'amd64' 'i386'
  7. insertinstalledpackage 'libsame' 'i386,amd64' '1' 'Multi-Arch: same' 'required'
  8. insertinstalledpackage 'apt' 'i386' '1' 'Depends: libsame (= 1)
  9. Essential: yes' 'required'
  10. insertinstalledpackage 'apt2' 'amd64' '1' 'Depends: libsame (= 1)
  11. Essential: yes' 'required'
  12. buildsimplenativepackage 'libsame' 'i386,amd64' '2' 'unstable' 'Multi-Arch: same' '' 'required'
  13. buildsimplenativepackage 'apt' 'i386' '2' 'unstable' 'Depends: libsame (= 2)' '' 'required'
  14. buildsimplenativepackage 'apt2' 'amd64' '2' 'unstable' 'Depends: libsame (= 2)' '' 'required'
  15. setupaptarchive
  16. # order in switch libsame:{amd64,i386} are unpacked is irrelevant, as both are installed - but we need to do it together
  17. testequalor2 'Reading package lists...
  18. Building dependency tree...
  19. The following packages will be upgraded:
  20. apt:i386 apt2 libsame libsame:i386
  21. 4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  22. Inst libsame:i386 [1] (2 unstable [i386]) [libsame:amd64 on libsame:i386] [libsame:i386 on libsame:amd64] [libsame:amd64 apt:i386 ]
  23. Inst libsame [1] (2 unstable [amd64]) [apt2:amd64 apt:i386 ]
  24. Conf libsame:i386 (2 unstable [i386]) [apt2:amd64 apt:i386 ]
  25. Conf libsame (2 unstable [amd64]) [apt2:amd64 apt:i386 ]
  26. Inst apt2 [1] (2 unstable [amd64]) [apt:i386 ]
  27. Conf apt2 (2 unstable [amd64]) [apt:i386 ]
  28. Inst apt:i386 [1] (2 unstable [i386])
  29. Conf apt:i386 (2 unstable [i386])' 'Reading package lists...
  30. Building dependency tree...
  31. The following packages will be upgraded:
  32. apt:i386 apt2 libsame libsame:i386
  33. 4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  34. Inst libsame [1] (2 unstable [amd64]) [libsame:amd64 on libsame:i386] [libsame:i386 on libsame:amd64] [libsame:i386 apt2:amd64 ]
  35. Inst libsame:i386 [1] (2 unstable [i386]) [apt2:amd64 apt:i386 ]
  36. Conf libsame:i386 (2 unstable [i386]) [apt2:amd64 apt:i386 ]
  37. Conf libsame (2 unstable [amd64]) [apt2:amd64 apt:i386 ]
  38. Inst apt2 [1] (2 unstable [amd64]) [apt:i386 ]
  39. Conf apt2 (2 unstable [amd64]) [apt:i386 ]
  40. Inst apt:i386 [1] (2 unstable [i386])
  41. Conf apt:i386 (2 unstable [i386])' aptget dist-upgrade -s