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
24 echo "Bad argument: $1" >&2
30 if [ $testsuite_only -eq 0 ]; then
32 if [ $no_clean -eq 0 ] && [ -f mk/config.mk ]; then
37 cygwin|msys) config_args=--build=i386-unknown-mingw32
38 if [ -f c:/mingw/bin/gcc.exe ]
40 config_args="$config_args --with-gcc=c:/mingw/bin/gcc"
45 if [ "$CPUS" = "" ]; then
48 threads=`expr $CPUS + 1`
52 ./configure "--prefix=`pwd`/inst" $config_args
54 make Validating=YES -j$threads
57 make Validating=YES -C testsuite/tests/ghc-regress fast stage=2 CLEANUP=1 THREADS=$threads 2>&1 | tee testlog
59 echo "-------------------------------------------------------------------"
61 grep '\<0 caused framework failures' testlog >/dev/null 2>/dev/null &&
62 grep '\<0 unexpected passes' testlog >/dev/null 2>/dev/null &&
63 grep '\<0 unexpected failures' testlog >/dev/null 2>/dev/null ; then
64 if [ $testsuite_only -eq 0 ] && [ $no_clean -eq 0 ]
67 Congratulations! This tree has passed minimal testing.
69 NOTE: If you have made changes that may cause failures not tested for by
70 the minimal testing procedure, please do further testing as necessary.
72 When you are satisfied that you haven't broken anything, go ahead and
73 push/send your patches.
77 I didn't find any problems, but this wasn't a complete validate run,
80 NOTE: If you have made changes that may cause failures not tested for by
81 the minimal testing procedure, please do further testing as necessary.
86 Oops! Looks like you have some unexpected test results or framework failures.
87 Please fix them before pushing/sending patches.
90 echo "-------------------------------------------------------------------"