validate now checks that the testsuite exists first; trac #5089
authorIan Lynagh <igloo@earth.li>
Thu, 14 Jul 2011 13:15:46 +0000 (14:15 +0100)
committerIan Lynagh <igloo@earth.li>
Thu, 14 Jul 2011 13:15:46 +0000 (14:15 +0100)
validate

index 32432b6..406cfe0 100755 (executable)
--- 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