[commit: ghc] master: Travis: prevent 10' no output, by setting VERBOSE=2 (e367e27)
git at git.haskell.org
git at git.haskell.org
Mon Aug 17 14:21:33 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/e367e2729ecf2b66b81680fe1b60bf1ef21880ed/ghc
>---------------------------------------------------------------
commit e367e2729ecf2b66b81680fe1b60bf1ef21880ed
Author: Thomas Miedema <thomasmiedema at gmail.com>
Date: Mon Aug 17 14:31:07 2015 +0200
Travis: prevent 10' no output, by setting VERBOSE=2
>---------------------------------------------------------------
e367e2729ecf2b66b81680fe1b60bf1ef21880ed
.travis.yml | 7 ++++++-
testsuite/mk/test.mk | 4 ----
validate | 9 ++++++---
3 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index 4527708..660d383 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 644de5a..7a4e4f1 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 ab1cc01..39e1f01 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
More information about the ghc-commits
mailing list