You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

82 lines
2.5 KiB

  1. #!/bin/sh
  2. set -e
  3. TESTDIR="$(readlink -f "$(dirname "$0")")"
  4. . "$TESTDIR/framework"
  5. setupenvironment
  6. configarchitecture "i386"
  7. insertpackage 'unstable' 'apt' 'i386' '0.8.15' 'Depends: foo
  8. Recommends: bar
  9. Suggests: baz'
  10. insertpackage 'unstable' 'foo' 'i386' '1.0'
  11. insertpackage 'unstable' 'bar' 'i386' '1.0'
  12. insertpackage 'unstable' 'baz' 'i386' '1.0'
  13. setupaptarchive
  14. testsuccessequal 'Reading package lists...
  15. Building dependency tree...
  16. The following additional packages will be installed:
  17. bar foo
  18. Suggested packages:
  19. baz
  20. The following NEW packages will be installed:
  21. apt bar foo
  22. 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
  23. Inst foo (1.0 unstable [i386])
  24. Conf foo (1.0 unstable [i386])
  25. Inst apt (0.8.15 unstable [i386])
  26. Conf apt (0.8.15 unstable [i386])
  27. Inst bar (1.0 unstable [i386])
  28. Conf bar (1.0 unstable [i386])' aptget install apt -s --install-recommends --no-install-suggests
  29. testsuccessequal 'Reading package lists...
  30. Building dependency tree...
  31. The following additional packages will be installed:
  32. bar baz foo
  33. The following NEW packages will be installed:
  34. apt bar baz foo
  35. 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
  36. Inst foo (1.0 unstable [i386])
  37. Conf foo (1.0 unstable [i386])
  38. Inst apt (0.8.15 unstable [i386])
  39. Conf apt (0.8.15 unstable [i386])
  40. Inst bar (1.0 unstable [i386])
  41. Inst baz (1.0 unstable [i386])
  42. Conf bar (1.0 unstable [i386])
  43. Conf baz (1.0 unstable [i386])' aptget install apt -s --install-recommends --install-suggests
  44. testsuccessequal 'Reading package lists...
  45. Building dependency tree...
  46. The following additional packages will be installed:
  47. foo
  48. Suggested packages:
  49. baz
  50. Recommended packages:
  51. bar
  52. The following NEW packages will be installed:
  53. apt foo
  54. 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
  55. Inst foo (1.0 unstable [i386])
  56. Conf foo (1.0 unstable [i386])
  57. Inst apt (0.8.15 unstable [i386])
  58. Conf apt (0.8.15 unstable [i386])' aptget install apt -s --no-install-recommends --no-install-suggests
  59. testsuccessequal 'Reading package lists...
  60. Building dependency tree...
  61. The following additional packages will be installed:
  62. baz foo
  63. Recommended packages:
  64. bar
  65. The following NEW packages will be installed:
  66. apt baz foo
  67. 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
  68. Inst foo (1.0 unstable [i386])
  69. Conf foo (1.0 unstable [i386])
  70. Inst apt (0.8.15 unstable [i386])
  71. Conf apt (0.8.15 unstable [i386])
  72. Inst baz (1.0 unstable [i386])
  73. Conf baz (1.0 unstable [i386])' aptget install apt -s --no-install-recommends --install-suggests