X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=development%2Fkeystest%2Flyx_make.sh;h=153b6256c47bf05b64755640df6fa7d87e8dc0b7;hb=e497931c4d7a44b6451574388e4fa31e1cb2b8a4;hp=e6c92e8ff11c6c2b7dab7af193e0c64521e11e06;hpb=5cf6f4f6569ed4a55dff7a39a8d549683dce24a7;p=lyx.git diff --git a/development/keystest/lyx_make.sh b/development/keystest/lyx_make.sh index e6c92e8ff1..153b6256c4 100755 --- a/development/keystest/lyx_make.sh +++ b/development/keystest/lyx_make.sh @@ -1,20 +1,34 @@ #!/bin/bash -#This script updates LyX, runs LyX, starts spamming it with hundreds of -#keypresses, and logs all output, including backtraces to LT/out/GDB -#Use report.sh to generated the more useful bug reports in LT/out/{or}* +#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}* -#LYXDIR=LT/lyx-1.6.x-test -cd ~/lyx-1.6.x-test -mkdir -p LT/out -if which wmctrl xvkbd bash xterm python +LT=development/keystest + +if ! [ -d $LT ]; then + echo lyx_make.sh is supposed to be in the root of the lyx svn tree, eg. development/keystest/lyx_make.sh. +fi + +mkdir -p $LT/out +if which wmctrl xvkbd bash xterm python xclip then - #cd "$LYXDIR" || echo CANNOT FIND LT/lyx-1.6.x-test - #cd "$LYXDIR" || exit - svn up Makefile.am autogen.sh boost/ config/ configure.ac lib/ lyx.1in m4/ rename.sh src/ - export CFLAGS="-g" - export CXXFLAGS="$CFLAGS" - ./autogen.sh && ./configure && 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 && + if [ ! a"$2" == a"0" ] + then + bash $LT/autolyx + fi + 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 + fi + else echo NEEDS the following packages: - echo wmctrl xvkbd bash xterm python + echo wmctrl xvkbd bash xterm python xclip fi