test-bug-683786-build-dep-on-virtual-packages 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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' 'po-debconf' 'all' '1'
  9. insertsource 'unstable' 'dash' 'any' '1' 'Build-Depends: po-debconf'
  10. insertpackage 'unstable' 'make-po-debconf-pure-virtual' 'armel' '1' 'Depends: po-debconf'
  11. insertsource 'unstable' 'diffutils' 'any' '1' 'Build-Depends: texi2html'
  12. insertpackage 'unstable' 'libselinux1-dev' 'amd64' '1' 'Provides: libselinux-dev'
  13. insertsource 'unstable' 'sed' 'any' '1' 'Build-Depends: libselinux-dev'
  14. insertpackage 'unstable' 'libsehurd1-dev' 'amd64,armel' '1' 'Provides: libsehurd-dev'
  15. insertsource 'unstable' 'sed2' 'any' '1' 'Build-Depends: libsehurd-dev'
  16. setupaptarchive
  17. testsuccessequal 'Package: po-debconf:armel
  18. Versions:
  19. Reverse Depends:
  20. make-po-debconf-pure-virtual:armel,po-debconf:armel
  21. Dependencies:
  22. Provides:
  23. Reverse Provides: ' aptcache showpkg po-debconf:armel
  24. testsuccessequal 'N: Unable to locate package texi2html:armel' aptcache showpkg texi2html:armel -q=0
  25. testsuccessequal 'Reading package lists...
  26. Building dependency tree...
  27. The following NEW packages will be installed:
  28. po-debconf
  29. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  30. Inst po-debconf (1 unstable [all])
  31. Conf po-debconf (1 unstable [all])' aptget build-dep dash -s
  32. testfailureequal 'Reading package lists...
  33. Building dependency tree...
  34. E: Build-Depends dependency for dash cannot be satisfied because the package po-debconf cannot be found' aptget build-dep -aarmel dash -s
  35. testfailureequal 'Reading package lists...
  36. Building dependency tree...
  37. E: Build-Depends dependency for diffutils cannot be satisfied because the package texi2html cannot be found' aptget build-dep -aarmel diffutils -s
  38. testsuccessequal "Reading package lists...
  39. Building dependency tree...
  40. Note, selecting 'libselinux1-dev' instead of 'libselinux-dev'
  41. The following NEW packages will be installed:
  42. libselinux1-dev
  43. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  44. Inst libselinux1-dev (1 unstable [amd64])
  45. Conf libselinux1-dev (1 unstable [amd64])" aptget build-dep sed -s
  46. testfailureequal 'Reading package lists...
  47. Building dependency tree...
  48. E: Build-Depends dependency for sed cannot be satisfied because the package libselinux-dev cannot be found' aptget build-dep -aarmel sed -s
  49. testsuccessequal "Reading package lists...
  50. Building dependency tree...
  51. Note, selecting 'libsehurd1-dev' instead of 'libsehurd-dev'
  52. The following NEW packages will be installed:
  53. libsehurd1-dev
  54. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  55. Inst libsehurd1-dev (1 unstable [amd64])
  56. Conf libsehurd1-dev (1 unstable [amd64])" aptget build-dep sed2 -s
  57. testsuccessequal "Reading package lists...
  58. Building dependency tree...
  59. Note, selecting 'libsehurd1-dev:armel' instead of 'libsehurd-dev:armel'
  60. The following NEW packages will be installed:
  61. libsehurd1-dev:armel
  62. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  63. Inst libsehurd1-dev:armel (1 unstable [armel])
  64. Conf libsehurd1-dev:armel (1 unstable [armel])" aptget build-dep -aarmel sed2 -s