summaryrefslogtreecommitdiff
path: root/test/integration/framework
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2016-08-19 20:37:28 +0200
committerJulian Andres Klode <jak@debian.org>2016-08-29 15:42:06 +0200
commit30ea7a60404ee53393235827202968393951d106 (patch)
tree2be661bdec61ac068b72c67e20291a014ca40772 /test/integration/framework
parent30749ef1edb33a91401bd7e4da7a4474e7bc2f6a (diff)
downloadapt-30ea7a60404ee53393235827202968393951d106.tar.gz
test, travis: Quieter testing with a new -qq mode
Introduce a new -qq mode for our integration test framework, and make travis use it. The new -qq mode sets MSGLEVEL to 1. In MSGLEVEL=1, no messages are generated for passed tests, and all testcase filenames are printed in the same line. Also install first in travis, do not ls the installed output and run the install with chronic, so we only get output if it failed. Gbp-Dch: ignore
Diffstat (limited to 'test/integration/framework')
-rw-r--r--test/integration/framework5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/integration/framework b/test/integration/framework
index 243996e14..9a908a9ec 100644
--- a/test/integration/framework
+++ b/test/integration/framework
@@ -5,6 +5,8 @@ EXIT_CODE=0
while [ -n "$1" ]; do
if [ "$1" = "-q" ]; then
export MSGLEVEL=2
+ elif [ "$1" = "-qq" ]; then
+ export MSGLEVEL=1
elif [ "$1" = "-v" ]; then
export MSGLEVEL=4
elif [ "$1" = '--color=no' ]; then
@@ -142,6 +144,9 @@ if [ $MSGLEVEL -le 4 ]; then
msgdebug() { true; }
msgndebug() { true; }
fi
+if [ $MSGLEVEL -le 1 ]; then
+ msgpass() { true; }
+fi
msgdone() {
if [ "$1" = "debug" -a $MSGLEVEL -le 4 ] ||
[ "$1" = "info" -a $MSGLEVEL -le 3 ] ||