test-apt-showlist-orgroup-in-recommends 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. #!/bin/sh
  2. set -e
  3. TESTDIR=$(readlink -f $(dirname $0))
  4. . $TESTDIR/framework
  5. setupenvironment
  6. configarchitecture 'i386'
  7. # simple case
  8. insertinstalledpackage 'aaa' 'all' '1'
  9. insertinstalledpackage 'ddd' 'all' '1'
  10. insertpackage 'unstable' 'aaa' 'all' '1'
  11. insertpackage 'unstable' 'ddd' 'all' '1'
  12. insertpackage 'unstable' 'yyy' 'all' '1'
  13. insertpackage 'unstable' 'zzz' 'all' '1:1'
  14. insertpackage 'unstable' 'simple' 'all' '1' 'Recommends: aaa, bbb
  15. Suggests: ccc, ddd'
  16. insertpackage 'unstable' 'orgroup' 'all' '1' 'Recommends: aaa | bbb
  17. Suggests: ccc | ddd'
  18. insertpackage 'unstable' 'orgroup2' 'all' '1' 'Recommends: xxx | yyy
  19. Suggests: yyy | zzz'
  20. insertpackage 'unstable' 'orgroup3' 'all' '1' 'Recommends: xxx | yyy
  21. Suggests: yyy | zzz'
  22. insertpackage 'unstable' 'orgroup4' 'all' '1' 'Recommends: xxx
  23. Suggests: zzz'
  24. insertpackage 'unstable' 'versionedor' 'all' '1' 'Recommends: aaa (>> 2) | bbb
  25. Suggests: ccc | ddd (>> 2)'
  26. setupaptarchive
  27. testsuccessequal 'Reading package lists...
  28. Building dependency tree...
  29. Suggested packages:
  30. ccc
  31. Recommended packages:
  32. bbb
  33. The following NEW packages will be installed:
  34. simple
  35. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  36. Inst simple (1 unstable [all])
  37. Conf simple (1 unstable [all])' aptget install simple -s --no-install-recommends
  38. testsuccessequal 'Reading package lists...
  39. Building dependency tree...
  40. Suggested packages:
  41. ccc
  42. Recommended packages:
  43. aaa bbb
  44. The following packages will be REMOVED:
  45. aaa
  46. The following NEW packages will be installed:
  47. simple
  48. 0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
  49. Remv aaa [1]
  50. Inst simple (1 unstable [all])
  51. Conf simple (1 unstable [all])' aptget install simple aaa- -s --no-install-recommends
  52. testsuccessequal 'Reading package lists...
  53. Building dependency tree...
  54. The following NEW packages will be installed:
  55. orgroup
  56. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  57. Inst orgroup (1 unstable [all])
  58. Conf orgroup (1 unstable [all])' aptget install orgroup -s --no-install-recommends
  59. testsuccessequal 'Reading package lists...
  60. Building dependency tree...
  61. Recommended packages:
  62. aaa | bbb
  63. The following packages will be REMOVED:
  64. aaa
  65. The following NEW packages will be installed:
  66. orgroup
  67. 0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
  68. Remv aaa [1]
  69. Inst orgroup (1 unstable [all])
  70. Conf orgroup (1 unstable [all])' aptget install orgroup aaa- -s --no-install-recommends
  71. testsuccessequal 'Reading package lists...
  72. Building dependency tree...
  73. Suggested packages:
  74. yyy | zzz
  75. Recommended packages:
  76. xxx | yyy
  77. The following NEW packages will be installed:
  78. orgroup2
  79. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  80. Inst orgroup2 (1 unstable [all])
  81. Conf orgroup2 (1 unstable [all])' aptget install orgroup2 -s --no-install-recommends
  82. testsuccessequal 'Reading package lists...
  83. Building dependency tree...
  84. Suggested packages:
  85. yyy | zzz
  86. Recommended packages:
  87. xxx | yyy
  88. The following NEW packages will be installed:
  89. orgroup2 orgroup3
  90. 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
  91. Inst orgroup2 (1 unstable [all])
  92. Inst orgroup3 (1 unstable [all])
  93. Conf orgroup2 (1 unstable [all])
  94. Conf orgroup3 (1 unstable [all])' aptget install orgroup2 orgroup3 -s --no-install-recommends
  95. testsuccessequal 'Reading package lists...
  96. Building dependency tree...
  97. Suggested packages:
  98. yyy | zzz zzz
  99. Recommended packages:
  100. xxx | yyy xxx
  101. The following NEW packages will be installed:
  102. orgroup2 orgroup4
  103. 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
  104. Inst orgroup2 (1 unstable [all])
  105. Inst orgroup4 (1 unstable [all])
  106. Conf orgroup2 (1 unstable [all])
  107. Conf orgroup4 (1 unstable [all])' aptget install orgroup2 orgroup4 -s --no-install-recommends
  108. testsuccessequal 'Reading package lists...
  109. Building dependency tree...
  110. Suggested packages:
  111. yyy (1)
  112. | zzz (1)
  113. zzz (1)
  114. Recommended packages:
  115. xxx
  116. | yyy (1)
  117. xxx
  118. The following NEW packages will be installed:
  119. orgroup2 (1)
  120. orgroup4 (1)
  121. 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
  122. Inst orgroup2 (1 unstable [all])
  123. Inst orgroup4 (1 unstable [all])
  124. Conf orgroup2 (1 unstable [all])
  125. Conf orgroup4 (1 unstable [all])' aptget install orgroup2 orgroup4 -s -V --no-install-recommends
  126. testsuccessequal 'Reading package lists...
  127. Building dependency tree...
  128. Suggested packages:
  129. zzz (1)
  130. Recommended packages:
  131. xxx
  132. The following NEW packages will be installed:
  133. orgroup2 (1)
  134. orgroup4 (1)
  135. yyy (1)
  136. 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
  137. Inst orgroup2 (1 unstable [all])
  138. Inst orgroup4 (1 unstable [all])
  139. Inst yyy (1 unstable [all])
  140. Conf orgroup2 (1 unstable [all])
  141. Conf orgroup4 (1 unstable [all])
  142. Conf yyy (1 unstable [all])' aptget install orgroup2 orgroup4 yyy -s -V --no-install-recommends
  143. testsuccessequal 'Reading package lists...
  144. Building dependency tree...
  145. Suggested packages:
  146. ccc | ddd
  147. Recommended packages:
  148. aaa | bbb
  149. The following NEW packages will be installed:
  150. versionedor
  151. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  152. Inst versionedor (1 unstable [all])
  153. Conf versionedor (1 unstable [all])' aptget install versionedor -s --no-install-recommends