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.

test-unpack-different-version-unpacked 4.5 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. #!/bin/sh
  2. set -e
  3. TESTDIR="$(readlink -f "$(dirname "$0")")"
  4. . "$TESTDIR/framework"
  5. setupenvironment
  6. configarchitecture 'amd64' 'i386'
  7. insertpackage 'unstable' 'libqtcore4' 'i386,amd64' '2' 'Multi-Arch: same'
  8. setupaptarchive
  9. DPKGSTATUS='rootdir/var/lib/dpkg/status'
  10. cp $DPKGSTATUS dpkg.status
  11. cleanstatus() {
  12. cp dpkg.status $DPKGSTATUS
  13. rm rootdir/var/cache/apt/*.bin
  14. }
  15. #FIXME: the reported version is wrong, it should be 1, not 2
  16. insertinstalledpackage 'libqtcore4' 'i386,amd64' '1' 'Multi-Arch: same' '' 'install ok unpacked'
  17. testsuccessequal 'Reading package lists...
  18. Building dependency tree...
  19. 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
  20. 2 not fully installed or removed.
  21. Conf libqtcore4 (2 unstable [amd64])
  22. Conf libqtcore4:i386 (2 unstable [i386])' aptget install -s -f
  23. cleanstatus
  24. insertinstalledpackage 'libqtcore4' 'amd64' '2' 'Multi-Arch: same' '' 'install ok unpacked'
  25. insertinstalledpackage 'libqtcore4' 'i386' '1' 'Multi-Arch: same' '' 'install ok unpacked'
  26. testsuccessequal 'Reading package lists...
  27. Building dependency tree...
  28. Correcting dependencies... Done
  29. The following additional packages will be installed:
  30. libqtcore4:i386
  31. The following packages will be upgraded:
  32. libqtcore4:i386
  33. 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  34. 2 not fully installed or removed.
  35. Inst libqtcore4:i386 [1] (2 unstable [i386])
  36. Conf libqtcore4:i386 (2 unstable [i386])
  37. Conf libqtcore4 (2 unstable [amd64])' aptget install -s -f
  38. cleanstatus
  39. insertinstalledpackage 'libqtcore4' 'i386' '2' 'Multi-Arch: same' '' 'install ok unpacked'
  40. insertinstalledpackage 'libqtcore4' 'amd64' '1' 'Multi-Arch: same' '' 'install ok unpacked'
  41. testsuccessequal 'Reading package lists...
  42. Building dependency tree...
  43. Correcting dependencies... Done
  44. The following additional packages will be installed:
  45. libqtcore4
  46. The following packages will be upgraded:
  47. libqtcore4
  48. 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  49. 2 not fully installed or removed.
  50. Inst libqtcore4 [1] (2 unstable [amd64])
  51. Conf libqtcore4 (2 unstable [amd64])
  52. Conf libqtcore4:i386 (2 unstable [i386])' aptget install -s -f
  53. cleanstatus
  54. insertinstalledpackage 'libqtcore4' 'amd64' '2' 'Multi-Arch: same' '' 'install ok unpacked'
  55. insertinstalledpackage 'libqtcore4' 'i386' '1' 'Multi-Arch: same'
  56. testsuccessequal 'Reading package lists...
  57. Building dependency tree...
  58. Correcting dependencies... Done
  59. The following additional packages will be installed:
  60. libqtcore4:i386
  61. The following packages will be upgraded:
  62. libqtcore4:i386
  63. 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  64. 1 not fully installed or removed.
  65. Inst libqtcore4:i386 [1] (2 unstable [i386])
  66. Conf libqtcore4:i386 (2 unstable [i386])
  67. Conf libqtcore4 (2 unstable [amd64])' aptget install -s -f
  68. cleanstatus
  69. insertinstalledpackage 'libqtcore4' 'i386' '2' 'Multi-Arch: same' '' 'install ok unpacked'
  70. insertinstalledpackage 'libqtcore4' 'amd64' '1' 'Multi-Arch: same'
  71. testsuccessequal 'Reading package lists...
  72. Building dependency tree...
  73. Correcting dependencies... Done
  74. The following additional packages will be installed:
  75. libqtcore4
  76. The following packages will be upgraded:
  77. libqtcore4
  78. 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  79. 1 not fully installed or removed.
  80. Inst libqtcore4 [1] (2 unstable [amd64])
  81. Conf libqtcore4 (2 unstable [amd64])
  82. Conf libqtcore4:i386 (2 unstable [i386])' aptget install -s -f
  83. cleanstatus
  84. insertinstalledpackage 'libqtcore4' 'amd64' '2' 'Multi-Arch: same'
  85. insertinstalledpackage 'libqtcore4' 'i386' '1' 'Multi-Arch: same' '' 'install ok unpacked'
  86. testsuccessequal 'Reading package lists...
  87. Building dependency tree...
  88. Correcting dependencies... Done
  89. The following additional packages will be installed:
  90. libqtcore4:i386
  91. The following packages will be upgraded:
  92. libqtcore4:i386
  93. 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  94. 1 not fully installed or removed.
  95. Inst libqtcore4:i386 [1] (2 unstable [i386])
  96. Conf libqtcore4:i386 (2 unstable [i386])' aptget install -s -f
  97. cleanstatus
  98. insertinstalledpackage 'libqtcore4' 'i386' '2' 'Multi-Arch: same'
  99. insertinstalledpackage 'libqtcore4' 'amd64' '1' 'Multi-Arch: same' '' 'install ok unpacked'
  100. testsuccessequal 'Reading package lists...
  101. Building dependency tree...
  102. Correcting dependencies... Done
  103. The following additional packages will be installed:
  104. libqtcore4
  105. The following packages will be upgraded:
  106. libqtcore4
  107. 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  108. 1 not fully installed or removed.
  109. Inst libqtcore4 [1] (2 unstable [amd64])
  110. Conf libqtcore4 (2 unstable [amd64])' aptget install -s -f