From 54f2d0ee22ef308d42ba37460b18637267a7f35f Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Mon, 24 Apr 2017 17:43:39 +0200 Subject: [PATCH] keytests: small improvements in test speed --- development/autotests/bug-7673-in.txt | 1 + development/autotests/bug-7673b-in.txt | 1 + development/autotests/bug-8370-in.txt | 1 + development/autotests/bug-8684-in.txt | 2 ++ development/autotests/bug-export-latex-in.txt | 3 +++ development/autotests/findadv-08-in.txt | 17 ++++++++++++----- 6 files changed, 20 insertions(+), 5 deletions(-) diff --git a/development/autotests/bug-7673-in.txt b/development/autotests/bug-7673-in.txt index ceb3bfd6f1..dad630b1f6 100644 --- a/development/autotests/bug-7673-in.txt +++ b/development/autotests/bug-7673-in.txt @@ -4,6 +4,7 @@ Lang en_US.utf8 TestBegin ../bug-7673.lyx > lyx-log.txt 2>&1 KK: \Ax # '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] TestEnd Assert ! pcregrep -M 'SIGSEGV' lyx-log.txt diff --git a/development/autotests/bug-7673b-in.txt b/development/autotests/bug-7673b-in.txt index f3e359504f..7dae139f03 100644 --- a/development/autotests/bug-7673b-in.txt +++ b/development/autotests/bug-7673b-in.txt @@ -3,5 +3,6 @@ Lang en_US.utf8 TestBegin > lyx-log.txt 2>&1 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] TestEnd diff --git a/development/autotests/bug-8370-in.txt b/development/autotests/bug-8370-in.txt index c3247ab786..78e554a2ed 100644 --- a/development/autotests/bug-8370-in.txt +++ b/development/autotests/bug-8370-in.txt @@ -3,5 +3,6 @@ Lang en_US.utf8 TestBegin ../bug-8370.lyx > lyx-log.txt 2>&1 KK: \Ax +KD: 1 KK: command-sequence change-next; change-reject; change-next\[Return] TestEnd diff --git a/development/autotests/bug-8684-in.txt b/development/autotests/bug-8684-in.txt index 9954f79b2f..c6b5224ba4 100644 --- a/development/autotests/bug-8684-in.txt +++ b/development/autotests/bug-8684-in.txt @@ -1,10 +1,12 @@ Lang en_US.utf8 TestBegin ../bug-8684.lyx > lyx-log1.txt 2>&1 KK: \Ax +KD: 1 KK: command-sequence change-next; change-reject; change-next\[Return] TestEnd TestBegin ../bug-8684.lyx > lyx-log2.txt 2>&1 KK: \Ax +KD: 1 KK: command-sequence char-forward; change-next\[Return] TestEnd diff --git a/development/autotests/bug-export-latex-in.txt b/development/autotests/bug-export-latex-in.txt index b45c81552d..23264b9310 100644 --- a/development/autotests/bug-export-latex-in.txt +++ b/development/autotests/bug-export-latex-in.txt @@ -1,4 +1,5 @@ # 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: \Axbuffer-export luatex\[Return] KK: \[Tab]\[Return] +KK: \Axbuffer-write\[Return] +KK: \[Tab]\[Return] TestEnd Lang C Assert ! pcregrep -M "support/FileName.cpp .* creating path '/.*/lib/images'" lyx-log.txt diff --git a/development/autotests/findadv-08-in.txt b/development/autotests/findadv-08-in.txt index c77ddd4a6a..a0f6d952b2 100644 --- a/development/autotests/findadv-08-in.txt +++ b/development/autotests/findadv-08-in.txt @@ -6,7 +6,9 @@ KK: Nel mezzo del cammin di nostra vita\[Return] KK: mi ritrovai per una selva oscura\C\[Home] KK: \Axbuffer-write\[Return] KK: \Axdialog-show findreplaceadv\[Return] -KK: o\Axregexp-mode\[Return].* a\[Return] +KK: o +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 @@ -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 TestBegin test.lyx -dbg find > lyx-log2.txt 2>&1 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 -KD: 500 +# search next KK: \Al -KD: 100 TestEnd Lang C 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 TestBegin test.lyx -dbg find > lyx-log3.txt 2>&1 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 Lang C Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 10\n with len: 3' lyx-log3.txt