Commit Graph

37 Commits

Author SHA1 Message Date
Kornel Benko
45b61c6ecf 1.) Corrected internal compilation for Libintl
2.) Changed cmake-files accordingly
Patch from Jean-Marc Lasgouttes


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38606 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-06 19:24:54 +00:00
Tommaso Cucinotta
be9a7223c0 Added test for crash in current trunk (i.e., this is failing now).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38478 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-22 22:23:42 +00:00
Tommaso Cucinotta
25e3d90303 Added check for assertions or anomalous exits of LyX on TestEnd.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38477 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-22 22:23:16 +00:00
Tommaso Cucinotta
cd04601b6f A few clarifications, more TODOs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38411 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-16 10:58:20 +00:00
Tommaso Cucinotta
23258f5399 Regression test for #7442.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38384 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-14 22:21:18 +00:00
Vincent van Ravesteijn
eec88b7e5e Revert wrong previous commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37959 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-19 10:34:59 +00:00
Vincent van Ravesteijn
e52af5f897 Simplify logic in InsetRef::latex().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37958 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-19 10:31:43 +00:00
Tommaso Cucinotta
5619a45daf Checks that r37943 keeps doing its job.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37944 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-18 00:48:32 +00:00
Tommaso Cucinotta
1b929a0c45 When killing lyx instances, we may ignore failures of kill and killall (if the process is not found, it exited already).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37734 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-19 21:00:01 +00:00
Tommaso Cucinotta
8faded55d9 Replaced the Ctrl+Shft+r sequences for entering regexp-mode with [Alt+x]regexp-mode[Ret],
as the shortcut has gone.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37667 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-14 20:41:46 +00:00
Tommaso Cucinotta
16ba37879e Added test-case for finding (properly) LyX & LaTeX (special phrases exported
in Paragraph.cpp as the corresponding macros), when ignore format is off.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37601 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-12 11:06:09 +00:00
Tommaso Cucinotta
9e9874c0ab Avoid stop_autotests termination message when it is killed at normal termination of test-case.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37600 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-12 11:05:04 +00:00
Tommaso Cucinotta
ac56711021 Added version suffix to symlinks. Tested with --enable-version-suffix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37598 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-11 23:27:34 +00:00
Tommaso Cucinotta
dcf0eb944e Now the framework works running LyX in the language required by the test
script (if any) also when LyX is not installed on your system
(using a variant of the trick suggested by Enrico, i.e., create a symlink
locale from the LyX sources root to an autotests/locale folder).
At least, it does on Linux.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37589 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-10 22:33:23 +00:00
Tommaso Cucinotta
3596e02d6a Suppress killall output when killing STOP button.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37560 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-08 00:14:23 +00:00
Tommaso Cucinotta
16d57e550f Forgot to terminate the emergency button.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37552 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-07 23:37:34 +00:00
Tommaso Cucinotta
939796f137 Added emergency STOP button in tcl/tk window for immediate & painless termination of the tests.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37551 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-07 23:32:27 +00:00
Tommaso Cucinotta
eede499399 Allowed to set the default typing delay via environment variable.
Improved documentation of usage.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37523 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-06 23:14:49 +00:00
Tommaso Cucinotta
7dba92987c If XVKBD_HACKED env var is not set, then don't try to build any custom xvkbd.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37522 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-06 22:56:02 +00:00
Tommaso Cucinotta
89620e1481 Made use of internal hacked xvkbd optional. Now it is needed and
used only if the XVKBD_HACKED environment var is defined.
Made keytest.py exploit the -wait_idle option of the hacked xvkbd.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37521 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-06 22:50:07 +00:00
Tommaso Cucinotta
3a6bc0b36a More regular expression testing.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37520 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-06 22:48:54 +00:00
Tommaso Cucinotta
252606610c Added -wait_idle option to wait for the target process to idle at each key press.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37519 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-06 22:47:33 +00:00
Tommaso Cucinotta
29c92d79a4 Added proper propagation of Ctrl-C from os.system()-executed command to keytest.py (makes stopping tests easier while they're running).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37518 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-06 22:16:51 +00:00
Tommaso Cucinotta
17f1377baf Saving a doc is faster and more reliable by Ctrl-s, rather than activating a menu (thx Pavel).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37449 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-03 09:13:19 +00:00
Pavel Sanda
eda9616158 fix findadv-03-in.txt
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37441 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-03 00:01:53 +00:00
Tommaso Cucinotta
1f51de3cd1 Added custom xvkbd for avoiding typing into other windows.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37439 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-02 23:18:16 +00:00
Tommaso Cucinotta
ac7572f366 More precise identification of the lyx window (by id, instead of the buggy by title).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37410 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-01 22:57:10 +00:00
Tommaso Cucinotta
705759d678 Added the creation of a custom .lyx folder inside pwd/home/.lyx at
the beginning of the tests (which reconfigures LyX and takes some time),
followed by all of the tests using it. This way, we get only the default
configuration of LyX as a base, without being affected by individual users
custom configurations.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37408 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-01 22:08:07 +00:00
Pavel Sanda
fc1260b0bc Few touches of autotests
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37390 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-31 20:39:35 +00:00
Tommaso Cucinotta
37179bca4b Added test cases for format-aware searching of formatted text.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37380 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-30 19:46:05 +00:00
Tommaso Cucinotta
7e02f60ae6 keytest.py ignores now also whitespaces only lines.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37379 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-30 19:45:17 +00:00
Tommaso Cucinotta
e4df1f08fb Removed stripping of whitespaces from script commands.
Added the capability to ignore empty lines.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37378 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-30 19:44:31 +00:00
Tommaso Cucinotta
090aac89d0 Added Lang command to test cases. Added a couplr of regression tests for Advanced F&R.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37377 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-30 16:01:22 +00:00
Tommaso Cucinotta
cc694943a7 Refined description of syntax.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37376 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-30 16:00:01 +00:00
Tommaso Cucinotta
4d138a9f3d Avoid confusing the window name of a LyX instance with the one of
Thunderbird while displaying LyX mails or Firefox while displaying
LyX web pages.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37375 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-30 15:59:41 +00:00
Tommaso Cucinotta
8ef0abbacc Added Sleep and Assert commands in test scripts.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37374 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-30 15:58:08 +00:00
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