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-xorg-break-providers 1.8 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #!/bin/sh
  2. set -e
  3. TESTDIR="$(readlink -f "$(dirname "$0")")"
  4. . "$TESTDIR/framework"
  5. setupenvironment
  6. configarchitecture "i386"
  7. setupaptarchive
  8. # the new xserver-xorg-core breaks xserver-xorg-video-6
  9. # which both -intel (installed) and -vesa (not installed)
  10. # provided in their old version.
  11. # The test ensures that only -intel will be upgraded
  12. # (together with -core of course) and -vesa not touched.
  13. testfailureequal 'Reading package lists...
  14. Building dependency tree...
  15. The following additional packages will be installed:
  16. xserver-xorg-video-intel
  17. The following packages will be upgraded:
  18. xserver-xorg-core xserver-xorg-video-intel
  19. 2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  20. Need to get 0 B/2992 kB of archives.
  21. After this operation, 24.6 kB of additional disk space will be used.
  22. E: Trivial Only specified but this is not a trivial operation.' aptget install xserver-xorg-core --trivial-only
  23. testfailureequal 'Reading package lists...
  24. Building dependency tree...
  25. Calculating upgrade...
  26. The following packages will be upgraded:
  27. xserver-xorg-core xserver-xorg-video-intel
  28. 2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  29. Need to get 0 B/2992 kB of archives.
  30. After this operation, 24.6 kB of additional disk space will be used.
  31. E: Trivial Only specified but this is not a trivial operation.' aptget upgrade --trivial-only
  32. testfailureequal 'Reading package lists...
  33. Building dependency tree...
  34. Calculating upgrade...
  35. The following packages will be upgraded:
  36. xserver-xorg-core xserver-xorg-video-intel
  37. 2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  38. Need to get 0 B/2992 kB of archives.
  39. After this operation, 24.6 kB of additional disk space will be used.
  40. E: Trivial Only specified but this is not a trivial operation.' aptget dist-upgrade --trivial-only