]> git.lyx.org Git - features.git/blob - development/autotests/single-test.sh
Avoid confusing the window name of a LyX instance with the one of
[features.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 export LYX_WINDOW_NAME=$(wmctrl -l | grep -v Mozilla | grep -v Firefox | grep LyX | sed -e 's/.*\(LyX: .*\)$/\1/')
20 export MAX_LOOPS=1
21 export LYX_EXE=${LYX_EXE:-../../src/lyx}
22
23 $KEYTEST