]> git.lyx.org Git - lyx.git/blob - development/autotests/single-test.sh
More precise identification of the lyx window (by id, instead of the buggy by title).
[lyx.git] / development / autotests / single-test.sh
1 #!/bin/bash
2
3 # This script invokes the keytest.py script with the simple set-up needed
4 # to re-run deterministic regression tests that one would like to have.
5 #
6 # Usage: run-test.sh <test-in.txt>
7 #
8 # See the hello-world-in.txt for an example syntax and description
9
10 KEYTEST=${KEYTEST:-./keytest.py}
11
12 export KEYTEST_OUTFILE=out.txt
13 export KEYTEST_INFILE=in-sample.txt
14 if [ "$1" != "" ]; then
15     KEYTEST_INFILE="$1";
16 fi
17
18 export MAX_DROP=0
19 if [ "$(pidof lyx)" != "" ]; then
20     export LYX_PID=$(pidof lyx)
21     export LYX_WINDOW_NAME=$(wmctrl -l | grep " $LYX_PID " | cut -d ' ' -f 1);
22 fi
23 export MAX_LOOPS=1
24 export LYX_EXE=${LYX_EXE:-../../src/lyx}
25
26 $KEYTEST