test-bug-632221-cross-dependency-satisfaction 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. #!/bin/sh
  2. set -e
  3. TESTDIR=$(readlink -f $(dirname $0))
  4. . $TESTDIR/framework
  5. setupenvironment
  6. configarchitecture 'amd64' 'armel'
  7. insertinstalledpackage 'build-essential' 'all' '11.5' 'Multi-Arch: foreign'
  8. insertpackage 'unstable' 'doxygen' 'amd64,armel' '1.0' 'Multi-Arch: foreign'
  9. insertpackage 'unstable' 'libc6' 'amd64,armel' '1.0' 'Multi-Arch: same'
  10. insertpackage 'unstable' 'libc6-dev' 'amd64,armel' '1.0' 'Depends: libc6
  11. Multi-Arch: same'
  12. insertpackage 'unstable' 'libfwibble1' 'amd64,armel' '1.0' 'Depends: libc6
  13. Multi-Arch: same'
  14. insertpackage 'unstable' 'libfwibble-dev' 'amd64,armel' '1.0' 'Depends: libfwibble1'
  15. insertpackage 'unstable' 'cool' 'amd64,armel' '1.0' 'Multi-Arch: allowed'
  16. insertpackage 'unstable' 'amdboot' 'amd64' '1.0'
  17. insertpackage 'unstable' 'foreigner' 'amd64,armel' '1.0' 'Multi-Arch: foreign'
  18. insertpackage 'unstable' 'arm-stuff' 'armel' '1.0'
  19. insertpackage 'unstable' 'linux-stuff' 'amd64,armel' '1.0'
  20. insertsource 'unstable' 'apt' 'any' '0.8.15' 'Build-Depends: doxygen, libc6-dev, libc6-dev:native, cool:any, amdboot:amd64, foreigner, libfwibble-dev, arm-stuff [any-arm] | linux-stuff [ linux-any]'
  21. setupaptarchive
  22. testequal 'Reading package lists...
  23. Building dependency tree...
  24. The following NEW packages will be installed:
  25. amdboot cool doxygen foreigner libc6 libc6-dev libfwibble-dev libfwibble1
  26. linux-stuff
  27. 0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
  28. Inst amdboot (1.0 unstable [amd64])
  29. Inst cool (1.0 unstable [amd64])
  30. Inst doxygen (1.0 unstable [amd64])
  31. Inst foreigner (1.0 unstable [amd64])
  32. Inst libc6 (1.0 unstable [amd64])
  33. Inst libc6-dev (1.0 unstable [amd64])
  34. Inst libfwibble1 (1.0 unstable [amd64])
  35. Inst libfwibble-dev (1.0 unstable [amd64])
  36. Inst linux-stuff (1.0 unstable [amd64])
  37. Conf amdboot (1.0 unstable [amd64])
  38. Conf cool (1.0 unstable [amd64])
  39. Conf doxygen (1.0 unstable [amd64])
  40. Conf foreigner (1.0 unstable [amd64])
  41. Conf libc6 (1.0 unstable [amd64])
  42. Conf libc6-dev (1.0 unstable [amd64])
  43. Conf libfwibble1 (1.0 unstable [amd64])
  44. Conf libfwibble-dev (1.0 unstable [amd64])
  45. Conf linux-stuff (1.0 unstable [amd64])' aptget build-dep apt -s
  46. testequal 'Reading package lists...
  47. Building dependency tree...
  48. The following NEW packages will be installed:
  49. amdboot arm-stuff:armel cool doxygen foreigner libc6 libc6:armel libc6-dev
  50. libc6-dev:armel libfwibble-dev:armel libfwibble1:armel
  51. 0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
  52. Inst amdboot (1.0 unstable [amd64])
  53. Inst arm-stuff:armel (1.0 unstable [armel])
  54. Inst cool (1.0 unstable [amd64])
  55. Inst doxygen (1.0 unstable [amd64])
  56. Inst foreigner (1.0 unstable [amd64])
  57. Inst libc6 (1.0 unstable [amd64])
  58. Inst libc6:armel (1.0 unstable [armel])
  59. Inst libc6-dev (1.0 unstable [amd64])
  60. Inst libc6-dev:armel (1.0 unstable [armel])
  61. Inst libfwibble1:armel (1.0 unstable [armel])
  62. Inst libfwibble-dev:armel (1.0 unstable [armel])
  63. Conf amdboot (1.0 unstable [amd64])
  64. Conf arm-stuff:armel (1.0 unstable [armel])
  65. Conf cool (1.0 unstable [amd64])
  66. Conf doxygen (1.0 unstable [amd64])
  67. Conf foreigner (1.0 unstable [amd64])
  68. Conf libc6 (1.0 unstable [amd64])
  69. Conf libc6:armel (1.0 unstable [armel])
  70. Conf libc6-dev (1.0 unstable [amd64])
  71. Conf libc6-dev:armel (1.0 unstable [armel])
  72. Conf libfwibble1:armel (1.0 unstable [armel])
  73. Conf libfwibble-dev:armel (1.0 unstable [armel])' aptget build-dep apt -s -a armel
  74. configarchitecture 'armel' 'amd64'
  75. testequal 'Reading package lists...
  76. Building dependency tree...
  77. The following NEW packages will be installed:
  78. amdboot:amd64 arm-stuff cool doxygen foreigner libc6 libc6-dev
  79. libfwibble-dev libfwibble1
  80. 0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
  81. Inst amdboot:amd64 (1.0 unstable [amd64])
  82. Inst arm-stuff (1.0 unstable [armel])
  83. Inst cool (1.0 unstable [armel])
  84. Inst doxygen (1.0 unstable [armel])
  85. Inst foreigner (1.0 unstable [armel])
  86. Inst libc6 (1.0 unstable [armel])
  87. Inst libc6-dev (1.0 unstable [armel])
  88. Inst libfwibble1 (1.0 unstable [armel])
  89. Inst libfwibble-dev (1.0 unstable [armel])
  90. Conf amdboot:amd64 (1.0 unstable [amd64])
  91. Conf arm-stuff (1.0 unstable [armel])
  92. Conf cool (1.0 unstable [armel])
  93. Conf doxygen (1.0 unstable [armel])
  94. Conf foreigner (1.0 unstable [armel])
  95. Conf libc6 (1.0 unstable [armel])
  96. Conf libc6-dev (1.0 unstable [armel])
  97. Conf libfwibble1 (1.0 unstable [armel])
  98. Conf libfwibble-dev (1.0 unstable [armel])' aptget build-dep apt -s
  99. testequal 'Reading package lists...
  100. Building dependency tree...
  101. The following NEW packages will be installed:
  102. amdboot:amd64 cool doxygen foreigner libc6:amd64 libc6 libc6-dev:amd64
  103. libc6-dev libfwibble-dev:amd64 libfwibble1:amd64 linux-stuff:amd64
  104. 0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
  105. Inst amdboot:amd64 (1.0 unstable [amd64])
  106. Inst cool (1.0 unstable [armel])
  107. Inst doxygen (1.0 unstable [armel])
  108. Inst foreigner (1.0 unstable [armel])
  109. Inst libc6:amd64 (1.0 unstable [amd64])
  110. Inst libc6 (1.0 unstable [armel])
  111. Inst libc6-dev:amd64 (1.0 unstable [amd64])
  112. Inst libc6-dev (1.0 unstable [armel])
  113. Inst libfwibble1:amd64 (1.0 unstable [amd64])
  114. Inst libfwibble-dev:amd64 (1.0 unstable [amd64])
  115. Inst linux-stuff:amd64 (1.0 unstable [amd64])
  116. Conf amdboot:amd64 (1.0 unstable [amd64])
  117. Conf cool (1.0 unstable [armel])
  118. Conf doxygen (1.0 unstable [armel])
  119. Conf foreigner (1.0 unstable [armel])
  120. Conf libc6:amd64 (1.0 unstable [amd64])
  121. Conf libc6 (1.0 unstable [armel])
  122. Conf libc6-dev:amd64 (1.0 unstable [amd64])
  123. Conf libc6-dev (1.0 unstable [armel])
  124. Conf libfwibble1:amd64 (1.0 unstable [amd64])
  125. Conf libfwibble-dev:amd64 (1.0 unstable [amd64])
  126. Conf linux-stuff:amd64 (1.0 unstable [amd64])' aptget build-dep apt -s -a amd64
  127. configarchitecture 'amd64' 'armel'
  128. insertinstalledpackage 'cool' 'amd64' '0.5'
  129. insertinstalledpackage 'foreigner' 'armel' '0.5'
  130. testequal 'Reading package lists...
  131. Building dependency tree...
  132. The following NEW packages will be installed:
  133. amdboot doxygen libc6 libc6-dev libfwibble-dev libfwibble1 linux-stuff
  134. 0 upgraded, 7 newly installed, 0 to remove and 2 not upgraded.
  135. Inst amdboot (1.0 unstable [amd64])
  136. Inst doxygen (1.0 unstable [amd64])
  137. Inst libc6 (1.0 unstable [amd64])
  138. Inst libc6-dev (1.0 unstable [amd64])
  139. Inst libfwibble1 (1.0 unstable [amd64])
  140. Inst libfwibble-dev (1.0 unstable [amd64])
  141. Inst linux-stuff (1.0 unstable [amd64])
  142. Conf amdboot (1.0 unstable [amd64])
  143. Conf doxygen (1.0 unstable [amd64])
  144. Conf libc6 (1.0 unstable [amd64])
  145. Conf libc6-dev (1.0 unstable [amd64])
  146. Conf libfwibble1 (1.0 unstable [amd64])
  147. Conf libfwibble-dev (1.0 unstable [amd64])
  148. Conf linux-stuff (1.0 unstable [amd64])' aptget build-dep apt -s
  149. testequal 'Reading package lists...
  150. Building dependency tree...
  151. The following NEW packages will be installed:
  152. amdboot arm-stuff:armel doxygen libc6 libc6:armel libc6-dev libc6-dev:armel
  153. libfwibble-dev:armel libfwibble1:armel
  154. 0 upgraded, 9 newly installed, 0 to remove and 2 not upgraded.
  155. Inst amdboot (1.0 unstable [amd64])
  156. Inst arm-stuff:armel (1.0 unstable [armel])
  157. Inst doxygen (1.0 unstable [amd64])
  158. Inst libc6 (1.0 unstable [amd64])
  159. Inst libc6:armel (1.0 unstable [armel])
  160. Inst libc6-dev (1.0 unstable [amd64])
  161. Inst libc6-dev:armel (1.0 unstable [armel])
  162. Inst libfwibble1:armel (1.0 unstable [armel])
  163. Inst libfwibble-dev:armel (1.0 unstable [armel])
  164. Conf amdboot (1.0 unstable [amd64])
  165. Conf arm-stuff:armel (1.0 unstable [armel])
  166. Conf doxygen (1.0 unstable [amd64])
  167. Conf libc6 (1.0 unstable [amd64])
  168. Conf libc6:armel (1.0 unstable [armel])
  169. Conf libc6-dev (1.0 unstable [amd64])
  170. Conf libc6-dev:armel (1.0 unstable [armel])
  171. Conf libfwibble1:armel (1.0 unstable [armel])
  172. Conf libfwibble-dev:armel (1.0 unstable [armel])' aptget build-dep apt -s -a armel
  173. configarchitecture 'armel' 'amd64'
  174. # cool 0.5 is not M-A: allowed, so amd64 is not acceptable
  175. testequal 'Reading package lists...
  176. Building dependency tree...
  177. The following packages will be REMOVED:
  178. cool:amd64
  179. The following NEW packages will be installed:
  180. amdboot:amd64 arm-stuff cool doxygen libc6 libc6-dev libfwibble-dev
  181. libfwibble1
  182. 0 upgraded, 8 newly installed, 1 to remove and 1 not upgraded.
  183. Remv cool:amd64 [0.5]
  184. Inst amdboot:amd64 (1.0 unstable [amd64])
  185. Inst arm-stuff (1.0 unstable [armel])
  186. Inst cool (1.0 unstable [armel])
  187. Inst doxygen (1.0 unstable [armel])
  188. Inst libc6 (1.0 unstable [armel])
  189. Inst libc6-dev (1.0 unstable [armel])
  190. Inst libfwibble1 (1.0 unstable [armel])
  191. Inst libfwibble-dev (1.0 unstable [armel])
  192. Conf amdboot:amd64 (1.0 unstable [amd64])
  193. Conf arm-stuff (1.0 unstable [armel])
  194. Conf cool (1.0 unstable [armel])
  195. Conf doxygen (1.0 unstable [armel])
  196. Conf libc6 (1.0 unstable [armel])
  197. Conf libc6-dev (1.0 unstable [armel])
  198. Conf libfwibble1 (1.0 unstable [armel])
  199. Conf libfwibble-dev (1.0 unstable [armel])' aptget build-dep apt -s
  200. testequal 'Reading package lists...
  201. Building dependency tree...
  202. The following NEW packages will be installed:
  203. amdboot:amd64 doxygen libc6:amd64 libc6 libc6-dev:amd64 libc6-dev
  204. libfwibble-dev:amd64 libfwibble1:amd64 linux-stuff:amd64
  205. 0 upgraded, 9 newly installed, 0 to remove and 2 not upgraded.
  206. Inst amdboot:amd64 (1.0 unstable [amd64])
  207. Inst doxygen (1.0 unstable [armel])
  208. Inst libc6:amd64 (1.0 unstable [amd64])
  209. Inst libc6 (1.0 unstable [armel])
  210. Inst libc6-dev:amd64 (1.0 unstable [amd64])
  211. Inst libc6-dev (1.0 unstable [armel])
  212. Inst libfwibble1:amd64 (1.0 unstable [amd64])
  213. Inst libfwibble-dev:amd64 (1.0 unstable [amd64])
  214. Inst linux-stuff:amd64 (1.0 unstable [amd64])
  215. Conf amdboot:amd64 (1.0 unstable [amd64])
  216. Conf doxygen (1.0 unstable [armel])
  217. Conf libc6:amd64 (1.0 unstable [amd64])
  218. Conf libc6 (1.0 unstable [armel])
  219. Conf libc6-dev:amd64 (1.0 unstable [amd64])
  220. Conf libc6-dev (1.0 unstable [armel])
  221. Conf libfwibble1:amd64 (1.0 unstable [amd64])
  222. Conf libfwibble-dev:amd64 (1.0 unstable [amd64])
  223. Conf linux-stuff:amd64 (1.0 unstable [amd64])' aptget build-dep apt -s -a amd64