18 echo "Bad argument: $1" >&2
24 if [ $testsuite_only -eq 0 ]; then
26 if [ $no_clean -eq 0 ] && [ -f mk/config.mk ]; then
31 cygwin|msys) config_args=--build=i386-unknown-mingw32
32 if [ -f c:/mingw/bin/gcc.exe ]
34 config_args="$config_args --with-gcc=c:/mingw/bin/gcc"
39 if [ "$CPUS" = "" ]; then
42 threads=`expr $CPUS + 1`
46 ./configure $config_args
48 make Validating=YES -j$threads
51 # ToDo: use THREADS=$threads, see #1558
52 make Validating=YES -C testsuite/tests/ghc-regress fast stage=2 CLEANUP=1 2>&1 | tee testlog
54 echo "-------------------------------------------------------------------"
56 grep '\<0 caused framework failures' testlog >/dev/null 2>/dev/null &&
57 grep '\<0 unexpected passes' testlog >/dev/null 2>/dev/null &&
58 grep '\<0 unexpected failures' testlog >/dev/null 2>/dev/null ; then
59 if [ $testsuite_only -eq 0 ] && [ $no_clean -eq 0 ]
62 Congratulations! This tree has passed minimal testing.
64 NOTE: If you have made changes that may cause failures not tested for by
65 the minimal testing procedure, please do further testing as necessary.
67 When you are satisfied that you haven't broken anything, go ahead and
68 push/send your patches.
72 I didn't find any problems, but this wasn't a complete validate run,
75 NOTE: If you have made changes that may cause failures not tested for by
76 the minimal testing procedure, please do further testing as necessary.
81 Oops! Looks like you have some unexpected test results or framework failures.
82 Please fix them before pushing/sending patches.
85 echo "-------------------------------------------------------------------"