]> git.lyx.org Git - lyx.git/commitdiff
Make keystest part of our build system. Update sources only on reguest.
authorPavel Sanda <sanda@lyx.org>
Mon, 15 Jun 2009 20:20:24 +0000 (20:20 +0000)
committerPavel Sanda <sanda@lyx.org>
Mon, 15 Jun 2009 20:20:24 +0000 (20:20 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30124 a592a061-630c-0410-9148-cb99ea01b6c8

Makefile.am
development/keystest/lyx_make.sh

index 4181ffa0f55a1910f047dec9ddd7a1988cda7031..50977a2241d80fec4c5dc1502cbebb8e08ad6e9e 100644 (file)
@@ -41,6 +41,9 @@ doxydoc:
 lfundoc:
        development/tools/gen_lfuns.py src/LyXAction.cpp > lib/doc/LFUNs.lyx
 
+keystest:
+       development/keystest/lyx_make.sh
+
 lgbtags:
        etags --totals=yes --recurse=yes -o TAGS $(top_srcdir)/*
 
index ed0c397b1f779527686c3397c2ec344ffdbb8c09..b9e5d590f29b4c5e817111869ac30cd86bce3020 100755 (executable)
@@ -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