lyx_mirror/development/keystest
Pavel Sanda ce4b91c109 Next keystest patch from John McCabe-Dansted.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32820 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-06 22:11:59 +00:00
..
add_write_perms.sh New keytest version from John McCabe-Dansted 2010-01-02 21:46:11 +00:00
autolyx New keytest version from John McCabe-Dansted 2010-01-02 21:46:11 +00:00
cache-bisect.py Next patch for keystest from John McCabe-Dansted. 2009-10-03 23:07:44 +00:00
cache-bisect.sh Next patch for keystest from John McCabe-Dansted. 2009-10-03 23:07:44 +00:00
doNtimes.sh New keytest version from John McCabe-Dansted 2010-01-02 21:46:11 +00:00
find_in_finals Flags 2009-07-10 15:57:41 +00:00
initXvfb New keytest version from John McCabe-Dansted 2010-01-02 21:46:11 +00:00
keytest.py Next keystest patch from John McCabe-Dansted. 2010-01-06 22:11:59 +00:00
killtest.sh Next patch for keystest from John McCabe-Dansted. 2009-10-03 23:07:44 +00:00
killtestpy.sh Next patch for keystest from John McCabe-Dansted. 2009-10-03 23:07:44 +00:00
list_all_children.sh New keytest version from John McCabe-Dansted 2010-01-02 21:46:11 +00:00
lyx_make.sh Help the clueless user (me). 2009-07-17 21:48:40 +00:00
main.sh Next keystest patch from John McCabe-Dansted. 2010-01-06 22:11:59 +00:00
make_screen_shots.sh New keytest version from John McCabe-Dansted 2010-01-02 21:46:11 +00:00
make_screenshot_html.py Next patch for keystest from John McCabe-Dansted. 2009-10-03 23:07:44 +00:00
maketar.sh Move to the correct directory structure. 2009-06-15 20:20:20 +00:00
README Next keystest patch from John McCabe-Dansted. 2010-01-06 22:11:59 +00:00
report_html.sh Next keystest patch from John McCabe-Dansted. 2010-01-06 22:11:59 +00:00
report.sh Next patch from John McCabe-Dansted. 2009-06-17 17:56:56 +00:00
reproduce.sh New keytest version from John McCabe-Dansted 2010-01-02 21:46:11 +00:00
setup.sh New keytest version from John McCabe-Dansted 2010-01-02 21:46:11 +00:00
shared_functions.sh Next keystest patch from John McCabe-Dansted. 2010-01-06 22:11:59 +00:00
shared_variables.sh Next keystest patch from John McCabe-Dansted. 2010-01-06 22:11:59 +00:00
start_tests.sh Next patch from John McCabe-Dansted. 2009-06-17 17:56:56 +00:00
stock_text Test of brute-force key typing to test lyx for crashes. 2009-06-15 20:20:14 +00:00
TODO Next keystest patch from John McCabe-Dansted. 2010-01-06 22:11:59 +00:00
view1 Fix svn for windows devs 2010-01-02 23:34:27 +00:00
watch_keytest.sh Next keystest patch from John McCabe-Dansted. 2010-01-06 22:11:59 +00:00

--- LyXtest ---

This is a program to spam LyX with millions of randomly generated key
presses, and collect the crash results.

Since the code involves spamming random keypresses, I run it under a special
user "keytest", well away from my main X windows session.

To use this software, first configure it by editing the 
configuration parameters in shared_functions.sh and shared_variables.sh
then run the following:

./setup.sh   # add keytest user and apt-get required files
sudo -H -u keytest -e xterm # Create a xterm for running keytest in
. ./initXvfb # sets up a fake X server for keytest to play in
./main.sh

Note that this bug finding software is itself quite buggy.

CONTENTS:

README: this readme file
report_html.sh: A quick way of generating bug reports and an overview from the logs.
make_screen_shots.sh: a script for making screenshots, if they are missing from output of above.
autolyx: A script to continually restart lyx and collect the bug reports
maketar.sh: Makes this tar file :)
keytest.py: Sends randomly generated keypresses to the LyX window.
killtest: stop the testing
stock_text: The stock test to add to each bug report.
watch_keytest.sh: Dumps various info on what keytest is doing, often run as "watch watch_keytest.sh"

OUTPUTS:

autolyx: Outputs out/*.GDB, a log of all output, including backtraces.
keytest.py: Outputs out/*.KEYCODES, a list of all keycodes sent to LyX

TIPS:
To reduce the degree to which keytest writes to your HDD, you may want to run 
   mount -t tmpfs -o size=50m tmpfs /home/keytest/kt.dir
as root

AUTHOR:
Copyright (C) 2009 John McCabe-Dansted, gmatht at gmail dot com.
Published under the Gnu General Public Licence, version 2 or later.