test-ubuntu-bug-365611-long-package-names 511 B

12345678910111213141516
  1. #!/bin/sh
  2. set -e
  3. TESTDIR="$(readlink -f "$(dirname "$0")")"
  4. . "$TESTDIR/framework"
  5. setupenvironment
  6. configarchitecture 'i386'
  7. setupaptarchive
  8. aptget install $(for i in $(seq 0 1000); do echo -n 'a'; done) 2> longpackagename.log > /dev/null || true
  9. testfileequal 'longpackagename.log' "E: Unable to locate package $(for i in $(seq 0 1000); do echo -n 'a'; done)"
  10. # … and the opposite of long:
  11. aptget install "" -s >longpackagename.log 2>&1 || true
  12. testfileequal 'longpackagename.log' "$(aptget install -s)"