Remove the need of specific language packs for keytests

The command pcregrep failed trying to set locales to
not installed language pack.
This commit is contained in:
Kornel Benko 2015-03-09 09:41:34 +01:00
parent a78340e302
commit 0ed7f301ea
24 changed files with 99 additions and 19 deletions

View File

@ -7,7 +7,9 @@ KK: \Cs
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
Lang it_IT.utf8
TestBegin test2.lyx -dbg find > lyx-log2.txt 2>&1
KK: \Cm
KK: x^2 -x^2\C\[Home]
@ -16,4 +18,5 @@ KK: \CF
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

View File

@ -14,4 +14,5 @@ KK: x^2n\[Return]\[Return]
KK: \Cs
KK: \Ax
KK: buffer-export latex\[Return]
Lang C
TestEnd grep '^\$x\^{2n}\$$' test.tex

View File

@ -10,8 +10,10 @@ KK: \Az\Ag\Ae
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
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
KK: \CF
# Uncheck ignore format
@ -19,4 +21,5 @@ KK: \Az\Ag\Ae
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

View File

@ -1,26 +1,30 @@
# Basic test for searching with par-style awareness
Lang it_IT.utf8
Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
KK: foo\[Return]
KK: \Ap2
KK: foo\[Return]
KK: \Aps
KK: foo\C\[Home]
KK: \Cs
KK: \CF
KK: \Axbuffer-write\[Return]
KK: \Axdialog-show findreplaceadv\[Return]
# Uncheck ignore format
KK: \Az\Ag\Ae
KK: \At\Ai\Ah
KK: \Aj
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
#
Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log2.txt 2>&1
KK: \C\[Home]
KK: \CF
KK: \Axdialog-show findreplaceadv\[Return]
# Uncheck ignore format
KK: \Az\Ag\Ae
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

View File

@ -1,27 +1,31 @@
# Basic test for searching with par-style awareness
Lang it_IT.utf8
Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
KK: foo bar\[Return]
#select itemized
KK: \Apb
KK: foo bar\[Return]
KK: \Aps
KK: foo bar\C\[Home]
KK: \Cs
KK: \CF
KK: \Axbuffer-write\[Return]
KK: \Axdialog-show findreplaceadv\[Return]
# Uncheck ignore format
KK: \Az\Ag\Ae
KK: \At\Ai\Ah
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
#
Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log2.txt 2>&1
KK: \C\[Home]
KK: \CF
# Uncheck ignore format
KK: \Az\Ag\Ae
KK: \At\Ai\Ah
KK: \Apb
KK: bar\[Return]\[Return]
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

View File

@ -1,27 +1,32 @@
# Basic test for searching with regular expressions
Lang it_IT.utf8
Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
KK: Nel mezzo del cammin di nostra vita\[Return]
KK: mi ritrovai per una selva oscura\C\[Home]
KK: \Cs
KK: \CF
KK: \Axbuffer-write\[Return]
KK: \Axdialog-show findreplaceadv\[Return]
KK: o\Axregexp-mode\[Return].* a\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 8\n with len: 8' lyx-log.txt
Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log2.txt 2>&1
KK: \C\[Home]\CF
KK: \C\[Home]\Axdialog-show findreplaceadv\[Return]
KK: o\Axregexp-mode\[Return][[:word:]]* a
KK: \Al\Ar
KK: \Ac\Aj
KD: 500
KK: \[Return]
KD: 100
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 1 pos: 26\n with len: 6' lyx-log2.txt
Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log3.txt 2>&1
KK: \C\[Home]\CF
KK: \Axregexp-mode\[Return].* \Al\Ar\[Return]\[Return]\[Return]
KK: \C\[Home]\Axdialog-show findreplaceadv\[Return]
KK: \Axregexp-mode\[Return].* \Ac\Aj\[Return]\[Return]\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 10\n with len: 3' lyx-log3.txt

View File

@ -13,8 +13,10 @@ KK: \Az\Ag\Ae
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
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
KK: \CF
# Uncheck ignore format
@ -22,4 +24,5 @@ KK: \Az\Ag\Ae
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

View File

@ -11,12 +11,15 @@ KK: \CF
KK: \Az\Ag\Ae
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
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
KK: \CF
# Uncheck ignore format
KK: \Az\Ag\Ae
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

View File

@ -9,8 +9,10 @@ KK: \CF
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
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
KK: \C\[Home]
KK: \CF
@ -19,4 +21,5 @@ KK: \Az\Ag\Ae
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

View File

@ -9,4 +9,5 @@ KK: \CF
KK: a\[Tab]
KK: \Cm\\bar a\[Return]\[Return]
TestEnd
Lang C
Assert ! pcregrep -M 'against.*bar' lyx-log.txt

View File

@ -12,4 +12,5 @@ KK: \Axfootnote-insert\[Return]
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

View File

@ -11,8 +11,10 @@ KK: \Az\Ag\Ae
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
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
KK: \CF
# Uncheck ignore format
@ -20,18 +22,23 @@ KK: \Az\Ag\Ae
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
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.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
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.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

View File

@ -11,8 +11,10 @@ KK: \Az\Ag\Ae
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
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
KK: \CF
# Uncheck ignore format
@ -20,18 +22,23 @@ KK: \Az\Ag\Ae
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
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.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
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.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

View File

@ -12,8 +12,10 @@ KK: \Az\Ag\Ae
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
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
KK: \CF
# Uncheck ignore format
@ -21,4 +23,5 @@ KK: \Az\Ag\Ae
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

View File

@ -7,12 +7,15 @@ 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
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
KK: \CF
# Uncheck ignore format
KK: \Az\Ag\Ae
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

View File

@ -7,4 +7,5 @@ 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

View File

@ -7,4 +7,5 @@ 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

View File

@ -12,8 +12,10 @@ KK: \Cs
KK: \Ax
KK: buffer-export latex\[Return]
TestEnd
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
KK: \Cma \Cma \Cma \C\[Home]
KK: \CF
@ -23,4 +25,5 @@ KK: \Cs
KK: \Ax
KK: buffer-export latex\[Return]
TestEnd
Lang C
Assert pcregrep -M '^\$\\frac\{1\}\{a\}\$ \$\\frac\{1\}\{a\}\$ \$a\$' test2.tex

View File

@ -7,14 +7,17 @@ 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
#
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
KK: \CF
# Uncheck ignore format
KK: \Az\Ag\Ae
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
# Finding special latex/regexp chars: [
@ -24,12 +27,15 @@ TestBegin test.lyx -dbg find > lyx-log.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
#
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
KK: \CF
# Uncheck ignore format
KK: \Az\Ag\Ae
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

View File

@ -7,14 +7,17 @@ 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
#
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
KK: \CF
# Uncheck ignore format
KK: \Az\Ag\Ae
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
# Finding special latex/regexp chars: %
@ -24,14 +27,17 @@ TestBegin test.lyx -dbg find > lyx-log.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
#
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
KK: \CF
# Uncheck ignore format
KK: \Az\Ag\Ae
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
# Finding special latex/regexp chars: ^
@ -41,12 +47,15 @@ TestBegin test.lyx -dbg find > lyx-log.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
#
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
KK: \CF
# Uncheck ignore format
KK: \Az\Ag\Ae
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

View File

@ -7,14 +7,17 @@ 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
#
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
KK: \CF
# Uncheck ignore format
KK: \Az\Ag\Ae
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
# Finding special latex/regexp chars: }
@ -24,12 +27,15 @@ TestBegin test.lyx -dbg find > lyx-log.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
#
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
KK: \CF
# Uncheck ignore format
KK: \Az\Ag\Ae
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

View File

@ -9,4 +9,5 @@ KK: \CF
KK: \Az\Ag\Ae
KK: \Ce\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

View File

@ -14,4 +14,5 @@ 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

View File

@ -8,4 +8,5 @@ KK: \CF
KK: \Az\Ag\Ae
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