Commit Graph

2146 Commits

Author SHA1 Message Date
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
Enrico Forestieri
32d11e0bf8 lyxpak.py has been moved to lib/scripts.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37515 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-06 18:32:10 +00:00
Richard Heck
5577b5c6f0 Add lyxpak.py to the distribution, and configure it appropriately for export.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37506 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-06 14:50:06 +00:00
Enrico Forestieri
df6df99df8 The sets module is deprecated since Python 2.6, so use the built-in
type set, available as almost drop-in replacement since Python 2.4.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37505 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-05 22:59:01 +00:00
Richard Heck
1aad2779e4 Revert part of r37496. This was wrong.
Probalby we have a better "isLyXFile()" routine for use also in gather_files().



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37504 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-05 14:04:28 +00:00
Richard Heck
9865f85122 Allow lyxpak to work when LyX is run in place.
Note that this should also make lyx2lyx detection a lot easier than 
it was before.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37498 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-04 20:33:52 +00:00
Richard Heck
497a131804 Forgot this.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37497 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-04 20:15:39 +00:00
Richard Heck
a621204d57 Clean up the lyxpak script a bit, towards possible inclusion.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37496 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-04 19:43:52 +00:00
Edwin Leuven
119ea9cd24 support for tabular*
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37471 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-03 23:11:26 +00:00
Jürgen Spitzmüller
f27d5aa9ae * Allow to set language package on a per-document basis (fixes bug 2909).
File format change. Commit approved by Pavel on trac.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37457 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-03 14:17:31 +00:00
Jürgen Spitzmüller
1fc6b4fec0 * FORMAT: document forgotten change.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37453 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-03 10:50:14 +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
Jürgen Spitzmüller
ce657ed4a8 scons_manifest.py: reordering.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37448 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-03 08:05:10 +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
Peter Kümmel
40dcf20b5d cmake: add option to download msvc 10 3rd party libraries
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37370 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-30 10:23:29 +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
Pavel Sanda
42785e6219 Bug #7095: Support fix-cm.sty
Patch from Patrick Atamaniuk.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg165122.html

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37342 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-28 10:04:52 +00:00
Stephan Witt
37d8cbc3a6 adjust distributed default lyxrc for mac, spell_command is outdated (r37255)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37319 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-24 16:30:06 +00:00
Peter Kümmel
8f8aab094d cmake: also add gifs to resources
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37317 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-24 11:50:13 +00:00
Stephan Witt
2b8bdd5b34 since r37306 tex2lyx uses src/LayoutFile too
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37307 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-24 08:34:31 +00:00
Georg Baum
d3c385de20 Next step towards a working roundtrip of files generated by LyX:
Try to recognize modules.
Again, this is needed because the complete LyX preamble is ignored.
It is not possible to recognize a module in all cases, but at least the simple
ones are handled now. As a prerequisite I also had to revive the filling of
known_environments. This has been removed (probably by accident) some time ago.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37306 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-23 21:10:20 +00:00
Georg Baum
9129b73497 Make r37304 work for builds made from packaged sources
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37305 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-23 19:57:39 +00:00
Peter Kümmel
a2435792ce cmake: add ui files
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37303 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-22 18:58:26 +00:00
Peter Kümmel
75f8899736 cmake: install path is already relative to the binary dir when the path is not absolute
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37302 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-22 15:14:47 +00:00
Peter Kümmel
c31897b09c cmake: make package_source work.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37299 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-22 12:38:54 +00:00
Peter Kümmel
d8e5e13690 cmake: don't write options changed because of dependencies into the cache, this way it is possible to switch on/off options with all it dependencies.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37296 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-22 11:48:39 +00:00
Peter Kümmel
2e516e9204 sort options by compiler
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37295 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-22 11:35:50 +00:00
Peter Kümmel
93e60a9727 cmake: now having the options output at the end we could make some dependency checking for option without having an out-dated output.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37294 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-22 11:23:27 +00:00
Peter Kümmel
9e9948c6ad cmake: make options more consistent
Before we set LyX 2.0 in stone by releasing it, 
I clean up the cmake's build option naming:

- only positive naming (remplace NO_, DISBALE_ names)
- short names when it is clear what the option means (no USE_)
- no redundant option RELEASE=0 is a debug build


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37293 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-22 10:53:54 +00:00
Peter Kümmel
da246c7e44 cmake: don't show outdated build options
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37291 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-22 09:27:06 +00:00
Pavel Sanda
1246a70abd Update years
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37284 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-21 13:24:23 +00:00