lyx_mirror/development/autotests/findadv-01-in.txt
Tommaso Cucinotta 5f50ae8f08 Added basic automated testing capability, based on the MonKey Test (keytest.py) by McCabe-Dansted.
As of now, I plan to add a few regression tests for the Advanced Find & Replace using this engine.
It can be used for automated testing of other LyX subsystems as well. Just write your own *-in.txt
scripts and add them into the autotests/ folder.

TODOs:
- perhaps simplify keytest.py
- check how this behaves under various types of failure of the test
  (e.g., LyX crashing, hanging, ...) just to be sure it goes on with
  the other tests anyway.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37364 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-29 14:42:53 +00:00

13 lines
338 B
Plaintext

# After replacing with something that matches the search pattern, the next
# match should not consider the just replaced text (#4388)
#
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
KK: aaa\[Home]
KK: \CF
KK: a\[Tab]
KK: aba\[Return]\[Return]\[Return]
KK: \Afs
KK: \Ax
KK: buffer-export latex\[Return]
TestEnd grep "^abaabaa$" test.tex