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
3.2 KiB

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