summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Miedema <thomasmiedema@gmail.com>2015-08-17 14:31:07 +0200
committerThomas Miedema <thomasmiedema@gmail.com>2015-08-17 15:43:33 +0200
commite367e2729ecf2b66b81680fe1b60bf1ef21880ed (patch)
treee46f66fd4014c5960e7312cbf6a98be68d9da03e
parent744ff88537fa26bd4826ea35679fce04c65eee97 (diff)
downloadhaskell-e367e2729ecf2b66b81680fe1b60bf1ef21880ed.tar.gz
Travis: prevent 10' no output, by setting VERBOSE=2
-rw-r--r--.travis.yml7
-rw-r--r--testsuite/mk/test.mk4
-rwxr-xr-xvalidate9
3 files changed, 12 insertions, 8 deletions
diff --git a/.travis.yml b/.travis.yml
index 4527708734..660d38305a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -48,4 +48,9 @@ script:
- echo 'DYNAMIC_GHC_PROGRAMS = NO' >> mk/validate.mk
- echo 'GhcLibWays = v' >> mk/validate.mk
- if [ "$DEBUG_STAGE2" = "YES" ]; then echo 'GhcStage2HcOpts += -DDEBUG' >> mk/validate.mk; fi
- - THREADS=3 SKIP_PERF_TESTS=YES ./validate --fast --quiet
+ # * Use --quiet, otherwise the build log might exceed the limit of 4
+ # megabytes, causing Travis to kill our job.
+ # * But use VERBOSE=2 (the default, but not when using --quiet) otherwise
+ # the testsuite might not print output for over 10 minutes (more likely so
+ # when DEBUG_STAGE2=NO), causing Travis to again kill our job.
+ - THREADS=3 SKIP_PERF_TESTS=YES VERBOSE=2 ./validate --fast --quiet
diff --git a/testsuite/mk/test.mk b/testsuite/mk/test.mk
index 644de5afaf..7a4e4f1686 100644
--- a/testsuite/mk/test.mk
+++ b/testsuite/mk/test.mk
@@ -255,10 +255,6 @@ else
setaccept =
endif
-TESTS =
-TEST =
-WAY =
-
.PHONY: all boot test verbose accept fast list_broken
all: test
diff --git a/validate b/validate
index ab1cc01a33..39e1f01120 100755
--- a/validate
+++ b/validate
@@ -33,6 +33,11 @@ Flags:
THREADS=1 ./validate
+ You can also use environment variables to pass extra options to the
+ testsuite. For example:
+
+ TEST='read001 read002' ./validate --testsuite-only --fast
+
EOF
}
@@ -260,10 +265,8 @@ FAST)
;;
esac
-if [ $be_quiet -eq 1 ]; then
+if [ $be_quiet -eq 1 ] && [ -z $VERBOSE ]; then
TEST_VERBOSITY="VERBOSE=1 NO_PRINT_SUMMARY=YES"
-else
- TEST_VERBOSITY="VERBOSE=2"
fi
$make $MAKE_TEST_TARGET stage=2 $BINDIST $TEST_VERBOSITY THREADS=$threads 2>&1 | tee testlog