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.
 
 
 
 
 
 

150 lines
5.9 KiB

  1. #!/bin/sh
  2. set -e
  3. TESTDIR="$(readlink -f "$(dirname "$0")")"
  4. . "$TESTDIR/framework"
  5. setupenvironment
  6. configarchitecture 'i386'
  7. insertpackage 'stable' 'build-essential' 'i386' '1'
  8. insertpackage 'stable' 'build-essential2' 'i386' '1'
  9. insertpackage 'stable' 'build-depends' 'i386' '1'
  10. insertpackage 'stable' 'build-depends-arch' 'i386' '1'
  11. insertpackage 'stable' 'build-depends-indep' 'i386' '1'
  12. insertinstalledpackage 'build-conflicts' 'i386' '1'
  13. insertinstalledpackage 'build-conflicts-arch' 'i386' '1'
  14. insertinstalledpackage 'build-conflicts-indep' 'i386' '1'
  15. setupaptarchive
  16. cat > foobar.dsc <<EOF
  17. Format: 3.0 (native)
  18. Source: foobar
  19. Binary: foobar
  20. Architecture: all
  21. Version: 1
  22. Maintainer: Joe Sixpack <joe@example.org>
  23. Build-Depends: build-depends (>= 1)
  24. Build-Depends-Indep: build-depends-indep (>= 1)
  25. Build-Depends-Arch: build-depends-arch (>= 1)
  26. Build-Conflicts: build-conflicts (>= 1)
  27. Build-Conflicts-Indep: build-conflicts-indep (>= 1)
  28. Build-Conflicts-Arch: build-conflicts-arch (>= 1)
  29. Standards-Version: 3.9.8
  30. EOF
  31. testsuccessequal "Note, using file './foobar.dsc' to get the build dependencies
  32. Reading package lists...
  33. Building dependency tree...
  34. The following packages will be REMOVED:
  35. build-conflicts build-conflicts-arch build-conflicts-indep
  36. The following NEW packages will be installed:
  37. build-depends build-depends-arch build-depends-indep build-essential
  38. 0 upgraded, 4 newly installed, 3 to remove and 0 not upgraded.
  39. Remv build-conflicts [1]
  40. Remv build-conflicts-arch [1]
  41. Remv build-conflicts-indep [1]
  42. Inst build-depends (1 stable [i386])
  43. Inst build-depends-arch (1 stable [i386])
  44. Inst build-depends-indep (1 stable [i386])
  45. Inst build-essential (1 stable [i386])
  46. Conf build-depends (1 stable [i386])
  47. Conf build-depends-arch (1 stable [i386])
  48. Conf build-depends-indep (1 stable [i386])
  49. Conf build-essential (1 stable [i386])" aptget build-dep --simulate ./foobar.dsc
  50. testsuccessequal "Note, using file './foobar.dsc' to get the build dependencies
  51. Reading package lists...
  52. Building dependency tree...
  53. The following packages will be REMOVED:
  54. build-conflicts build-conflicts-arch build-conflicts-indep
  55. The following NEW packages will be installed:
  56. build-depends build-depends-arch build-depends-indep build-essential2
  57. 0 upgraded, 4 newly installed, 3 to remove and 0 not upgraded.
  58. Remv build-conflicts [1]
  59. Remv build-conflicts-arch [1]
  60. Remv build-conflicts-indep [1]
  61. Inst build-depends (1 stable [i386])
  62. Inst build-depends-arch (1 stable [i386])
  63. Inst build-depends-indep (1 stable [i386])
  64. Inst build-essential2 (1 stable [i386])
  65. Conf build-depends (1 stable [i386])
  66. Conf build-depends-arch (1 stable [i386])
  67. Conf build-depends-indep (1 stable [i386])
  68. Conf build-essential2 (1 stable [i386])" aptget build-dep --simulate ./foobar.dsc -o APT::Build-Essential="build-essential2"
  69. testsuccessequal "Note, using file './foobar.dsc' to get the build dependencies
  70. Reading package lists...
  71. Building dependency tree...
  72. The following packages will be REMOVED:
  73. build-conflicts build-conflicts-arch build-conflicts-indep
  74. The following NEW packages will be installed:
  75. build-depends build-depends-arch build-depends-indep
  76. 0 upgraded, 3 newly installed, 3 to remove and 0 not upgraded.
  77. Remv build-conflicts [1]
  78. Remv build-conflicts-arch [1]
  79. Remv build-conflicts-indep [1]
  80. Inst build-depends (1 stable [i386])
  81. Inst build-depends-arch (1 stable [i386])
  82. Inst build-depends-indep (1 stable [i386])
  83. Conf build-depends (1 stable [i386])
  84. Conf build-depends-arch (1 stable [i386])
  85. Conf build-depends-indep (1 stable [i386])" aptget build-dep --simulate ./foobar.dsc -o APT::Build-Essential=","
  86. testsuccessequal "Note, using file './foobar.dsc' to get the build dependencies
  87. Reading package lists...
  88. Building dependency tree...
  89. The following packages will be REMOVED:
  90. build-conflicts build-conflicts-arch build-conflicts-indep
  91. The following NEW packages will be installed:
  92. build-depends build-depends-arch build-depends-indep build-essential
  93. build-essential2
  94. 0 upgraded, 5 newly installed, 3 to remove and 0 not upgraded.
  95. Remv build-conflicts [1]
  96. Remv build-conflicts-arch [1]
  97. Remv build-conflicts-indep [1]
  98. Inst build-depends (1 stable [i386])
  99. Inst build-depends-arch (1 stable [i386])
  100. Inst build-depends-indep (1 stable [i386])
  101. Inst build-essential (1 stable [i386])
  102. Inst build-essential2 (1 stable [i386])
  103. Conf build-depends (1 stable [i386])
  104. Conf build-depends-arch (1 stable [i386])
  105. Conf build-depends-indep (1 stable [i386])
  106. Conf build-essential (1 stable [i386])
  107. Conf build-essential2 (1 stable [i386])" aptget build-dep --simulate ./foobar.dsc -o APT::Build-Essential::="build-essential2"
  108. testsuccessequal "Note, using file './foobar.dsc' to get the build dependencies
  109. Reading package lists...
  110. Building dependency tree...
  111. The following packages will be REMOVED:
  112. build-conflicts build-conflicts-arch
  113. The following NEW packages will be installed:
  114. build-depends build-depends-arch build-essential
  115. 0 upgraded, 3 newly installed, 2 to remove and 0 not upgraded.
  116. Remv build-conflicts [1]
  117. Remv build-conflicts-arch [1]
  118. Inst build-depends (1 stable [i386])
  119. Inst build-depends-arch (1 stable [i386])
  120. Inst build-essential (1 stable [i386])
  121. Conf build-depends (1 stable [i386])
  122. Conf build-depends-arch (1 stable [i386])
  123. Conf build-essential (1 stable [i386])" aptget build-dep --simulate ./foobar.dsc --arch-only
  124. testsuccessequal "Note, using file './foobar.dsc' to get the build dependencies
  125. Reading package lists...
  126. Building dependency tree...
  127. The following packages will be REMOVED:
  128. build-conflicts build-conflicts-indep
  129. The following NEW packages will be installed:
  130. build-depends build-depends-indep build-essential
  131. 0 upgraded, 3 newly installed, 2 to remove and 0 not upgraded.
  132. Remv build-conflicts [1]
  133. Remv build-conflicts-indep [1]
  134. Inst build-depends (1 stable [i386])
  135. Inst build-depends-indep (1 stable [i386])
  136. Inst build-essential (1 stable [i386])
  137. Conf build-depends (1 stable [i386])
  138. Conf build-depends-indep (1 stable [i386])
  139. Conf build-essential (1 stable [i386])" aptget build-dep --simulate ./foobar.dsc --indep-only