test-bug-612099-multiarch-conflicts 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. #!/bin/sh
  2. set -e
  3. TESTDIR=$(readlink -f $(dirname $0))
  4. . $TESTDIR/framework
  5. setupenvironment
  6. configarchitecture "i386" "amd64"
  7. buildsimplenativepackage 'peace-dpkg' 'all' '1.0' 'stable'
  8. buildsimplenativepackage 'libc6' 'i386' '1.0' 'stable'
  9. buildsimplenativepackage 'libc6' 'amd64' '1.0' 'stable'
  10. buildsimplenativepackage 'libc6' 'all' '2.0' 'testing'
  11. buildsimplenativepackage 'foobar' 'i386' '1.0' 'stable' 'Depends: libc6'
  12. buildsimplenativepackage 'foobar' 'amd64' '1.0' 'stable' 'Depends: libc6'
  13. setupaptarchive
  14. aptget install peace-dpkg:i386 -y -qq 2>&1 > /dev/null
  15. testdpkginstalled peace-dpkg
  16. aptget install libc6:i386 -t stable -y -qq 2>&1 > /dev/null
  17. testdpkginstalled libc6
  18. testequal 'Reading package lists...
  19. Building dependency tree...
  20. Reading state information...
  21. The following packages will be REMOVED:
  22. libc6
  23. The following NEW packages will be installed:
  24. libc6:amd64
  25. 0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
  26. Remv libc6 [1.0]
  27. Inst libc6:amd64 (1.0 stable [amd64])
  28. Conf libc6:amd64 (1.0 stable [amd64])' aptget install libc6:amd64 -s -t stable
  29. testequal 'Reading package lists...
  30. Building dependency tree...
  31. Reading state information...
  32. The following NEW packages will be installed:
  33. foobar
  34. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  35. Inst foobar (1.0 stable [i386])
  36. Conf foobar (1.0 stable [i386])' aptget install foobar -st stable
  37. testequal 'Reading package lists...
  38. Building dependency tree...
  39. Reading state information...
  40. The following extra packages will be installed:
  41. libc6:amd64
  42. The following packages will be REMOVED:
  43. libc6
  44. The following NEW packages will be installed:
  45. foobar:amd64 libc6:amd64
  46. 0 upgraded, 2 newly installed, 1 to remove and 0 not upgraded.
  47. Remv libc6 [1.0]
  48. Inst libc6:amd64 (1.0 stable [amd64])
  49. Inst foobar:amd64 (1.0 stable [amd64])
  50. Conf libc6:amd64 (1.0 stable [amd64])
  51. Conf foobar:amd64 (1.0 stable [amd64])' aptget install foobar:amd64 -st stable
  52. # FIXME: libc6:i386 is installed, we are switching to libc6:all
  53. testequal 'Reading package lists...
  54. Building dependency tree...
  55. Reading state information...
  56. The following extra packages will be installed:
  57. libc6
  58. The following NEW packages will be installed:
  59. foobar libc6
  60. 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
  61. Inst libc6 (2.0 testing, testing [all])
  62. Inst foobar (1.0 stable [i386])
  63. Conf libc6 (2.0 testing, testing [all])
  64. Conf foobar (1.0 stable [i386])' aptget install foobar/stable libc6 -st testing
  65. # FIXME: libc6:i386 is installed, we are switching to libc6:all
  66. testequal 'Reading package lists...
  67. Building dependency tree...
  68. Reading state information...
  69. The following NEW packages will be installed:
  70. libc6
  71. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  72. Inst libc6 (2.0 testing, testing [all])
  73. Conf libc6 (2.0 testing, testing [all])' aptget upgrade -t testing -s
  74. aptget upgrade -y -qq 2>&1 > /dev/null
  75. testdpkginstalled libc6
  76. testequal 'Reading package lists...
  77. Building dependency tree...
  78. Reading state information...
  79. The following NEW packages will be installed:
  80. foobar
  81. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  82. Inst foobar (1.0 stable [i386]) []
  83. Conf foobar (1.0 stable [i386])' aptget install foobar/stable -st testing
  84. testequal 'Reading package lists...
  85. Building dependency tree...
  86. Reading state information...
  87. The following NEW packages will be installed:
  88. foobar:amd64
  89. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  90. Inst foobar:amd64 (1.0 stable [amd64])
  91. Conf foobar:amd64 (1.0 stable [amd64])' aptget install foobar:amd64/stable -st testing
  92. # FIXME: the display is a strange (its a downgrade), but the handling itself correct
  93. testequal "Reading package lists...
  94. Building dependency tree...
  95. Reading state information...
  96. Selected version '1.0' (stable [i386]) for 'libc6'
  97. The following packages will be REMOVED:
  98. libc6
  99. The following NEW packages will be installed:
  100. libc6
  101. 0 upgraded, 1 newly installed, 2 to remove and 0 not upgraded.
  102. Remv libc6 [2.0]
  103. Inst libc6 (1.0 stable [i386])
  104. Conf libc6 (1.0 stable [i386])" aptget install libc6/stable -s -q=0
  105. buildsimplenativepackage 'libc6-same' 'i386' '1.0' 'stable' 'Multi-Arch: same'
  106. buildsimplenativepackage 'libc6-same' 'amd64' '1.0' 'stable' 'Multi-Arch: same'
  107. buildsimplenativepackage 'libc6-same' 'all' '2.0' 'testing'
  108. buildsimplenativepackage 'foobar-same' 'i386' '1.0' 'stable' 'Depends: libc6-same'
  109. buildsimplenativepackage 'foobar-same' 'amd64' '1.0' 'stable' 'Depends: libc6-same'
  110. setupaptarchive
  111. aptget install libc6-same:i386 -t stable -y -qq 2>&1 > /dev/null
  112. testdpkginstalled libc6-same
  113. testequal 'Reading package lists...
  114. Building dependency tree...
  115. Reading state information...
  116. The following NEW packages will be installed:
  117. foobar-same
  118. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  119. Inst foobar-same (1.0 stable [i386])
  120. Conf foobar-same (1.0 stable [i386])' aptget install foobar-same -st stable
  121. testequal 'Reading package lists...
  122. Building dependency tree...
  123. Reading state information...
  124. The following extra packages will be installed:
  125. libc6-same:amd64
  126. The following NEW packages will be installed:
  127. foobar-same:amd64 libc6-same:amd64
  128. 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
  129. Inst libc6-same:amd64 (1.0 stable [amd64])
  130. Inst foobar-same:amd64 (1.0 stable [amd64])
  131. Conf libc6-same:amd64 (1.0 stable [amd64])
  132. Conf foobar-same:amd64 (1.0 stable [amd64])' aptget install foobar-same:amd64 -st stable
  133. testequal 'Reading package lists...
  134. Building dependency tree...
  135. Reading state information...
  136. The following NEW packages will be installed:
  137. libc6-same:amd64
  138. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  139. Inst libc6-same:amd64 (1.0 stable [amd64])
  140. Conf libc6-same:amd64 (1.0 stable [amd64])' aptget install libc6-same:amd64 -s -t stable
  141. # FIXME: We should test installing libc6-same:amd64 here, but dpkg doesn't allow it currently
  142. # FIXME: upgrade any to all as above
  143. testequal 'Reading package lists...
  144. Building dependency tree...
  145. Reading state information...
  146. The following NEW packages will be installed:
  147. libc6-same
  148. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  149. Inst libc6-same (2.0 testing, testing [all])
  150. Conf libc6-same (2.0 testing, testing [all])' aptget upgrade -t testing -s
  151. aptget upgrade -y -qq 2>&1 > /dev/null
  152. testdpkginstalled libc6-same
  153. # FIXME: the display is a strange (its a downgrade), but the handling itself correct
  154. testequal "Reading package lists...
  155. Building dependency tree...
  156. Reading state information...
  157. Selected version '1.0' (stable [i386]) for 'libc6-same'
  158. The following packages will be REMOVED:
  159. libc6-same
  160. The following NEW packages will be installed:
  161. libc6-same
  162. 0 upgraded, 1 newly installed, 2 to remove and 0 not upgraded.
  163. Remv libc6-same [2.0]
  164. Inst libc6-same (1.0 stable [i386])
  165. Conf libc6-same (1.0 stable [i386])" aptget install libc6-same/stable -s -q=0
  166. testequal 'Reading package lists...
  167. Building dependency tree...
  168. Reading state information...
  169. The following NEW packages will be installed:
  170. foobar-same
  171. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  172. Inst foobar-same (1.0 stable [i386]) []
  173. Conf foobar-same (1.0 stable [i386])' aptget install foobar-same/stable -st testing
  174. testequal 'Reading package lists...
  175. Building dependency tree...
  176. Reading state information...
  177. The following NEW packages will be installed:
  178. foobar-same:amd64
  179. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  180. Inst foobar-same:amd64 (1.0 stable [amd64])
  181. Conf foobar-same:amd64 (1.0 stable [amd64])' aptget install foobar-same:amd64/stable -st testing