3 if [ -f mk/config.mk ]; then
7 if [ -f mk/build.mk ]; then
8 mv mk/build.mk mk/build.mk.bak
11 # The default is a "quick" build
12 echo BuildFlavour=quick >mk/build.mk
13 cat mk/build.mk.sample >>mk/build.mk
15 # You can override the default validate settings using mk/validate.mk
16 # e.g. you could add GhcLibWays=p to test profiling.
17 echo '-include $(TOP)/mk/validate.mk' >>mk/build.mk
21 # ToDo: configure args
25 make -C testsuite/tests/ghc-regress fast stage=2 2>&1 | tee testlog
27 if grep '0 unexpected failures' testlog >/dev/null 2>/dev/null; then
28 echo "-------------------------------------------------------------------"
29 echo "Congratulations! This tree is has passed minimal testing."
31 echo "NOTE: If you have made changes that may cause failures not tested"
32 echo "for by the minimal testing procedure, please do further testing"
35 echo "When you are satisfied that you haven't broken anything, go ahead"
36 echo "and push/send your patches".
37 echo "-------------------------------------------------------------------"
39 echo "-------------------------------------------------------------------"
40 echo "Oops! Looks like you have some test failures."
41 echo "Please fix them before pushing/sending patches."
42 echo "-------------------------------------------------------------------"