test-suggest-installed-multiarch-silbing 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. #!/bin/sh
  2. set -e
  3. TESTDIR="$(readlink -f "$(dirname "$0")")"
  4. . "$TESTDIR/framework"
  5. setupenvironment
  6. configarchitecture 'amd64' 'i386' 'armel'
  7. insertinstalledpackage 'foo' 'i386' '1'
  8. insertpackage 'unstable' 'foo' 'amd64,i386' '1'
  9. insertpackage 'unstable,installed' 'foo2' 'i386' '1'
  10. insertinstalledpackage 'foo3' 'amd64' '1'
  11. insertpackage 'unstable' 'foo3' 'amd64,i386' '1'
  12. insertinstalledpackage 'samefoo' 'i386,amd64' '1' 'Multi-Arch: same'
  13. insertpackage 'unstable' 'samefoo' 'amd64,i386,armel' '1' 'Multi-Arch: same'
  14. insertinstalledpackage 'samefoo2' 'i386' '1' 'Multi-Arch: same'
  15. insertpackage 'unstable' 'samefoo2' 'amd64,i386,armel' '1' 'Multi-Arch: same'
  16. insertinstalledpackage 'mozplugger' 'i386' '1' 'Depends: iceweasel | fireweasel'
  17. insertinstalledpackage 'fireweasel' 'i386' '1'
  18. insertpackage 'unstable' 'mozplugger' 'i386,amd64' '1' 'Depends: iceweasel | fireweasel'
  19. setupaptarchive
  20. testsuccessequal "Reading package lists...
  21. Building dependency tree...
  22. Package 'foo' is not installed, so not removed. Did you mean 'foo:i386'?
  23. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded." aptget remove foo -s
  24. testsuccessequal "Reading package lists...
  25. Building dependency tree...
  26. The following packages will be REMOVED:
  27. foo2:i386
  28. 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
  29. Remv foo2:i386 [1]" aptget remove foo2 -s
  30. testsuccessequal "Reading package lists...
  31. Building dependency tree...
  32. The following packages will be REMOVED:
  33. foo3
  34. 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
  35. Remv foo3 [1]" aptget remove foo3 -s
  36. testsuccessequal "Reading package lists...
  37. Building dependency tree...
  38. Package 'foo3:i386' is not installed, so not removed. Did you mean 'foo3'?
  39. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded." aptget remove foo3:i386 -s
  40. testequalor2 "Reading package lists...
  41. Building dependency tree...
  42. Package 'samefoo:armel' is not installed, so not removed. Did you mean 'samefoo'?
  43. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded." "Reading package lists...
  44. Building dependency tree...
  45. Package 'samefoo:armel' is not installed, so not removed. Did you mean 'samefoo:i386'?
  46. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded." aptget remove samefoo:armel -s
  47. testsuccessequal "Reading package lists...
  48. Building dependency tree...
  49. Package 'samefoo2' is not installed, so not removed. Did you mean 'samefoo2:i386'?
  50. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded." aptget remove samefoo2 -s
  51. testsuccessequal "Reading package lists...
  52. Building dependency tree...
  53. Package 'samefoo2:armel' is not installed, so not removed. Did you mean 'samefoo2:i386'?
  54. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded." aptget remove samefoo2:armel -s
  55. testsuccessequal "Reading package lists...
  56. Building dependency tree...
  57. Package 'iceweasel' is not installed, so not removed
  58. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded." aptget remove iceweasel -s
  59. testsuccessequal "Reading package lists...
  60. Building dependency tree...
  61. Package 'fireweasel' is not installed, so not removed. Did you mean 'fireweasel:i386'?
  62. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded." aptget remove fireweasel:amd64 -s