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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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'
  8. insertpackage 'unstable' 'doxygen' 'amd64,armel' '1.0'
  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' 'cool' 'amd64,armel' '1.0' 'Multi-Arch: allowed'
  13. insertpackage 'unstable' 'amdboot' 'amd64' '1.0'
  14. insertpackage 'unstable' 'foreigner' 'amd64,armel' '1.0' 'Multi-Arch: foreign'
  15. insertsource 'unstable' 'apt' 'any' '0.8.15' 'Build-Depends: doxygen, libc6-dev, libc6-dev:native, cool:any, amdboot:amd64, foreigner'
  16. setupaptarchive
  17. testequal 'Reading package lists...
  18. Building dependency tree...
  19. The following NEW packages will be installed:
  20. amdboot cool doxygen foreigner libc6 libc6-dev
  21. 0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
  22. Inst amdboot (1.0 unstable [amd64])
  23. Inst cool (1.0 unstable [amd64])
  24. Inst doxygen (1.0 unstable [amd64])
  25. Inst foreigner (1.0 unstable [amd64])
  26. Inst libc6 (1.0 unstable [amd64])
  27. Inst libc6-dev (1.0 unstable [amd64])
  28. Conf amdboot (1.0 unstable [amd64])
  29. Conf cool (1.0 unstable [amd64])
  30. Conf doxygen (1.0 unstable [amd64])
  31. Conf foreigner (1.0 unstable [amd64])
  32. Conf libc6 (1.0 unstable [amd64])
  33. Conf libc6-dev (1.0 unstable [amd64])' aptget build-dep apt -s
  34. testequal 'Reading package lists...
  35. Building dependency tree...
  36. The following NEW packages will be installed:
  37. amdboot cool doxygen foreigner libc6 libc6:armel libc6-dev libc6-dev:armel
  38. 0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
  39. Inst amdboot (1.0 unstable [amd64])
  40. Inst cool (1.0 unstable [amd64])
  41. Inst doxygen (1.0 unstable [amd64])
  42. Inst foreigner (1.0 unstable [amd64])
  43. Inst libc6 (1.0 unstable [amd64])
  44. Inst libc6:armel (1.0 unstable [armel])
  45. Inst libc6-dev (1.0 unstable [amd64])
  46. Inst libc6-dev:armel (1.0 unstable [armel])
  47. Conf amdboot (1.0 unstable [amd64])
  48. Conf cool (1.0 unstable [amd64])
  49. Conf doxygen (1.0 unstable [amd64])
  50. Conf foreigner (1.0 unstable [amd64])
  51. Conf libc6 (1.0 unstable [amd64])
  52. Conf libc6:armel (1.0 unstable [armel])
  53. Conf libc6-dev (1.0 unstable [amd64])
  54. Conf libc6-dev:armel (1.0 unstable [armel])' aptget build-dep apt -s -a armel
  55. configarchitecture 'armel' 'amd64'
  56. testequal 'Reading package lists...
  57. Building dependency tree...
  58. The following NEW packages will be installed:
  59. amdboot:amd64 cool doxygen foreigner libc6 libc6-dev
  60. 0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
  61. Inst amdboot:amd64 (1.0 unstable [amd64])
  62. Inst cool (1.0 unstable [armel])
  63. Inst doxygen (1.0 unstable [armel])
  64. Inst foreigner (1.0 unstable [armel])
  65. Inst libc6 (1.0 unstable [armel])
  66. Inst libc6-dev (1.0 unstable [armel])
  67. Conf amdboot:amd64 (1.0 unstable [amd64])
  68. Conf cool (1.0 unstable [armel])
  69. Conf doxygen (1.0 unstable [armel])
  70. Conf foreigner (1.0 unstable [armel])
  71. Conf libc6 (1.0 unstable [armel])
  72. Conf libc6-dev (1.0 unstable [armel])' aptget build-dep apt -s
  73. testequal 'Reading package lists...
  74. Building dependency tree...
  75. The following NEW packages will be installed:
  76. amdboot:amd64 cool doxygen foreigner libc6:amd64 libc6 libc6-dev:amd64
  77. libc6-dev
  78. 0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
  79. Inst amdboot:amd64 (1.0 unstable [amd64])
  80. Inst cool (1.0 unstable [armel])
  81. Inst doxygen (1.0 unstable [armel])
  82. Inst foreigner (1.0 unstable [armel])
  83. Inst libc6:amd64 (1.0 unstable [amd64])
  84. Inst libc6 (1.0 unstable [armel])
  85. Inst libc6-dev:amd64 (1.0 unstable [amd64])
  86. Inst libc6-dev (1.0 unstable [armel])
  87. Conf amdboot:amd64 (1.0 unstable [amd64])
  88. Conf cool (1.0 unstable [armel])
  89. Conf doxygen (1.0 unstable [armel])
  90. Conf foreigner (1.0 unstable [armel])
  91. Conf libc6:amd64 (1.0 unstable [amd64])
  92. Conf libc6 (1.0 unstable [armel])
  93. Conf libc6-dev:amd64 (1.0 unstable [amd64])
  94. Conf libc6-dev (1.0 unstable [armel])' aptget build-dep apt -s -a amd64
  95. configarchitecture 'amd64' 'armel'
  96. insertinstalledpackage 'cool' 'amd64' '0.5'
  97. insertinstalledpackage 'foreigner' 'armel' '0.5'
  98. testequal 'Reading package lists...
  99. Building dependency tree...
  100. The following NEW packages will be installed:
  101. amdboot doxygen libc6 libc6-dev
  102. 0 upgraded, 4 newly installed, 0 to remove and 2 not upgraded.
  103. Inst amdboot (1.0 unstable [amd64])
  104. Inst doxygen (1.0 unstable [amd64])
  105. Inst libc6 (1.0 unstable [amd64])
  106. Inst libc6-dev (1.0 unstable [amd64])
  107. Conf amdboot (1.0 unstable [amd64])
  108. Conf doxygen (1.0 unstable [amd64])
  109. Conf libc6 (1.0 unstable [amd64])
  110. Conf libc6-dev (1.0 unstable [amd64])' aptget build-dep apt -s
  111. testequal 'Reading package lists...
  112. Building dependency tree...
  113. The following NEW packages will be installed:
  114. amdboot doxygen libc6 libc6:armel libc6-dev libc6-dev:armel
  115. 0 upgraded, 6 newly installed, 0 to remove and 2 not upgraded.
  116. Inst amdboot (1.0 unstable [amd64])
  117. Inst doxygen (1.0 unstable [amd64])
  118. Inst libc6 (1.0 unstable [amd64])
  119. Inst libc6:armel (1.0 unstable [armel])
  120. Inst libc6-dev (1.0 unstable [amd64])
  121. Inst libc6-dev:armel (1.0 unstable [armel])
  122. Conf amdboot (1.0 unstable [amd64])
  123. Conf doxygen (1.0 unstable [amd64])
  124. Conf libc6 (1.0 unstable [amd64])
  125. Conf libc6:armel (1.0 unstable [armel])
  126. Conf libc6-dev (1.0 unstable [amd64])
  127. Conf libc6-dev:armel (1.0 unstable [armel])' aptget build-dep apt -s -a armel
  128. configarchitecture 'armel' 'amd64'
  129. # cool 0.5 is not M-A: allowed, so amd64 is not acceptable
  130. testequal 'Reading package lists...
  131. Building dependency tree...
  132. The following packages will be REMOVED:
  133. cool:amd64
  134. The following NEW packages will be installed:
  135. amdboot:amd64 cool doxygen libc6 libc6-dev
  136. 0 upgraded, 5 newly installed, 1 to remove and 1 not upgraded.
  137. Remv cool:amd64 [0.5]
  138. Inst amdboot:amd64 (1.0 unstable [amd64])
  139. Inst cool (1.0 unstable [armel])
  140. Inst doxygen (1.0 unstable [armel])
  141. Inst libc6 (1.0 unstable [armel])
  142. Inst libc6-dev (1.0 unstable [armel])
  143. Conf amdboot:amd64 (1.0 unstable [amd64])
  144. Conf cool (1.0 unstable [armel])
  145. Conf doxygen (1.0 unstable [armel])
  146. Conf libc6 (1.0 unstable [armel])
  147. Conf libc6-dev (1.0 unstable [armel])' aptget build-dep apt -s
  148. testequal 'Reading package lists...
  149. Building dependency tree...
  150. The following NEW packages will be installed:
  151. amdboot:amd64 doxygen libc6:amd64 libc6 libc6-dev:amd64 libc6-dev
  152. 0 upgraded, 6 newly installed, 0 to remove and 2 not upgraded.
  153. Inst amdboot:amd64 (1.0 unstable [amd64])
  154. Inst doxygen (1.0 unstable [armel])
  155. Inst libc6:amd64 (1.0 unstable [amd64])
  156. Inst libc6 (1.0 unstable [armel])
  157. Inst libc6-dev:amd64 (1.0 unstable [amd64])
  158. Inst libc6-dev (1.0 unstable [armel])
  159. Conf amdboot:amd64 (1.0 unstable [amd64])
  160. Conf doxygen (1.0 unstable [armel])
  161. Conf libc6:amd64 (1.0 unstable [amd64])
  162. Conf libc6 (1.0 unstable [armel])
  163. Conf libc6-dev:amd64 (1.0 unstable [amd64])
  164. Conf libc6-dev (1.0 unstable [armel])' aptget build-dep apt -s -a amd64