Keytests: Make logfiles unique.

Each test created log-files, but since they were not uniq it was difficult
to check what went wrong for a failed test.
This commit is contained in:
Kornel Benko 2017-05-07 13:45:48 +02:00
parent dd7555af0e
commit 948020d9a3
40 changed files with 133 additions and 136 deletions

View File

@ -1,8 +1,8 @@
# see http://www.lyx.org/trac/ticket/7673#comment:15
#
Lang en_US.utf8
TestBegin ../bug-7673.lyx > lyx-log.txt 2>&1
TestBegin ../bug-7673.lyx > bug-7673.loga.txt 2>&1
# 'outline-in' was needed to reproduce the crash on some commits when bisecting
KK: \Axcommand-sequence repeat 3 char-forward; outline-in; down; down\[Return]
TestEnd
Assert ! pcregrep -M 'SIGSEGV' lyx-log.txt
Assert ! pcregrep -M 'SIGSEGV' bug-7673.loga.txt

View File

@ -1,6 +1,6 @@
# based on the steps to reproduce #7673 in the original report
#
Lang en_US.utf8
TestBegin > lyx-log.txt 2>&1
TestBegin > bug-7673b.loga.txt 2>&1
KK: \Axcommand-sequence buffer-new; layout Itemize; self-insert a; paragraph-break; depth-increment; self-insert b; up; char-delete-backward; down\[Return]
TestEnd

View File

@ -1,6 +1,6 @@
# .lyx file is from http://www.lyx.org/trac/ticket/8370#comment:8
#
Lang en_US.utf8
TestBegin ../bug-8370.lyx > lyx-log.txt 2>&1
TestBegin ../bug-8370.lyx > bug-8370.loga.txt 2>&1
KK: \Axcommand-sequence change-next; change-reject; change-next\[Return]
TestEnd

View File

@ -4,7 +4,7 @@
# is cleared after the next test starts.
Lang en_US.utf8
TestBegin test.lyx > lyx-log.txt 2>&1
TestBegin test.lyx > bug-8482.loga.txt 2>&1
KK: \Cm
KK: \Ai
TestEnd

View File

@ -2,8 +2,8 @@
#
Lang en_US.utf8
TestBegin > lyx-log.txt 2>&1
TestBegin > bug-8540.loga.txt 2>&1
KK: \Axlyxrc-apply \\spellchecker enchant\[Return]
KK: \Axlyxrc-apply \\spellchecker enchant\[Return]
TestEnd
Assert ! pcregrep -M 'SIGSEGV' lyx-log.txt
Assert ! pcregrep -M 'SIGSEGV' bug-8540.loga.txt

View File

@ -1,8 +1,8 @@
Lang en_US.utf8
TestBegin ../bug-8684.lyx > lyx-log1.txt 2>&1
TestBegin ../bug-8684.lyx > bug-8684.loga.txt 2>&1
KK: \Axcommand-sequence change-next; change-reject; change-next\[Return]
TestEnd
TestBegin ../bug-8684.lyx > lyx-log2.txt 2>&1
TestBegin ../bug-8684.lyx > bug-8684.logb.txt 2>&1
KK: \Axcommand-sequence char-forward; change-next\[Return]
TestEnd

View File

@ -4,7 +4,7 @@
#
Lang C
TestBegin -dbg files test.lyx > lyx-log.txt 2>&1
TestBegin -dbg files test.lyx > bug-export-latex.loga.txt 2>&1
KK: \Axinfo-insert icon math-mode\[Return]
KK: \Axbuffer-export luatex\[Return]
KK: \[Tab]\[Return]
@ -12,5 +12,5 @@ KK: \Axbuffer-write\[Return]
KK: \[Tab]\[Return]
TestEnd
Lang C
Assert ! pcregrep -M "support/FileName.cpp .* creating path '/.*/lib/images'" lyx-log.txt
Assert ! pcregrep -M 'support/FileName.cpp .* Checksumming "/.*/lib/images/.*math-mode.pdf" .*lasted ' lyx-log.txt
Assert ! pcregrep -M "support/FileName.cpp .* creating path '/.*/lib/images'" bug-export-latex.loga.txt
Assert ! pcregrep -M 'support/FileName.cpp .* Checksumming "/.*/lib/images/.*math-mode.pdf" .*lasted ' bug-export-latex.loga.txt

View File

@ -2,9 +2,9 @@
#
Lang C
TestBegin test.lyx > lyx-log.txt 2>&1
TestBegin test.lyx > bug-math-undo.loga.txt 2>&1
KK: \Amm\\frac \\sqrt \Cz
KK: \[Return]
TestEnd
Lang C
Assert ! pcregrep -M 'SIGSEGV' lyx-log.txt
Assert ! pcregrep -M 'SIGSEGV' bug-math-undo.loga.txt

View File

@ -2,7 +2,7 @@
# match should not consider the just replaced text (#4388)
#
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-01.loga.txt 2>&1
KK: aaa\[Home]
KK: \CF
KK: a\[Tab]

View File

@ -1,14 +1,13 @@
# Basic test on refactoring of mathematics notation
#
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-02.loga.txt 2>&1
KK: \Cm
KK: x^(a) +\\frac 1+x^(a) \[Down]1-x^(a) \C\[Home]
KK: \CF
KK: \Cmx^(a) \[Tab]
KK: \Cmx_a
KK: \[Return]\[Return]\[Return]
KD: 60
KK: \Cs
KK: \Axbuffer-export latex\[Return]
Lang C

View File

@ -1,6 +1,6 @@
#
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-03.loga.txt 2>&1
KK: \Cm
KK: x^2 -x^2\C\[Home]
KK: \Cs
@ -8,9 +8,9 @@ KK: \CF
KK: \Cm
KK: x^2\[Return]
Lang C
TestEnd pcregrep -M "Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 0" lyx-log.txt
TestEnd pcregrep -M "Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 0" findadv-03.loga.txt
Lang it_IT.utf8
TestBegin test2.lyx -dbg find > lyx-log2.txt 2>&1
TestBegin test2.lyx -dbg find > findadv-03.logb.txt 2>&1
KK: \Cm
KK: x^2 -x^2\C\[Home]
KK: \Cs
@ -19,4 +19,4 @@ KK: \Cm
KK: x^2\[Return]\[Return]
TestEnd
Lang C
Assert pcregrep -M "Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 2" lyx-log2.txt
Assert pcregrep -M "Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 2" findadv-03.logb.txt

View File

@ -1,7 +1,7 @@
# Regression test for #7245
#
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-04.loga.txt 2>&1
KK: \Cm
KK: x^2 \[Return]
KK: \Cm

View File

@ -1,7 +1,7 @@
# Basic test for format-aware searching
#
Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-05.loga.txt 2>&1
KK: foo \Cefoo foo\Ce foo\C\[Home]
KK: \Cs
KK: \CF
@ -11,10 +11,10 @@ KK: \Ce
KK: foo\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 4\n with len: 3' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 4\n with len: 3' findadv-05.loga.txt
Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-05.logb.txt 2>&1
KK: \CF
# Uncheck ignore format
KK: \At\Ai\Ah
@ -22,4 +22,4 @@ KK: \Ce
KK: foo\[Return]\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 8\n with len: 3' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 8\n with len: 3' findadv-05.logb.txt

View File

@ -1,7 +1,7 @@
# Basic test for searching with par-style awareness
Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-06.loga.txt 2>&1
KK: foo\[Return]
KK: \Ap2
KK: foo\[Return]
@ -16,10 +16,10 @@ KK: \Ap2
KK: foo\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 1 pos: 0\n with len: 3' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 1 pos: 0\n with len: 3' findadv-06.loga.txt
#
Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log2.txt 2>&1
TestBegin test.lyx -dbg find > findadv-06.logb.txt 2>&1
KK: \C\[Home]
KK: \Axdialog-show findreplaceadv\[Return]
# Uncheck ignore format
@ -27,4 +27,4 @@ KK: \At\Ai\Ah
KK: foo\[Return]\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 2 pos: 0\n with len: 3' lyx-log2.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 2 pos: 0\n with len: 3' findadv-06.logb.txt

View File

@ -1,7 +1,7 @@
# Basic test for searching with par-style awareness
Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-07.loga.txt 2>&1
KK: foo bar\[Return]
#select itemized
KK: \Apb
@ -16,10 +16,10 @@ KK: \Apb
KK: foo\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 1 pos: 0\n with len: 3' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 1 pos: 0\n with len: 3' findadv-07.loga.txt
#
Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log2.txt 2>&1
TestBegin test.lyx -dbg find > findadv-07.logb.txt 2>&1
KK: \C\[Home]
KK: \CF
# Uncheck ignore format
@ -28,4 +28,4 @@ KK: \Apb
KK: bar\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 1 pos: 4\n with len: 3' lyx-log2.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 1 pos: 4\n with len: 3' findadv-07.logb.txt

View File

@ -1,7 +1,7 @@
# Basic test for searching with regular expressions
Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-08.loga.txt 2>&1
KK: Nel mezzo del cammin di nostra vita\[Return]
KK: mi ritrovai per una selva oscura\C\[Home]
KK: \Axbuffer-write\[Return]
@ -11,29 +11,30 @@ KK: \Axregexp-mode\[Return]
KK: .* a\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 8\n with len: 8' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 8\n with len: 8' findadv-08.loga.txt
Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log2.txt 2>&1
TestBegin test.lyx -dbg find > findadv-08.logb.txt 2>&1
KK: \C\[Home]\Axdialog-show findreplaceadv\[Return]
KK: o
KK: \Axregexp-mode\[Return]
KK: [\\w]* a
# select whole words
KD: 100
KK: \Ac\Ac
# search next
KK: \Al
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 1 pos: 26\n with len: 6' lyx-log2.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 1 pos: 26\n with len: 6' findadv-08.logb.txt
Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log3.txt 2>&1
TestBegin test.lyx -dbg find > findadv-08.logc.txt 2>&1
KK: \C\[Home]\Axdialog-show findreplaceadv\[Return]
KK: \Axregexp-mode\[Return]
KK: .* \Ac\Ac
KK: \Al\Al\Al
KK: \[Tab]\[Return]
#KK: \[Tab]\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 10\n with len: 3' lyx-log3.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 10\n with len: 3' findadv-08.logc.txt

View File

@ -1,12 +1,9 @@
# Test for searching with regular expressions
Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-09.loga.txt 2>&1
KK: \Apb
KK: one\[Return]
KK: two\[Return]
KK: three\C\[Home]
KK: \Cs
KK: one\[Return]two\[Return]three\C\[Home]\Cs
KK: \CF
# Uncheck ignore format
KK: \At\Ai\Ah
@ -14,10 +11,10 @@ KK: \Apb
KK: \Axregexp-mode\[Return][a-z]* \[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n with len: 3' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n with len: 3' findadv-09.loga.txt
Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-09.logb.txt 2>&1
KK: \CF
# Uncheck ignore format
KK: \At\Ai\Ah
@ -25,4 +22,4 @@ KK: \Apb
KK: \Axregexp-mode\[Return][a-z]* \[Return]\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 1 pos: 0\n with len: 3' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 1 pos: 0\n with len: 3' findadv-09.logb.txt

View File

@ -2,7 +2,7 @@
# when ignoring format
Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-10.loga.txt 2>&1
KK: This is LyX,\[Return]
KK: a WYSIWYG LaTeX editor.\C\[Home]
KK: \Cs
@ -12,14 +12,14 @@ KK: \At\Ai\Ah
KK: LyX\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 8\n with len: 3' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 8\n with len: 3' findadv-10.loga.txt
Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-10.logb.txt 2>&1
KK: \CF
# Uncheck ignore format
KK: \At\Ai\Ah
KK: LaTeX\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 1 pos: 10\n with len: 5' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 1 pos: 10\n with len: 5' findadv-10.logb.txt

View File

@ -1,7 +1,7 @@
# Inspired by #7363.
#
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-11.loga.txt 2>&1
KK: \Cm
KK: x_v \C\[Home]
KK: \Cs
@ -10,10 +10,10 @@ KK: \Cm
KK: v\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 0\n.*idx: 1 par: 0 pos: 0\n with len: 1' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 0\n.*idx: 1 par: 0 pos: 0\n with len: 1' findadv-11.loga.txt
Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-11.logb.txt 2>&1
KK: \C\[Home]
KK: \CF
# Uncheck ignore format
@ -22,4 +22,4 @@ KK: \Cm
KK: v\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 0\n.*idx: 1 par: 0 pos: 0\n with len: 1' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 0\n.*idx: 1 par: 0 pos: 0\n with len: 1' findadv-11.logb.txt

View File

@ -3,11 +3,11 @@
# (#7442)
#
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-12.loga.txt 2>&1
KK: a\C\[Home]
KK: \CF
KK: a\[Tab]
KK: \Cm\\bar a\[Return]\[Return]
TestEnd
Lang C
Assert ! pcregrep -M 'against.*bar' lyx-log.txt
Assert ! pcregrep -M 'against.*bar' findadv-12.loga.txt

View File

@ -1,7 +1,7 @@
# Finding footnotes
#
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-13.loga.txt 2>&1
KK: \Axfootnote-insert\[Return]
# Work around a little UI bug/non-determinism in cursor position after LFUN
KK: \C\[Home]\[Right]
@ -13,4 +13,4 @@ KK: \C\[Home]\[Right]
KK: foo\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n with len: 1' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n with len: 1' findadv-13.loga.txt

View File

@ -1,7 +1,7 @@
# Finding displayed maths with ignore-format on&off (might affect #7596)
#
Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-14.loga.txt 2>&1
KK: \Axmath-display\[Return]
KK: x^2 +x^2\C\[Home]
KK: \Cs
@ -12,10 +12,10 @@ KK: \Axmath-display\[Return]
KK: x^2\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 0\n with len: 1' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 0\n with len: 1' findadv-14.loga.txt
Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-14.logb.txt 2>&1
KK: \CF
# Uncheck ignore format
KK: \At\Ai\Ah
@ -23,22 +23,22 @@ KK: \Axmath-display\[Return]
KK: x^2\[Return]\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 2\n with len: 1' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 2\n with len: 1' findadv-14.logb.txt
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-14.logc.txt 2>&1
KK: \CF
KK: \Axmath-display\[Return]
KK: x^2\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 0\n with len: 1' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 0\n with len: 1' findadv-14.logc.txt
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-14.logd.txt 2>&1
KK: \CF
KK: \Axmath-display\[Return]
KK: x^2\[Return]\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 2\n with len: 1' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 2\n with len: 1' findadv-14.logd.txt

View File

@ -1,7 +1,7 @@
# Finding numbered maths with ignore-format on&off (might affect #7596)
#
Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-15.loga.txt 2>&1
KK: \CM\Axmath-number-toggle\[Return]
KK: x^2 +x^2\C\[Home]
KK: \Cs
@ -12,10 +12,10 @@ KK: \CM\Axmath-number-toggle\[Return]
KK: x^2\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 0\n with len: 1' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 0\n with len: 1' findadv-15.loga.txt
Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-15.logb.txt 2>&1
KK: \CF
# Uncheck ignore format
KK: \At\Ai\Ah
@ -23,22 +23,22 @@ KK: \CM\Axmath-number-toggle\[Return]
KK: x^2\[Return]\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 2\n with len: 1' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 2\n with len: 1' findadv-15.logb.txt
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-15.logc.txt 2>&1
KK: \CF
KK: \CM\Axmath-number-toggle\[Return]
KK: x^2\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 0\n with len: 1' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 0\n with len: 1' findadv-15.logc.txt
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-15.logd.txt 2>&1
KK: \CF
KK: \CM\Axmath-number-toggle\[Return]
KK: x^2\[Return]\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 2\n with len: 1' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 2\n with len: 1' findadv-15.logd.txt

View File

@ -2,7 +2,7 @@
# (gather environment comes in the *-form after mutate)
#
Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-16.loga.txt 2>&1
KK: \CM\Axmath-mutate gather\[Return]
KK: x^2 +x^2\C\[Home]
KK: \Cs
@ -13,10 +13,10 @@ KK: \CM\Axmath-mutate gather\[Return]
KK: x^2\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 0\n with len: 1' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 0\n with len: 1' findadv-16.loga.txt
Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-16.logb.txt 2>&1
KK: \CF
# Uncheck ignore format
KK: \At\Ai\Ah
@ -24,4 +24,4 @@ KK: \CM\Axmath-mutate gather\[Return]
KK: x^2\[Return]\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 2\n with len: 1' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 2\n with len: 1' findadv-16.logb.txt

View File

@ -1,21 +1,21 @@
# Finding consecutive macros in math mode
#
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-17.loga.txt 2>&1
KK: \Cm\\alpha\\beta\\alpha \C\[Home]
KK: \Cs
KK: \CF
KK: \Cm\\beta\\alpha \[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 1\n with len: 2' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 1\n with len: 2' findadv-17.loga.txt
Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-17.logb.txt 2>&1
KK: \CF
# Uncheck ignore format
KK: \At\Ai\Ah
KK: \Cm\\beta\\alpha \[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 1\n with len: 2' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 1\n with len: 2' findadv-17.logb.txt

View File

@ -1,11 +1,11 @@
# Searching for regexp with e.g. \[Backspace]\[Backspace]s finds blanks
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-18.loga.txt 2>&1
KK: a b c\C\[Home]
KK: \Cs
KK: \CF
KK: \Axregexp-mode\[Return]\\s\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 1\n with len: 1' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 1\n with len: 1' findadv-18.loga.txt

View File

@ -1,11 +1,11 @@
# Check that searching for regexp "([a-z]+)\s\1" finds duplicate words.
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-19.loga.txt 2>&1
KK: Hello world world!\C\[Home]
KK: \Cs
KK: \CF
KK: \Axregexp-mode\[Return]([a-z]+)\\s\\1\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 6\n with len: 11' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 6\n with len: 11' findadv-19.loga.txt

View File

@ -3,7 +3,7 @@
#
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-20.loga.txt 2>&1
KK: a a a\C\[Home]
KK: \CF
KK: a\[Tab]
@ -15,7 +15,7 @@ Lang C
Assert pcregrep -M '^\$\\frac\{1\}\{a\}\$ \$\\frac\{1\}\{a\}\$ a' test.tex
Lang it_IT.utf8
TestBegin test2.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test2.lyx -dbg find > findadv-20.logb.txt 2>&1
KK: \Cma \Cma \Cma \C\[Home]
KK: \CF
KK: a\[Tab]

View File

@ -2,7 +2,7 @@
# Test for #8381
Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-21.loga.txt 2>&1
KK: \Apb
KK: one\[Return]
KK: two\[Return]
@ -24,10 +24,10 @@ KK: \Ape
KK: \Axregexp-mode\[Return][a-z]* \[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at cur= inset: .* idx: 0 par: 3 pos: 0\n with len: 4' lyx-log.txt
Assert pcregrep -M 'Putting selection at cur= inset: .* idx: 0 par: 3 pos: 0\n with len: 4' findadv-21.loga.txt
Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log2.txt 2>&1
TestBegin test.lyx -dbg find > findadv-21.logb.txt 2>&1
KK: \CF
# Uncheck ignore format
KK: \At\Ai\Ah
@ -35,4 +35,4 @@ KK: \Apd
KK: \Axregexp-mode\[Return][a-z]*\\s+[a-z]* \[Return]\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at cur= inset: .* idx: 0 par: 7 pos: 3\n with len: 6' lyx-log2.txt
Assert pcregrep -M 'Putting selection at cur= inset: .* idx: 0 par: 7 pos: 3\n with len: 6' findadv-21.logb.txt

View File

@ -2,9 +2,9 @@
# Crash in using function 'word-findadv'
Lang C
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-crash.loga.txt 2>&1
KK: abcd
KK: \Axword-findadv a\[Return]
TestEnd
Lang C
Assert ! pcregrep 'SIGSEGV signal caught' lyx-log.txt
Assert ! pcregrep 'SIGSEGV signal caught' findadv-crash.loga.txt

View File

@ -2,7 +2,7 @@
# when ignoring format
Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-logo.loga.txt 2>&1
KK: This should be a LaTeX logo:
KK: \Axspecialchar-insert lyx\[Return]\[Return]
KK: for a WYSIWYG LaTeX editor.\C\[Home]
@ -14,4 +14,4 @@ KK: \Axspecialchar-insert lyx\[Return]\Ai
KK: \Axspecialchar-insert latex\[Return]\Ae
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 29\n with len: 1' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 29\n with len: 1' findadv-logo.loga.txt

View File

@ -1,41 +1,41 @@
# Finding special latex/regexp chars: (
#
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-re-01.loga.txt 2>&1
KK: \\()[]{}%^#@?*.\C\[Home]
KK: \Cs
KK: \CF
KK: \Axregexp-mode\[Return]\\(\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 1\n with len: 1' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 1\n with len: 1' findadv-re-01.loga.txt
#
Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-re-01.logb.txt 2>&1
KK: \CF
# Uncheck ignore format
KK: \At\Ai\Ah
KK: \Axregexp-mode\[Return]\\(\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 1\n with len: 1' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 1\n with len: 1' findadv-re-01.logb.txt
# Finding special latex/regexp chars: [
#
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-re-01.logc.txt 2>&1
KK: \CF
KK: \Axregexp-mode\[Return]\\[\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 3\n with len: 1' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 3\n with len: 1' findadv-re-01.logc.txt
#
Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-re-01.logd.txt 2>&1
KK: \CF
# Uncheck ignore format
KK: \At\Ai\Ah
KK: \Axregexp-mode\[Return]\\[\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 3\n with len: 1' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 3\n with len: 1' findadv-re-01.logd.txt

View File

@ -1,61 +1,61 @@
# Finding special latex/regexp chars: \
#
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-re-02.loga.txt 2>&1
KK: \\()[]{}%^#@?*.\C\[Home]
KK: \Cs
KK: \CF
KK: \Axregexp-mode\[Return]\\\\\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n with len: 1' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n with len: 1' findadv-re-02.loga.txt
#
Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-re-02.logb.txt 2>&1
KK: \CF
# Uncheck ignore format
KK: \At\Ai\Ah
KK: \Axregexp-mode\[Return]\\\\\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n with len: 1' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n with len: 1' findadv-re-02.logb.txt
# Finding special latex/regexp chars: %
#
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-re-02.logc.txt 2>&1
KK: \CF
KK: \Axregexp-mode\[Return]%\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 7\n with len: 1' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 7\n with len: 1' findadv-re-02.logc.txt
#
Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-re-02.logd.txt 2>&1
KK: \CF
# Uncheck ignore format
KK: \At\Ai\Ah
KK: \Axregexp-mode\[Return]%\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 7\n with len: 1' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 7\n with len: 1' findadv-re-02.logd.txt
# Finding special latex/regexp chars: ^
#
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-re-02.loge.txt 2>&1
KK: \CF
KK: \Axregexp-mode\[Return]\\^\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 8\n with len: 1' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 8\n with len: 1' findadv-re-02.loge.txt
#
Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-re-02.logf.txt 2>&1
KK: \CF
# Uncheck ignore format
KK: \At\Ai\Ah
KK: \Axregexp-mode\[Return]\\^\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 8\n with len: 1' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 8\n with len: 1' findadv-re-02.logf.txt

View File

@ -1,41 +1,41 @@
# Finding special latex/regexp chars: {
#
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-re-03.loga.txt 2>&1
KK: \\()[]{}%^#@?*.\C\[Home]
KK: \Cs
KK: \CF
KK: \Axregexp-mode\[Return]\\{\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 5\n with len: 1' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 5\n with len: 1' findadv-re-03.loga.txt
#
Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-re-03.logb.txt 2>&1
KK: \CF
# Uncheck ignore format
KK: \At\Ai\Ah
KK: \Axregexp-mode\[Return]\\{\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 5\n with len: 1' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 5\n with len: 1' findadv-re-03.logb.txt
# Finding special latex/regexp chars: }
#
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-re-03.logc.txt 2>&1
KK: \CF
KK: \Axregexp-mode\[Return]\\}\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 6\n with len: 1' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 6\n with len: 1' findadv-re-03.logc.txt
#
Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-re-03.logd.txt 2>&1
KK: \CF
# Uncheck ignore format
KK: \At\Ai\Ah
KK: \Axregexp-mode\[Return]\\}\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 6\n with len: 1' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 6\n with len: 1' findadv-re-03.logd.txt

View File

@ -1,7 +1,7 @@
# Finding styles with regexp
Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-re-04.loga.txt 2>&1
KK: Hello \CeHello\C\[Home]
KK: \Cs
KK: \CF
@ -11,4 +11,4 @@ KK: \Ce
KK: \Axregexp-mode\[Return].*\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 6\n with len: 5' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 6\n with len: 5' findadv-re-04.loga.txt

View File

@ -9,10 +9,10 @@
# ask if the cursor started at the beginning of the buffer).
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-re-05.loga.txt 2>&1
KK: \Cm\\frac 1-x\[Down]1+x^2 \C\[Home]
KK: \CF
KK: \Cm\\frac \Axregexp-mode\[Return].* \[Down]1+x^2 \[Return]
TestEnd
Lang C
Assert pcregrep 'raggiunta la fine cercando in avanti' lyx-log.txt
Assert pcregrep 'raggiunta la fine cercando in avanti' findadv-re-05.loga.txt

View File

@ -1,7 +1,7 @@
# Finding regexps within \frac{}
Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
TestBegin test.lyx -dbg find > findadv-re-06.loga.txt 2>&1
KK: \Cm\\frac 1-x\[Down]1+x^2 \C\[Home]
KK: \CF
# Uncheck ignore format (depends on IT language)
@ -9,4 +9,4 @@ KK: \At\Ai\Ah
KK: \Cm\\frac \Axregexp-mode\[Return].* \[Down]1+x^2 \[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n .*idx: 0 par: 0 pos: 0\n with len: 1' lyx-log.txt
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n .*idx: 0 par: 0 pos: 0\n with len: 1' findadv-re-06.loga.txt

View File

@ -1,4 +1,4 @@
Lang en_US.utf8
TestBegin test.lyx > lyx-log.txt 2>&1
TestBegin test.lyx > first-time.loga.txt 2>&1
KK: \[Left]\[Return]
TestEnd

View File

@ -55,7 +55,7 @@
# LaTeX, and verifies that the typed characters are indeed present in the
# exported document.
#
TestBegin test.lyx -dbg key > lyx-log.txt 2>&1
TestBegin test.lyx -dbg key > hello-world.loga.txt 2>&1
KK: Hello World
KK: \Cs
KK: \Axbuffer-export latex\[Return]

View File

@ -2,7 +2,7 @@
# (http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg167716.html)
#
Lang it_IT.utf8
TestBegin test.lyx > lyx-log.txt 2>&1
TestBegin test.lyx > tabular-footnote.loga.txt 2>&1
KK: \Axtabular-insert 1 1\[Return]\[Left]
KK: \Axinset-modify tabular align-decimal\[Return]
KK: \Axfootnote-insert\[Return]