X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=development%2Fautotests%2Frun-tests.sh;h=4d4043044ebaf2d43fb0bc502d1f64fbd48017eb;hb=c7de1a4e2bfe3c3dd362a62d48d17e214614a242;hp=3a175e7c60e755ef1eaddffe27282fa66e03399f;hpb=5c6f72b96ec0fe2e5a3bd471a562b4ff8091525f;p=lyx.git diff --git a/development/autotests/run-tests.sh b/development/autotests/run-tests.sh index 3a175e7c60..4d4043044e 100755 --- a/development/autotests/run-tests.sh +++ b/development/autotests/run-tests.sh @@ -21,10 +21,18 @@ 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 + +PROGRAM_SUFFIX=$(grep -e '#define PACKAGE ' ../../config.h | sed -e 's/#define PACKAGE "lyx\(.*\)"/\1/') + export XVKBD_EXE=../$XVKBD_EXE export KEYTEST=../keytest.py LYX_HOME=out-home -export LYX_USERDIR=$(pwd)/$LYX_HOME/.lyx +export LYX_USERDIR=$(pwd)/$LYX_HOME/.lyx$PROGRAM_SUFFIX # Create locale links export LOCALE_DIR=../locale @@ -100,7 +108,7 @@ for tf in $(echo "$TESTS"); do if $cmd > test-log.txt 2>&1; then echo Ok cd .. - rm -rf "out-$t"; + if [ "$V" != "" ]; then rm -rf "out-$t"; fi else echo FAILED cd ..