From 777156e0ff41aa1d14cb185928c8ef4c7b4dd251 Mon Sep 17 00:00:00 2001
From: Tommaso Cucinotta <tommaso@lyx.org>
Date: Wed, 13 Nov 2013 02:13:32 +0000
Subject: [PATCH] Added self-sanity-check for presence of pcregrep, otherwise
 many (almost all) tests will fail.

---
 development/autotests/run-tests.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/development/autotests/run-tests.sh b/development/autotests/run-tests.sh
index a3f7d12eb4..d2556dadc8 100755
--- a/development/autotests/run-tests.sh
+++ b/development/autotests/run-tests.sh
@@ -21,6 +21,12 @@ if [ "$(which wmctrl)" == "" ]; then
     exit -1;
 fi
 
+if [ "$(which pcregrep)" == "" ]; then
+    echo "You need to install pcregrep first, try:"
+    echo "  sudo apt-get install pcregrep"
+    exit -1;
+fi
+
 export XVKBD_EXE=../$XVKBD_EXE
 export KEYTEST=../keytest.py
 LYX_HOME=out-home