#!/bin/sh
# Flags:
-# --no-clean: don't make clean first, just carry on from
-# a previous interrupted validation run
-# --testuite-only: don't build the compiler, just run
-# the test suite
+# --no-clean: don't make clean first, just carry on from
+# a previous interrupted validation run
+# --testsuite-only: don't build the compiler, just run
+# the test suite
set -e
fi
sh boot
-./configure $config_args
+./configure "--prefix=`pwd`/inst" $config_args
make Validating=YES -j$threads
fi # testsuite-only
-# ToDo: use THREADS=$threads, see #1558
-make Validating=YES -C testsuite/tests/ghc-regress fast stage=2 CLEANUP=1 2>&1 | tee testlog
+make Validating=YES -C testsuite/tests/ghc-regress fast stage=2 CLEANUP=1 THREADS=$threads 2>&1 | tee testlog
echo "-------------------------------------------------------------------"
if