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.
 
 
 
 
 
 

70 lines
2.3 KiB

  1. #!/bin/sh
  2. set -e
  3. TESTDIR="$(readlink -f "$(dirname "$0")")"
  4. . "$TESTDIR/framework"
  5. setupenvironment
  6. configarchitecture "i386"
  7. setupaptarchive
  8. testsuccessequal 'Reading package lists...
  9. Building dependency tree...
  10. The following NEW packages will be installed:
  11. g++
  12. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  13. Inst g++ (4:4.4.5-1 localhost [i386])
  14. Conf g++ (4:4.4.5-1 localhost [i386])' aptget install g++ -s
  15. testsuccessequal "Reading package lists...
  16. Building dependency tree...
  17. Package 'g++' is not installed, so not removed
  18. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded." aptget remove g++ -s
  19. testsuccessequal 'Reading package lists...
  20. Building dependency tree...
  21. The following NEW packages will be installed:
  22. g++
  23. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  24. Inst g++ (4:4.4.5-1 localhost [i386])
  25. Conf g++ (4:4.4.5-1 localhost [i386])' aptget install g+++ -s
  26. testsuccessequal 'Reading package lists...
  27. Building dependency tree...
  28. The following NEW packages will be installed:
  29. g++
  30. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  31. Inst g++ (4:4.4.5-1 localhost [i386])
  32. Conf g++ (4:4.4.5-1 localhost [i386])' aptget purge g+++ -s
  33. testsuccessequal 'Reading package lists...
  34. Building dependency tree...
  35. The following NEW packages will be installed:
  36. apt
  37. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  38. Inst apt (0.8.8 localhost [all])
  39. Conf apt (0.8.8 localhost [all])' aptget install apt -s
  40. testsuccessequal 'Reading package lists...
  41. Building dependency tree...
  42. The following NEW packages will be installed:
  43. apt+
  44. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  45. Inst apt+ (0.8.8 localhost [all])
  46. Conf apt+ (0.8.8 localhost [all])' aptget install apt+ -s
  47. testsuccessequal 'Reading package lists...
  48. Building dependency tree...
  49. The following NEW packages will be installed:
  50. apt+
  51. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  52. Inst apt+ (0.8.8 localhost [all])
  53. Conf apt+ (0.8.8 localhost [all])' aptget install apt++ -s
  54. testsuccessequal 'Reading package lists...
  55. Building dependency tree...
  56. The following NEW packages will be installed:
  57. apt+
  58. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  59. Inst apt+ (0.8.8 localhost [all])
  60. Conf apt+ (0.8.8 localhost [all])' aptget purge apt++ -s