summaryrefslogtreecommitdiff
path: root/validate
diff options
context:
space:
mode:
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