summaryrefslogtreecommitdiff
path: root/validate
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2011-07-29 07:49:10 +0100
committerSimon Peyton Jones <simonpj@microsoft.com>2011-07-29 07:49:10 +0100
commit8919b2f73893b4dc8ad572ca15a51a2732be141c (patch)
tree1d2619bd8815e9111f057a23733b62f691dca06a /validate
parenteab7f5ff457e14413641fae9fc7589bf4e93e3ae (diff)
parent81c6183dca435a0f03ec3342f8c116d5f9de2ea6 (diff)
downloadhaskell-8919b2f73893b4dc8ad572ca15a51a2732be141c.tar.gz
Merge branch 'master' of http://darcs.haskell.org/ghc
Diffstat (limited to 'validate')
-rwxr-xr-xvalidate9
1 files changed, 8 insertions, 1 deletions
diff --git a/validate b/validate
index 393b5ecaa7..facee1c36a 100755
--- a/validate
+++ b/validate
@@ -45,6 +45,13 @@ do
shift
done
+if ! [ -d testsuite ]
+then
+ echo 'You need the testsuite to validate' >&2
+ echo 'Run "./sync-all --testsuite get" to get it' >&2
+ exit 1
+fi
+
if [ "$THREADS" = "" ]; then
if [ "$CPUS" = "" ]; then
threads=2
@@ -147,7 +154,7 @@ the minimal testing procedure, please do further testing as necessary.
When you are satisfied that you haven't broken anything, go ahead and
push/send your patches.
EOF
- if grep -q "^[^#]" mk/validate.mk
+ if [ -f mk/validate.mk ] && grep -q "^[^#]" mk/validate.mk
then
cat <<EOF