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.

test-conflicts-real-multiarch-same 1.8 KiB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #!/bin/sh
  2. set -e
  3. TESTDIR="$(readlink -f "$(dirname "$0")")"
  4. . "$TESTDIR/framework"
  5. setupenvironment
  6. configarchitecture 'amd64' 'i386'
  7. insertpackage 'unstable' 'virtual-provider' 'amd64,i386' '2' 'Provides: virtual
  8. Conflicts: virtual
  9. Multi-Arch: same'
  10. insertpackage 'unstable' 'real' 'amd64,i386' '2' 'Conflicts: real
  11. Multi-Arch: same'
  12. insertpackage 'unstable' 'real-provider' 'amd64,i386' '2' 'Provides: real-provider
  13. Conflicts: real-provider
  14. Multi-Arch: same'
  15. setupaptarchive
  16. testsuccessequal "Reading package lists...
  17. Building dependency tree...
  18. Note, selecting 'virtual-provider' instead of 'virtual'
  19. Note, selecting 'virtual-provider:i386' instead of 'virtual:i386'
  20. The following NEW packages will be installed:
  21. virtual-provider virtual-provider:i386
  22. 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
  23. Inst virtual-provider (2 unstable [amd64])
  24. Inst virtual-provider:i386 (2 unstable [i386])
  25. Conf virtual-provider (2 unstable [amd64])
  26. Conf virtual-provider:i386 (2 unstable [i386])" aptget install virtual:* -s
  27. testsuccessequal 'Reading package lists...
  28. Building dependency tree...
  29. The following NEW packages will be installed:
  30. real real:i386
  31. 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
  32. Inst real (2 unstable [amd64])
  33. Inst real:i386 (2 unstable [i386])
  34. Conf real (2 unstable [amd64])
  35. Conf real:i386 (2 unstable [i386])' aptget install real:* -s
  36. # ensure that we are not confused by the provides
  37. testsuccessequal 'Reading package lists...
  38. Building dependency tree...
  39. The following NEW packages will be installed:
  40. real-provider real-provider:i386
  41. 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
  42. Inst real-provider (2 unstable [amd64])
  43. Inst real-provider:i386 (2 unstable [i386])
  44. Conf real-provider (2 unstable [amd64])
  45. Conf real-provider:i386 (2 unstable [i386])' aptget install real-provider:* -s