]> git.lyx.org Git - features.git/commitdiff
Move to the correct directory structure.
authorPavel Sanda <sanda@lyx.org>
Mon, 15 Jun 2009 20:20:20 +0000 (20:20 +0000)
committerPavel Sanda <sanda@lyx.org>
Mon, 15 Jun 2009 20:20:20 +0000 (20:20 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30122 a592a061-630c-0410-9148-cb99ea01b6c8

development/keystest/autolyx
development/keystest/lyx_make.sh
development/keystest/maketar.sh
development/keystest/report.sh
development/keystest/start_tests.sh
development/keystest/test.py

index 20477dc4daf83e019690fd72d29eb056ba5f1cbf..28e6c1233b267367ea8771c25fbebe7c15627ea2 100755 (executable)
@@ -12,5 +12,5 @@ while true
 do
   ( (echo SECONDS: `date +%s`
        (echo "run
-  bt" ; yes q) | gdb src/lyx 2>&1) | strings|  tee -a LT/out/GDB)
+  bt" ; yes q) | gdb src/lyx 2>&1) | strings|  tee -a development/keystest/out/GDB)
 done
index e6c92e8ff11c6c2b7dab7af193e0c64521e11e06..ed0c397b1f779527686c3397c2ec344ffdbb8c09 100755 (executable)
@@ -1,19 +1,19 @@
 #!/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}*
+#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
+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
 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)
+ svn up
+ ./autogen.sh && ./configure --enable-debug -- && nice -18 make && (bash $LT/autolyx & sleep 9 ; xterm -e python $LT/test.py)
 else
  echo NEEDS the following packages: 
  echo wmctrl xvkbd bash xterm python
index 670d300b5c97d6f94dbc5fb00d5bc124d29e92a6..b072df5aaeeaf9111172766788e447e89578220f 100755 (executable)
@@ -1,2 +1,4 @@
-tar -c LT/start_tests.sh LT/killt* LT/README LT/stock_text LT/report.sh LT/autolyx LT/lyx_make.sh LT/maketar.sh LT/test.py | gzip -9 > LT/lyxtestc.tar.gz
-#cp lyxtestb.tar.gz LT/share
+#Make a package from keystest scripts.
+#It is supposed to be run inside development/keystest.
+
+tar -c start_tests.sh killt* README stock_text report.sh autolyx lyx_make.sh maketar.sh test.py | gzip -9 > lyxtestc.tar.gz
index fd059c7929beb46a14a15262e4c048988c49f793..d26384af5a91bac5c26409dbe7ba8ed5d64962f5 100755 (executable)
@@ -1,9 +1,11 @@
 #!/bin/bash
-# echo 'grep "#1 " LT/out/GDB | sed 's/0x[^ )]*[ )]/.*/g'  | sort | uniq' >> report.sh
+LT=development/keystest
+
+# echo 'grep "#1 " $LT/out/GDB | sed 's/0x[^ )]*[ )]/.*/g'  | sort | uniq' >> report.sh
 
 UNIQUE_LINE=1
 
-while [ ! -e LT/out/GDB ]
+while [ ! -e $LT/out/GDB ]
 do
   cd ..
   if [ `pwd` = '/' ]
@@ -12,22 +14,22 @@ do
   fi
 done
 
-strings LT/out/GDB > LT/out/GDBs 
-grep "#$UNIQUE_LINE " LT/out/GDBs > LT/out/list
-#cat LT/out/list | grep -o ' in [[:alnum:]:]* ' | sort | uniq| tee LT/out/listuniq
-#cat LT/out/list | grep -o ' in [[:alnum:]:]* ' | sort | uniq| tee LT/out/listuniq
-cat LT/out/list | sed 's/0x[^ )]*[ )]/.*/g'  | sort | uniq | tee LT/out/listuniq
+strings $LT/out/GDB > $LT/out/GDBs 
+grep "#$UNIQUE_LINE " $LT/out/GDBs > $LT/out/list
+#cat $LT/out/list | grep -o ' in [[:alnum:]:]* ' | sort | uniq| tee $LT/out/listuniq
+#cat $LT/out/list | grep -o ' in [[:alnum:]:]* ' | sort | uniq| tee $LT/out/listuniq
+cat $LT/out/list | sed 's/0x[^ )]*[ )]/.*/g'  | sort | uniq | tee $LT/out/listuniq
 
-NUM_REPORTS=`wc -l < LT/out/list`
+NUM_REPORTS=`wc -l < $LT/out/list`
 echo NUM_REPORTS $NUM_REPORTS
 
-echo > LT/out/overview
+echo > $LT/out/overview
 
-cat LT/out/listuniq | while read l 
+cat $LT/out/listuniq | while read l 
 do
   #name=`echo $l | sed s/in// | sed 's/ //g'`
-  grep "$l" -B $UNIQUE_LINE -A 100 LT/out/GDBs | head -n 100 | grep '#[0-9]' >LT/out/tmp
-  name=`cat LT/out/tmp | ( grep -o ' in lyx::[[:alnum:]:]*' || cat LT/out/tmp | grep -o ' [ai][nt] [[:alnum:]:]*' ) | head -n1 | sed s/in// | sed 's/ //g'`
+  grep "$l" -B $UNIQUE_LINE -A 100 $LT/out/GDBs | head -n 100 | grep '#[0-9]' >$LT/out/tmp
+  name=`cat $LT/out/tmp | ( grep -o ' in lyx::[[:alnum:]:]*' || cat $LT/out/tmp | grep -o ' [ai][nt] [[:alnum:]:]*' ) | head -n1 | sed s/in// | sed 's/ //g'`
   echo NAME: $name
   echo L: $l
  #out/list | grep -o ' in [[:alnum:]:]* ' | sort | uniq| tee out/listuniq
@@ -36,17 +38,17 @@ do
   uname -r ; cat /etc/lsb-release| grep -i DISTRIB_DESCRIPTION
   (cd src && svn info | grep Rev:)
   echo
-  NUM_OCCURANCES=`grep "$l" LT/out/list | wc -l`
+  NUM_OCCURANCES=`grep "$l" $LT/out/list | wc -l`
   echo number_of_occurances: $NUM_OCCURANCES/$NUM_REPORTS
-  echo -e $NUM_OCCURANCES "\t" $name >> LT/out/overview
-  #echo grep "$l" LT/out/list 
-  #grep $l LT/out/GDB
+  echo -e $NUM_OCCURANCES "\t" $name >> $LT/out/overview
+  #echo grep "$l" $LT/out/list 
+  #grep $l $LT/out/GDB
   echo '{{{'
-  grep "$l" -B $UNIQUE_LINE -A 100 LT/out/GDBs | head -n 100 | grep '#[0-9]'
+  grep "$l" -B $UNIQUE_LINE -A 100 $LT/out/GDBs | head -n 100 | grep '#[0-9]'
   echo '}}}'
-  ) | tee LT/out/report_$name
+  ) | tee $LT/out/report_$name
 done   
 
-cat LT/out/overview | sort -rn | tee LT/out/overview_sort
-#cp LT/out/r* LT/share/
-#cp LT/out/o* LT/share/
+cat $LT/out/overview | sort -rn | tee LT/out/overview_sort
+#cp $LT/out/r* $LT/share/
+#cp $LT/out/o* $LT/share/
index b2332c88de09c5b6cc194e927b1952899ea86554..679b683107f1b60d15d1af78d59a8e75d0ae2e86 100755 (executable)
@@ -3,4 +3,6 @@
 #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}*
 
-(bash LT/autolyx & sleep 9 ; xterm -e python LT/test.py)
+LT=development/keystest
+
+(bash $LT/autolyx & sleep 9 ; xterm -e python $LT/test.py)
index e4beca175d718dd2ac8cec49d743cdbc46d86e1f..6a6a09f198136835504a6dbde50d88f796b5f818 100755 (executable)
@@ -2,7 +2,7 @@
 #This script generated hundreds of random keypresses per second,
 #  and sends them to the lyx window
 #It requires xvkbd and wmctrl
-#It generates a log of the KEYCODES it sends as LT/out/KEYCODES
+#It generates a log of the KEYCODES it sends as development/keystest/out/KEYCODES
 
 import random
 import os 
@@ -43,5 +43,5 @@ while True:
   for k in range(1,80):
        keystr=keystr+keycode[random.randint(1,len(keycode))-1]
   os.system("wmctrl -R LyX && xvkbd -xsendevent -text '"+keystr+"';sleep 1")
-  #os.system("echo KEYCODES: '"+keystr+"' >> LT/out/GDB")
-  os.system("echo `date +%s`: '"+keystr+"' >> LT/out/KEYCODES")
+  #os.system("echo KEYCODES: '"+keystr+"' >> development/keystest/out/GDB")
+  os.system("echo `date +%s`: '"+keystr+"' >> development/keystest/out/KEYCODES")