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.
 
 
 
 
 
 

124 lines
4.8 KiB

  1. #!/bin/sh
  2. set -e
  3. TESTDIR="$(readlink -f "$(dirname "$0")")"
  4. . "$TESTDIR/framework"
  5. setupenvironment
  6. configarchitecture 'amd64' 'armel'
  7. #insertinstalledpackage 'xserver-xorg-core' 'amd64' '2:1.7.6-2ubuntu7.10'
  8. insertpackage 'unstable' 'libsame' 'armel,amd64' '1' 'Multi-Arch: same'
  9. insertpackage 'unstable' 'foo' 'all' '1'
  10. setupaptarchive
  11. testsuccessequal 'Reading package lists...
  12. Building dependency tree...
  13. The following NEW packages will be installed:
  14. libsame
  15. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  16. Inst libsame (1 unstable [amd64])
  17. Conf libsame (1 unstable [amd64])' aptget -s install libsame
  18. testsuccessequal 'Reading package lists...
  19. Building dependency tree...
  20. The following NEW packages will be installed:
  21. libsame:armel
  22. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  23. Inst libsame:armel (1 unstable [armel])
  24. Conf libsame:armel (1 unstable [armel])' aptget -s install libsame:armel
  25. testfailureequal 'Reading package lists...
  26. Building dependency tree...
  27. E: Unable to locate package libsame:armhf' aptget -s install libsame:armhf
  28. testsuccessequal 'Reading package lists...
  29. Building dependency tree...
  30. The following NEW packages will be installed:
  31. libsame
  32. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  33. Inst libsame (1 unstable [amd64])
  34. Conf libsame (1 unstable [amd64])' aptget -s install libsame:amd64
  35. testsuccessequal 'Reading package lists...
  36. Building dependency tree...
  37. The following NEW packages will be installed:
  38. libsame libsame:armel
  39. 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
  40. Inst libsame (1 unstable [amd64])
  41. Inst libsame:armel (1 unstable [armel])
  42. Conf libsame (1 unstable [amd64])
  43. Conf libsame:armel (1 unstable [armel])' aptget -s install libsame:armel libsame:amd64
  44. testsuccessequal 'Reading package lists...
  45. Building dependency tree...
  46. The following NEW packages will be installed:
  47. libsame libsame:armel
  48. 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
  49. Inst libsame (1 unstable [amd64])
  50. Inst libsame:armel (1 unstable [armel])
  51. Conf libsame (1 unstable [amd64])
  52. Conf libsame:armel (1 unstable [armel])' aptget -s install libsame:*
  53. testsuccessequal 'Reading package lists...
  54. Building dependency tree...
  55. The following NEW packages will be installed:
  56. libsame
  57. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  58. Inst libsame (1 unstable [amd64])
  59. Conf libsame (1 unstable [amd64])' aptget -s install libsame:any
  60. testsuccessequal 'Reading package lists...
  61. Building dependency tree...
  62. The following NEW packages will be installed:
  63. libsame libsame:armel
  64. 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
  65. Inst libsame (1 unstable [amd64])
  66. Inst libsame:armel (1 unstable [armel])
  67. Conf libsame (1 unstable [amd64])
  68. Conf libsame:armel (1 unstable [armel])' aptget -s install libsame:a*
  69. testsuccessequal 'Reading package lists...
  70. Building dependency tree...
  71. The following NEW packages will be installed:
  72. libsame
  73. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  74. Inst libsame (1 unstable [amd64])
  75. Conf libsame (1 unstable [amd64])' aptget -s install libsame:linux-any
  76. testsuccessequal 'Reading package lists...
  77. Building dependency tree...
  78. The following NEW packages will be installed:
  79. libsame libsame:armel
  80. 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
  81. Inst libsame (1 unstable [amd64])
  82. Inst libsame:armel (1 unstable [armel])
  83. Conf libsame (1 unstable [amd64])
  84. Conf libsame:armel (1 unstable [armel])' aptget -s install libsame:linux-*
  85. testfailureequal 'Reading package lists...
  86. Building dependency tree...
  87. E: Unable to locate package libsame:windows-any' aptget -s install libsame:windows-any
  88. testfailureequal 'Reading package lists...
  89. Building dependency tree...
  90. E: Unable to locate package foo:armel' aptget -s install foo:armel
  91. testsuccessequal 'Reading package lists...
  92. Building dependency tree...
  93. The following NEW packages will be installed:
  94. foo
  95. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  96. Inst foo (1 unstable [all])
  97. Conf foo (1 unstable [all])' aptget -s install foo
  98. testsuccessequal 'Reading package lists...
  99. Building dependency tree...
  100. The following NEW packages will be installed:
  101. foo
  102. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  103. Inst foo (1 unstable [all])
  104. Conf foo (1 unstable [all])' aptget -s install foo:all
  105. testsuccessequal 'Reading package lists...
  106. Building dependency tree...
  107. The following NEW packages will be installed:
  108. foo
  109. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  110. Inst foo (1 unstable [all])
  111. Conf foo (1 unstable [all])' aptget -s install foo:amd64
  112. testsuccessequal 'Reading package lists...
  113. Building dependency tree...
  114. The following NEW packages will be installed:
  115. foo
  116. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  117. Inst foo (1 unstable [all])
  118. Conf foo (1 unstable [all])' aptget -s install foo:native