"Fossies" - the Fresh Open Source Software Archive

Member "apt-1.9.4/test/integration/test-ubuntu-bug-365611-long-package-names" (19 Sep 2019, 511 Bytes) of package /linux/misc/apt-1.9.4.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

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