4 # --no-clean: don't make clean first, just carry on from
5 # a previous interrupted validation run
6 # --testsuite-only: don't build the compiler, just run
8 # --hpc: build stage2 with -fhpc, and see how much of the
9 # compiler the test suite covers.
10 # 2008-07-01: 63% slower than the default.
11 # --fast: Default. Opposite to --slow.
12 # --slow: Build stage2 with -DDEBUG.
13 # 2008-07-01: 14% slower than the default.
41 echo "Bad argument: $1" >&2
47 if [ $testsuite_only -eq 0 ]; then
49 if [ $no_clean -eq 0 ] && [ -f mk/config.mk ]; then
54 cygwin|msys) config_args=--build=i386-unknown-mingw32
55 if [ -f c:/mingw/bin/gcc.exe ]
57 config_args="$config_args --with-gcc=c:/mingw/bin/gcc"
62 if [ "$CPUS" = "" ]; then
65 threads=`expr $CPUS + 1`
69 ./configure "--prefix=`pwd`/inst" $config_args
71 thisdir=`utils/pwd/pwd forwardslash`
73 make Validating=YES -j$threads ValidateHpc=$hpc ValidateSlow=$slow
78 # XXX With threads we'd need to give a different tix file to each thread
79 # and then sum them up at the end
81 HPCTIXFILE=$thisdir/testsuite/hpc_output/ghc.tix
86 make Validating=YES -C testsuite/tests/ghc-regress fast stage=2 CLEANUP=1 THREADS=$threads 2>&1 | tee testlog
90 utils/hpc/hpc markup --hpcdir=. --srcdir=compiler --srcdir=testsuite/hpc_output --destdir=testsuite/hpc_output testsuite/hpc_output/ghc.tix
93 echo "-------------------------------------------------------------------"
95 grep '\<0 caused framework failures' testlog >/dev/null 2>/dev/null &&
96 grep '\<0 unexpected passes' testlog >/dev/null 2>/dev/null &&
97 grep '\<0 unexpected failures' testlog >/dev/null 2>/dev/null ; then
98 if [ $testsuite_only -eq 0 ] && [ $no_clean -eq 0 ]
101 Congratulations! This tree has passed minimal testing.
103 NOTE: If you have made changes that may cause failures not tested for by
104 the minimal testing procedure, please do further testing as necessary.
106 When you are satisfied that you haven't broken anything, go ahead and
107 push/send your patches.
111 I didn't find any problems, but this wasn't a complete validate run,
114 NOTE: If you have made changes that may cause failures not tested for by
115 the minimal testing procedure, please do further testing as necessary.
120 Oops! Looks like you have some unexpected test results or framework failures.
121 Please fix them before pushing/sending patches.
124 echo "-------------------------------------------------------------------"