test-architecture-specification-parsing 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. #!/bin/sh
  2. set -e
  3. TESTDIR=$(readlink -f $(dirname $0))
  4. . $TESTDIR/framework
  5. setupenvironment
  6. configarchitecture 'amd64'
  7. buildsimplenativepackage 'pkg-arch-foo' 'amd64' '1.0' 'stable' 'Build-Depends: foo [amd64 !amd64]
  8. Depends: foo [amd64 !amd64]'
  9. buildsimplenativepackage 'pkg-arch-no-foo' 'amd64' '1.0' 'stable' 'Build-Depends: foo [!amd64 amd64]
  10. Depends: foo [!amd64 amd64]'
  11. buildsimplenativepackage 'pkg-arch-foo-unrelated-no' 'amd64' '1.0' 'stable' 'Build-Depends: foo [!kfreebsd-any amd64]
  12. Depends: foo [!kfreebsd-any amd64]'
  13. buildsimplenativepackage 'pkg-arch-foo-unrelated-no2' 'amd64' '1.0' 'stable' 'Build-Depends: foo [amd64 !kfreebsd-any]
  14. Depends: foo [amd64 !kfreebsd-any]'
  15. buildsimplenativepackage 'foo' 'amd64' '1.0' 'stable'
  16. insertinstalledpackage 'build-essential' 'all' '11.5' 'Multi-Arch: foreign'
  17. setupaptarchive
  18. testequal 'Reading package lists...
  19. Building dependency tree...
  20. The following extra packages will be installed:
  21. foo
  22. The following NEW packages will be installed:
  23. foo pkg-arch-foo
  24. 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
  25. Inst foo (1.0 stable [amd64])
  26. Inst pkg-arch-foo (1.0 stable [amd64])
  27. Conf foo (1.0 stable [amd64])
  28. Conf pkg-arch-foo (1.0 stable [amd64])' aptget install pkg-arch-foo -s
  29. testequal 'Reading package lists...
  30. Building dependency tree...
  31. The following NEW packages will be installed:
  32. pkg-arch-no-foo
  33. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  34. Inst pkg-arch-no-foo (1.0 stable [amd64])
  35. Conf pkg-arch-no-foo (1.0 stable [amd64])' aptget install pkg-arch-no-foo -s
  36. testequal 'Reading package lists...
  37. Building dependency tree...
  38. The following extra packages will be installed:
  39. foo
  40. The following NEW packages will be installed:
  41. foo pkg-arch-foo-unrelated-no
  42. 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
  43. Inst foo (1.0 stable [amd64])
  44. Inst pkg-arch-foo-unrelated-no (1.0 stable [amd64])
  45. Conf foo (1.0 stable [amd64])
  46. Conf pkg-arch-foo-unrelated-no (1.0 stable [amd64])' aptget install pkg-arch-foo-unrelated-no -s
  47. testequal 'Reading package lists...
  48. Building dependency tree...
  49. The following extra packages will be installed:
  50. foo
  51. The following NEW packages will be installed:
  52. foo pkg-arch-foo-unrelated-no2
  53. 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
  54. Inst foo (1.0 stable [amd64])
  55. Inst pkg-arch-foo-unrelated-no2 (1.0 stable [amd64])
  56. Conf foo (1.0 stable [amd64])
  57. Conf pkg-arch-foo-unrelated-no2 (1.0 stable [amd64])' aptget install pkg-arch-foo-unrelated-no2 -s
  58. testequal 'Reading package lists...
  59. Building dependency tree...
  60. The following NEW packages will be installed:
  61. foo
  62. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  63. Inst foo (1.0 stable [amd64])
  64. Conf foo (1.0 stable [amd64])' aptget build-dep pkg-arch-foo -s
  65. testequal 'Reading package lists...
  66. Building dependency tree...
  67. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.' aptget build-dep pkg-arch-no-foo -s
  68. testequal 'Reading package lists...
  69. Building dependency tree...
  70. The following NEW packages will be installed:
  71. foo
  72. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  73. Inst foo (1.0 stable [amd64])
  74. Conf foo (1.0 stable [amd64])' aptget build-dep pkg-arch-foo-unrelated-no -s
  75. testequal 'Reading package lists...
  76. Building dependency tree...
  77. The following NEW packages will be installed:
  78. foo
  79. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  80. Inst foo (1.0 stable [amd64])
  81. Conf foo (1.0 stable [amd64])' aptget build-dep pkg-arch-foo-unrelated-no2 -s