keytests: small improvements in test speed

This commit is contained in:
Kornel Benko 2017-04-24 17:43:39 +02:00
parent 0cda6808d7
commit 54f2d0ee22
6 changed files with 20 additions and 5 deletions

View File

@ -4,6 +4,7 @@ Lang en_US.utf8
TestBegin ../bug-7673.lyx > lyx-log.txt 2>&1 TestBegin ../bug-7673.lyx > lyx-log.txt 2>&1
KK: \Ax KK: \Ax
# 'outline-in' was needed to reproduce the crash on some commits when bisecting # 'outline-in' was needed to reproduce the crash on some commits when bisecting
KD: 1
KK: command-sequence repeat 3 char-forward; outline-in; down; down\[Return] KK: command-sequence repeat 3 char-forward; outline-in; down; down\[Return]
TestEnd TestEnd
Assert ! pcregrep -M 'SIGSEGV' lyx-log.txt Assert ! pcregrep -M 'SIGSEGV' lyx-log.txt

View File

@ -3,5 +3,6 @@
Lang en_US.utf8 Lang en_US.utf8
TestBegin > lyx-log.txt 2>&1 TestBegin > lyx-log.txt 2>&1
KK: \Ax KK: \Ax
KD: 1
KK: command-sequence buffer-new; layout Itemize; self-insert a; paragraph-break; depth-increment; self-insert b; up; char-delete-backward; down\[Return] KK: command-sequence buffer-new; layout Itemize; self-insert a; paragraph-break; depth-increment; self-insert b; up; char-delete-backward; down\[Return]
TestEnd TestEnd

View File

@ -3,5 +3,6 @@
Lang en_US.utf8 Lang en_US.utf8
TestBegin ../bug-8370.lyx > lyx-log.txt 2>&1 TestBegin ../bug-8370.lyx > lyx-log.txt 2>&1
KK: \Ax KK: \Ax
KD: 1
KK: command-sequence change-next; change-reject; change-next\[Return] KK: command-sequence change-next; change-reject; change-next\[Return]
TestEnd TestEnd

View File

@ -1,10 +1,12 @@
Lang en_US.utf8 Lang en_US.utf8
TestBegin ../bug-8684.lyx > lyx-log1.txt 2>&1 TestBegin ../bug-8684.lyx > lyx-log1.txt 2>&1
KK: \Ax KK: \Ax
KD: 1
KK: command-sequence change-next; change-reject; change-next\[Return] KK: command-sequence change-next; change-reject; change-next\[Return]
TestEnd TestEnd
TestBegin ../bug-8684.lyx > lyx-log2.txt 2>&1 TestBegin ../bug-8684.lyx > lyx-log2.txt 2>&1
KK: \Ax KK: \Ax
KD: 1
KK: command-sequence char-forward; change-next\[Return] KK: command-sequence char-forward; change-next\[Return]
TestEnd TestEnd

View File

@ -1,4 +1,5 @@
# Test export lyx-icon-info # Test export lyx-icon-info
# creates lib/images/math-mode.pdf in lyx-source tree, but it should not
# #
# #
@ -7,6 +8,8 @@ TestBegin -dbg files test.lyx > lyx-log.txt 2>&1
KK: \Axinfo-insert icon math-mode\[Return] KK: \Axinfo-insert icon math-mode\[Return]
KK: \Axbuffer-export luatex\[Return] KK: \Axbuffer-export luatex\[Return]
KK: \[Tab]\[Return] KK: \[Tab]\[Return]
KK: \Axbuffer-write\[Return]
KK: \[Tab]\[Return]
TestEnd TestEnd
Lang C Lang C
Assert ! pcregrep -M "support/FileName.cpp .* creating path '/.*/lib/images'" lyx-log.txt Assert ! pcregrep -M "support/FileName.cpp .* creating path '/.*/lib/images'" lyx-log.txt

View File

@ -6,7 +6,9 @@ KK: Nel mezzo del cammin di nostra vita\[Return]
KK: mi ritrovai per una selva oscura\C\[Home] KK: mi ritrovai per una selva oscura\C\[Home]
KK: \Axbuffer-write\[Return] KK: \Axbuffer-write\[Return]
KK: \Axdialog-show findreplaceadv\[Return] KK: \Axdialog-show findreplaceadv\[Return]
KK: o\Axregexp-mode\[Return].* a\[Return] KK: o
KK: \Axregexp-mode\[Return]
KK: .* a\[Return]
TestEnd TestEnd
Lang C 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' lyx-log.txt
@ -14,11 +16,13 @@ Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 8\n with len: 8' l
Lang sk_SK.utf8 Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log2.txt 2>&1 TestBegin test.lyx -dbg find > lyx-log2.txt 2>&1
KK: \C\[Home]\Axdialog-show findreplaceadv\[Return] KK: \C\[Home]\Axdialog-show findreplaceadv\[Return]
KK: o\Axregexp-mode\[Return][\\w]* a KK: o
KK: \Axregexp-mode\[Return]
KK: [\\w]* a
# select whole words
KK: \Ac\Ac KK: \Ac\Ac
KD: 500 # search next
KK: \Al KK: \Al
KD: 100
TestEnd TestEnd
Lang C 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' lyx-log2.txt
@ -26,7 +30,10 @@ Assert pcregrep -M 'Putting selection at .*idx: 0 par: 1 pos: 26\n with len: 6'
Lang sk_SK.utf8 Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log3.txt 2>&1 TestBegin test.lyx -dbg find > lyx-log3.txt 2>&1
KK: \C\[Home]\Axdialog-show findreplaceadv\[Return] KK: \C\[Home]\Axdialog-show findreplaceadv\[Return]
KK: \Axregexp-mode\[Return].* \Ac\Ac\Al\Al\Al KK: \Axregexp-mode\[Return]
KK: .* \Ac\Ac
KK: \Al\Al\Al
KK: \[Tab]\[Return]
TestEnd TestEnd
Lang C 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' lyx-log3.txt