test-bug-612099-multiarch-conflicts 7.2 KB

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