projects
/
apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
various small additional tests and testcases
[apt.git]
/
test
/
integration
/
test-ubuntu-bug-365611-long-package-names
diff --git
a/test/integration/test-ubuntu-bug-365611-long-package-names
b/test/integration/test-ubuntu-bug-365611-long-package-names
index 28b55df3b106406296f483be7fc2fe4d5b48bf0b..f22986e211a3988a2471929deb00c058942ca229 100755
(executable)
--- a/
test/integration/test-ubuntu-bug-365611-long-package-names
+++ b/
test/integration/test-ubuntu-bug-365611-long-package-names
@@
-1,11
+1,15
@@
#!/bin/sh
set -e
#!/bin/sh
set -e
-
local
TESTDIR=$(readlink -f $(dirname $0))
+TESTDIR=$(readlink -f $(dirname $0))
. $TESTDIR/framework
setupenvironment
. $TESTDIR/framework
setupenvironment
-configarchitecture
"i386"
+configarchitecture
'i386'
setupaptarchive
aptget install $(for i in $(seq 0 1000); do echo -n 'a'; done) 2> longpackagename.log > /dev/null || true
testfileequal 'longpackagename.log' "E: Unable to locate package $(for i in $(seq 0 1000); do echo -n 'a'; done)"
setupaptarchive
aptget install $(for i in $(seq 0 1000); do echo -n 'a'; done) 2> longpackagename.log > /dev/null || true
testfileequal 'longpackagename.log' "E: Unable to locate package $(for i in $(seq 0 1000); do echo -n 'a'; done)"
+
+# … and the opposite of long:
+aptget install "" -s >longpackagename.log 2>&1 || true
+testfileequal 'longpackagename.log' "$(aptget install -s)"