]> git.lyx.org Git - lyx.git/blobdiff - development/autotests/run-tests.sh
support for the Iwona fonts
[lyx.git] / development / autotests / run-tests.sh
index f61cc6e12805d0a466769ee4379ccd1b1b7dc0b4..a3f7d12eb4cfae8103269bec328707f7f067be82 100755 (executable)
@@ -15,6 +15,12 @@ if [ "$XVKBD_HACKED" != "" ]; then
     fi
 fi
 
+if [ "$(which wmctrl)" == "" ]; then
+    echo "You need to install wmctrl first, try:"
+    echo "  sudo apt-get install wmctrl"
+    exit -1;
+fi
+
 export XVKBD_EXE=../$XVKBD_EXE
 export KEYTEST=../keytest.py
 LYX_HOME=out-home
@@ -91,10 +97,10 @@ for tf in $(echo "$TESTS"); do
     rm -rf "out-$t"
     mkdir "out-$t"
     cd "out-$t"
-    if "$cmd" > test-log.txt 2>&1; then
+    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 ..