X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=development%2Fkeystest%2Flyx_make.sh;h=b9e5d590f29b4c5e817111869ac30cd86bce3020;hb=752099a7c55282635a686e3203a45405381c387d;hp=ed0c397b1f779527686c3397c2ec344ffdbb8c09;hpb=9c6e9083ed2aff5dacf39c019a866113efc058b4;p=lyx.git diff --git a/development/keystest/lyx_make.sh b/development/keystest/lyx_make.sh index ed0c397b1f..b9e5d590f2 100755 --- a/development/keystest/lyx_make.sh +++ b/development/keystest/lyx_make.sh @@ -1,5 +1,6 @@ #!/bin/bash -#This script updates LyX, runs LyX, starts spamming it with hundreds of +#development/keystest/lyx_make.sh [--update] +#This script runs LyX (and possibly updates), starts spamming it with hundreds of #keypresses, and logs all output, including backtraces to development/keystest/out/GDB . #Use report.sh to generated the more useful bug reports in development/keystest/out/{or}* @@ -12,8 +13,17 @@ fi mkdir -p $LT/out if which wmctrl xvkbd bash xterm python then - svn up - ./autogen.sh && ./configure --enable-debug -- && nice -18 make && (bash $LT/autolyx & sleep 9 ; xterm -e python $LT/test.py) + + if [ a"$1" == a--update ]; then + svn up + ./autogen.sh && ./configure --enable-debug -- && nice -18 make && (bash $LT/autolyx & sleep 9 ; xterm -e python $LT/test.py) + else + DBG=`src/lyx --version 2>&1 | grep C++.Compiler.flags|grep -- -g`; + if [ -z "$DBG" ]; then echo Wrong build of LyX binary. ; exit; fi + + bash $LT/autolyx & sleep 9 ; xterm -e python $LT/test.py + fi + else echo NEEDS the following packages: echo wmctrl xvkbd bash xterm python