4 # --no-clean: don't make clean first, just carry on from
5 # a previous interrupted validation run
6 # --testuite-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 $config_args
54 make Validating=YES -j$threads
57 # ToDo: use THREADS=$threads, see #1558
58 make Validating=YES -C testsuite/tests/ghc-regress fast stage=2 CLEANUP=1 2>&1 | tee testlog
60 echo "-------------------------------------------------------------------"
62 grep '\<0 caused framework failures' testlog >/dev/null 2>/dev/null &&
63 grep '\<0 unexpected passes' testlog >/dev/null 2>/dev/null &&
64 grep '\<0 unexpected failures' testlog >/dev/null 2>/dev/null ; then
65 if [ $testsuite_only -eq 0 ] && [ $no_clean -eq 0 ]
68 Congratulations! This tree has passed minimal testing.
70 NOTE: If you have made changes that may cause failures not tested for by
71 the minimal testing procedure, please do further testing as necessary.
73 When you are satisfied that you haven't broken anything, go ahead and
74 push/send your patches.
78 I didn't find any problems, but this wasn't a complete validate run,
81 NOTE: If you have made changes that may cause failures not tested for by
82 the minimal testing procedure, please do further testing as necessary.
87 Oops! Looks like you have some unexpected test results or framework failures.
88 Please fix them before pushing/sending patches.
91 echo "-------------------------------------------------------------------"