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.
 
 
 
 
 
 

58 lines
2.9 KiB

  1. #!/bin/sh
  2. set -e
  3. TESTDIR="$(readlink -f "$(dirname "$0")")"
  4. . "$TESTDIR/framework"
  5. setupenvironment
  6. configarchitecture 'amd64' 'i386'
  7. insertinstalledpackage 'foo-driver' 'amd64' '1' 'Depends: libfoo (= 1)
  8. Recommends: libgl1-foo-glx (= 1)
  9. Breaks: libgl1-foo-glx (<< 1), libgl1-foo-glx (>> 1)'
  10. insertinstalledpackage 'libgl1-foo-glx' 'amd64,i386' '1' 'Depends: libfoo (= 1)
  11. Multi-Arch: same'
  12. insertinstalledpackage 'libfoo' 'amd64,i386' '1' 'Multi-Arch: same'
  13. buildsimplenativepackage 'foo-driver' 'amd64' '2' 'stable' 'Depends: libfoo (= 2)
  14. Recommends: libgl1-foo-glx (= 2)
  15. Breaks: libgl1-foo-glx (<< 2), libgl1-foo-glx (>> 2)'
  16. buildsimplenativepackage 'libgl1-foo-glx' 'amd64,i386' '2' 'stable' 'Depends: libfoo (= 2)
  17. Multi-Arch: same'
  18. buildsimplenativepackage 'libfoo' 'amd64,i386' '2' 'stable' 'Multi-Arch: same'
  19. setupaptarchive
  20. testequalor2 'Reading package lists...
  21. Building dependency tree...
  22. Calculating upgrade...
  23. The following packages will be upgraded:
  24. foo-driver libfoo libfoo:i386 libgl1-foo-glx libgl1-foo-glx:i386
  25. 5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  26. Inst libgl1-foo-glx [1] (2 stable [amd64]) [libgl1-foo-glx:amd64 on libgl1-foo-glx:i386] [libgl1-foo-glx:i386 on libgl1-foo-glx:amd64] [foo-driver:amd64 on libgl1-foo-glx:amd64] [libgl1-foo-glx:i386 foo-driver:amd64 ]
  27. Inst libgl1-foo-glx:i386 [1] (2 stable [i386]) [foo-driver:amd64 on libgl1-foo-glx:amd64] [foo-driver:amd64 on libgl1-foo-glx:i386] [foo-driver:amd64 ]
  28. Inst foo-driver [1] (2 stable [amd64]) []
  29. Inst libfoo:i386 [1] (2 stable [i386]) [libfoo:amd64 on libfoo:i386] [libfoo:i386 on libfoo:amd64] [libfoo:amd64 ]
  30. Inst libfoo [1] (2 stable [amd64])
  31. Conf libgl1-foo-glx (2 stable [amd64])
  32. Conf libgl1-foo-glx:i386 (2 stable [i386])
  33. Conf foo-driver (2 stable [amd64])
  34. Conf libfoo:i386 (2 stable [i386])
  35. Conf libfoo (2 stable [amd64])' 'Reading package lists...
  36. Building dependency tree...
  37. Calculating upgrade...
  38. The following packages will be upgraded:
  39. foo-driver libfoo libfoo:i386 libgl1-foo-glx libgl1-foo-glx:i386
  40. 5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  41. Inst libgl1-foo-glx [1] (2 stable [amd64]) [foo-driver:amd64 on libgl1-foo-glx:amd64] [libgl1-foo-glx:amd64 on libgl1-foo-glx:i386] [libgl1-foo-glx:i386 on libgl1-foo-glx:amd64] [foo-driver:amd64 libgl1-foo-glx:i386 ]
  42. Inst libgl1-foo-glx:i386 [1] (2 stable [i386]) [foo-driver:amd64 on libgl1-foo-glx:amd64] [foo-driver:amd64 on libgl1-foo-glx:i386] [foo-driver:amd64 ]
  43. Inst foo-driver [1] (2 stable [amd64]) []
  44. Inst libfoo:i386 [1] (2 stable [i386]) [libfoo:amd64 on libfoo:i386] [libfoo:i386 on libfoo:amd64] [libfoo:amd64 ]
  45. Inst libfoo [1] (2 stable [amd64])
  46. Conf libgl1-foo-glx (2 stable [amd64])
  47. Conf libgl1-foo-glx:i386 (2 stable [i386])
  48. Conf foo-driver (2 stable [amd64])
  49. Conf libfoo:i386 (2 stable [i386])
  50. Conf libfoo (2 stable [amd64])' aptget dist-upgrade -s
  51. testsuccess aptget dist-upgrade -y -o Debug::pkgPackageManager=1 -o Debug::pkgOrderList=1