Commit Graph

2947 Commits

Author SHA1 Message Date
Kornel Benko
2a0ae2e739 Cmake build: Add combo-values to the list of displayed lyx options 2014-06-07 21:00:46 +02:00
Georg Baum
5353b406e6 Document class file name rule
This rule was followed in practice, but not documented so far.
2014-06-07 11:32:15 +02:00
Kornel Benko
e1d3189492 Cmake build: Select full path to library
Testing for QT_USES_X11 links ok now also if the the qt-libraries
are on some non-conform place. (Like self compiled but not installed).
2014-06-07 10:55:21 +02:00
Kornel Benko
8c0e1b5c70 Cmake build: Added convenience macro LYX_COMBO
Will be used later to allow selection between multiple alternatives.
2014-06-07 10:45:13 +02:00
Peter Kümmel
080fca85a8 build with mingw on Windows and Linux 2014-06-07 08:06:13 +02:00
Georg Baum
5dc9568f8d Native support for \smash[t] and \smash[b]
This is a follow-up of bug #8967. The implementation is self-explaining, the
only part which needs a comment is lyx2lyx: Since a 100% correct solution is
not possible, it has been decided not to switch amsmath off in the forward
conversion if no other ams command than \smash[t] and \smash[b] is used, but
to consider it a bug that older versions do not load amsmath automatically for
these commands. In the backward direction it is easy to keep the document
compilable, so just do that.
2014-05-27 22:13:58 +02:00
Kornel Benko
046001e571 Make: improve detection of X11 with Qt 5
In collaboration with Scott Kostyshak:
With Qt 4 we could use Q_WS_X11, defined by FindQt4.cmake. In Qt 5,
there is no FindQt5.cmake. Instead we now define our own variable,
QT_USES_X11 by using class QX11Info available only on X11.
(http://qt-project.org/doc/qt-5/QX11Info.html)

The main consequence of this improved support is that now the keytests
can be run (ctest -R "keytest") when LyX is compiled with Qt 5.
Before, with Qt 5 we did not know if X11 was available, which is
needed by xvkbd, so the tests were not enabled. Note, however, that
many tests fail with Qt version 5.2.1 because there was a change in
the event handling mechanism in Qt that causes xvkbd to be unable to
pass capital letters (so case sensitive greps in the tests fail). This
needs to be investigated and reported.
2014-05-25 13:50:18 +02:00
Kornel Benko
b178770ce3 Cmake export tests: Parse also for nameless layouts in lyx-files 2014-05-23 11:32:19 +02:00
Kornel Benko
371fdb8649 Cmake build: Show the found flag for use of c++11 features 2014-05-16 13:40:34 +02:00
Kornel Benko
f82883b097 Cmake build: Unify defines for spellchecker in config.h 2014-05-13 14:52:11 +02:00
Kornel Benko
77ee91ccfe Cmake build: Use find_package_handle_standard_args() consistently 2014-05-13 12:30:20 +02:00
Scott Kostyshak
f4adfca65a ctests: reinvert a test
This test was inverted before but got lost
in the transition to regular expressions.
2014-05-10 22:29:38 -04:00
Enrico Forestieri
c668ebf611 Fix bugs #8546 and #9055, and introduce new separator inset.
The algorithm used for breaking a paragraph in LaTeX export is changed
for avoiding spurious blank lines causing too much vertical space.
This change is tied to the introduction of a new inset (with two
different specializations) helping in either outputing LaTeX paragraph
breaks or separating environments in LyX. Both of the above goals were
previously achieved by the ---Separator--- layout and can now be
accomplished by the new inset in a more natural way. As an example,
after leaving an environment by hitting the Return key for two times,
a third return automatically inserts a parbreak inset, which is
equivalent to the old separator layout, i.e., it also introduces a
blank line in the output. If this blank line is not wanted, the
parbreak separator can be changed to a plain separator by a right
click of the mouse. Of course, an environment can still be separated
by the following one by using the Alt+P+Return shortcut (or the
corresponding menu key), but now the plain separator inset is used
instead of the old separator layout, such that no blank line occurs in
the LaTeX output.

Old documents are converted such that the LaTeX output remains unchanged.
As a result of this conversion, the old separator layout is replaced by
the new parbreak inset, which may also appear in places where the old
algorithm was introducing blank lines while the new one is not.
Note that not all blank lines were actually affecting the LaTeX output,
because a blank line is simply ignored by the TeX engine when it occurs
in the so called "vertical mode" (e.g., after an alignment environment).
The old ---Separator--- layout is now gone and old layout files using it
are also automatically converted.

Round trip conversions between old and new format should leave a document
unchanged. This means that the new behavior about paragraph breaking is
not "carried back" to the old format. Indeed, this would need introducing
special LaTeX commands in ERT that would accumulate in roundtrip
conversions, horribly cluttering the document. So, when converting a
modified document to old formats, the LaTeX output may slightly differ in
vertical spacing if the document is processed by an old version of LyX.
In other words, forward compatibility is guaranteed, but not backwards.
2014-05-10 23:25:11 +02:00
Kornel Benko
2ebcf38493 Cmake build: Install lyx*.desktop and lyx*.svg files in appropriate locations for unix 2014-05-09 10:04:42 +02:00
Kornel Benko
aa7dbdef37 Cmake build: Add also reference to versioned lyx.svg to the resources file 2014-05-06 17:21:13 +02:00
Uwe Stöhr
4d4ba7b80c installer: fine-tuning
don't bother the user with questions if the uninstaller was accidentally deleted
2014-04-27 15:14:01 +02:00
Kornel Benko
2cab2c9f72 Cmake tests: Added more regular expressions 2 2014-04-25 13:53:29 +02:00
Benjamin Piwowarski
4cb8a83dab Fix for clang detection in cmake 2014-04-24 17:18:56 +02:00
Scott Kostyshak
f887efedf1 ctests: regex to revert two instant_preview tests
These effectively revert the following:

    export/examples/instant_preview_dvi3_systemF
    export/examples/instant_preview_pdf2
2014-04-24 10:00:36 -04:00
Kornel Benko
970d31b044 Cmake tests: Added more regular expressions 2014-04-23 13:04:37 +02:00
Kornel Benko
ae33fa9e39 Cmake tests: simplify part of the set of reverted tests using regex 2014-04-21 19:20:40 +02:00
Kornel Benko
dae08c371f Cmake tests: Allow regular expressions to select for reverted tests. 2014-04-21 19:18:42 +02:00
Richard Heck
c7ecd10c45 Modify update-po script to commit gmo files, as well. 2014-04-21 12:26:21 -04:00
Benjamin Piwowarski
14de3aa49b CMake install and bundling improvements (esp. OS X)
This patch improves the cmake bundling process:
- reworked bundle handling for OS X: only when installing resources are copied, otherwise
only the smallest bundle is built
- on OS X, the utility programs (tex2lyx) are now installed in the right location
- it removes some unneeded BUNDLE DESTINATION
- it provides a basic support for QT plugins inclusion
- it properly builds a disk image on OS X (only the background image is missing)
- it fixes the library paths for all executables (not only LyX)
- Use the COPYING file for cmake install license
2014-04-21 11:51:04 -04:00
Scott Kostyshak
06f12532d1 Invert new tests failing outside of default format
These started failing after we implemented tests for formats
that are in the complement set to the default format (7ecbb068).
It might be worth it in the future to take a look at each individually
and see whether they are supposed to fail or if there is something LyX
can do to add support for exporting them.
2014-04-21 02:58:11 -04:00
Scott Kostyshak
55b3341fba Fix the ignored path of the JASA files
This follows a860d18b which moved the JASA file back from
being an example to a template.
2014-04-21 02:57:45 -04:00
Uwe Stöhr
09bc439188 installer: fix a typo 2014-04-19 19:24:56 +02:00
Uwe Stöhr
62cbf893d2 Windows installer: add 3 new features/bugfixes
As discussed with Vincent I added 3 new features:

* LyX can now also be installed over an existing installation of the same LyX version if the users really wants this.
(A message box appears recommending not to do so for test releases and when there are problems with an existing installation of the same release.)
* LyX can now also be installed if the uninstaller executable of a former LyX was accidentally deleted.
(That this case was not handled was more a bug. Thanks Vicent for the pointer.)
* If a user set MiKTeX's automatic package installation to "No" the installer will.
(As discussed with Vincent, if a user has disabled this MiKTeX feature he most probably know the consequences. So respect his decision.)
  respect that and not re-enable it.

I would be happy if anybody can spend a translation of the changed installer message.
2014-04-19 18:58:22 +02:00
Kornel Benko
1bff751639 Cmake build: Assign package name dynamically
This enables to install different lyx-versions simultaneously via
the package manager.
2014-04-19 11:09:25 +02:00
Uwe Stöhr
97c89c86a1 installer: fix a bug with file associations
- this fixes the bug I mentioned in my previous installer commit
2014-03-30 05:33:55 +02:00
Uwe Stöhr
5284488f37 installer: commit files with which installer for RC1 was built
- known problem: if LyX 2.0.x is installed and you install 2.1rc1, the .lyx file associations will not be updated but if LyX 2.1 is installed on a new PC the file associations work (work is in progress)
2014-03-29 01:50:18 +01:00
Vincent van Ravesteijn
ae25fa5fe0 Update MacOSX Readme to latest fileformat 2014-03-23 17:49:37 +01:00
Vincent van Ravesteijn
9abb18e503 Windows installer: Bump preferences format 2014-03-20 08:13:26 +01:00
Vincent van Ravesteijn
912d4a7c61 Windows installer: Fix file format entry for Lilypond-book
In preferences format 7, a mime format is added to the format entry in the
preferences file. If this entry does not exist, LyX cannot read the entry.
2014-03-19 23:11:52 +01:00
Vincent van Ravesteijn
fc22ba1642 MacOSX/lyxrc.dist.in: update to Format 14 2014-03-19 22:29:14 +01:00
Kornel Benko
7ecbb06888 cmake export tests.
Define new policy of what export formats to check.
Depending on default_output_format
default or unset           xhtml, dvi*, pdf*
xhtml                      xhtml
any of pfd variants        xhtml, pdf*
any of dvi variants        xhtml, dvi*
each other (like eps3)     as specified
2014-03-16 09:57:31 +01:00
Benjamin Piwowarski
26fad1b79c Fix typo in configFunctions.h (wrong define for the header) 2014-03-13 08:28:06 +01:00
Kornel Benko
59f4d0d753 ctest export: smal improvements
1.) Use of regex to ignore group of tests
2.) If default output format is pdf2(pdflatex), the try to check also
  for xelatex and lualatex
2014-03-12 17:15:07 +01:00
Uwe Stöhr
2dd55a1778 installer: fix bug in dictionary installation
- we have a new dictionary and a new thesaurus so that we must increase the search list
- update the dictionary mirror list
2014-03-10 22:08:21 +01:00
Vincent van Ravesteijn
3f771c96d3 Fix EOLs 2014-03-10 21:04:25 +01:00
Kornel Benko
aea5e80f45 Typo 2014-03-10 13:39:31 +01:00
Kornel Benko
39c79a72be ctests: pdf export for korean documents
Use Nanum-font for tests to get a readable pdf with luatatex/xelatex
2014-03-10 13:33:46 +01:00
Stephan Witt
dff79377f4 add the background image to distribution tarball 2014-03-09 19:49:31 +01:00
Uwe Stöhr
ea05826908 installer: cleaner support for splitindex and pdfcrop
- it turned out that the hack to install a stripped-down Perl directly to MiKTEX is not only error-prone, requires admin permission but that it is also not safe because MiKTeX changes the folder structure from time to time. With the new solution Perl is installed directly for LyX like we do for ImageMagick, Python etc.
- for pdfcrop support there is a bug in pdfcriop that the requirement is hardcoded to Ghostscript 32bit - I contacted the pdfcrop author to fix this
2014-03-09 18:19:58 +01:00
Uwe Stöhr
fc3d1bcbb4 installer: update package list for LyX 2.1 2014-03-09 18:16:20 +01:00
Uwe Stöhr
00f8bfcae5 installer: fix potential serious bug 2014-03-09 07:57:47 +01:00
Uwe Stöhr
f14109c98f installer: update the changelog 2014-03-08 18:27:34 +01:00
Uwe Stöhr
e80dde776b installer: add new dictionary names
- also correct 2 file sizes
2014-03-08 00:25:22 +01:00
Uwe Stöhr
e165ff18be installer: update dictionary list
- there is now a Turkmen spell checker
- there is now a Galician thesaurus available
2014-03-07 00:24:28 +01:00
Benjamin Piwowarski
908c92e831 Updates to AppleScript support, and documentaoin for it. 2014-03-05 15:46:27 -05:00
Stephan Witt
222ef85664 improved Qt frameworks packaging on Mac 2014-03-04 22:28:40 +01:00
Stephan Witt
aea9c4fc1b avoid deployment of debug version of qt plugins 2014-03-01 10:23:31 +01:00
Kornel Benko
2127cde4ee Export test for french EmbeddedObjects with dvi3 and system fonts working now 2014-02-27 08:55:38 +01:00
Scott Kostyshak
7409b5e18a Fix a broken autotest
This test was broken after wrap-around search was implemented. From
what I understand, the point of the test is that search should _not_
match in this case because "ignore format" is checked by default.
Thus, a new way of testing that there was no match is to check whether
the wrap around message shows up, because the cursor is initially at
the beginning so that would mean that the entire buffer was checked.

I confirmed that the test now works by checking that it passes and
checking that it fails if "ignore format" is unchecked. Although this
test is still fragile, it is fragile in a conservative way (i.e. it
will give false failures rather than false passes). It will fail if
the Italian translation changes, if "ignore format" is unchecked by
default, or if the wrap-around mechanism changes (e.g. does not ask if
the cursor started at the beginning of the buffer).
2014-02-24 08:10:34 -05:00
Uwe Stöhr
c3de934350 installer: uninstall JabRef also silently if necessary 2014-02-19 01:23:31 +01:00
Uwe Stöhr
0112a2f922 installer: set a safe guard 2014-02-19 01:14:20 +01:00
Uwe Stöhr
2dc0ec25d3 installer: enable to run it silently 2014-02-18 02:15:53 +01:00
Jean-Marc Lasgouttes
2b1791641f Fix various typos in LFUNs.lyx 2014-02-13 14:20:43 +01:00
Jean-Marc Lasgouttes
4ec02b46b5 Improve autotools support for generating LFUNs.lyx
The tqrget now works properly when out of source directory qnd uses the $(PYTHON) variable. Also, the use of the error() function has been fixed in the gen_lfun.py script.
2014-02-13 13:28:41 +01:00
Juergen Spitzmueller
ea25b62b1b again update FUNs.lyx 2014-02-13 10:44:12 +01:00
Juergen Spitzmueller
f1531b2f90 LFUNs.lyx improvements 2014-02-13 09:55:40 +01:00
Juergen Spitzmueller
2a0247ee30 Some improvements to the LFUNS generation script 2014-02-10 08:35:49 +01:00
Vincent van Ravesteijn
eb219e1130 CMake: Regenerate deleted gmo files 2014-02-03 21:19:33 +01:00
Vincent van Ravesteijn
181e64c724 CMake: Put the docs projects in a subdirectory 2014-02-03 20:07:14 +01:00
Vincent van Ravesteijn
f63221aba4 CMake: Add target update-gmo
This target will update the gmo files if and only if the associated
po-file is modified. To determine whether a file is modified, 'git
status --porcelain' is used.

This follows up on commit 06782542.
2014-02-03 20:07:12 +01:00
Vincent van Ravesteijn
ebaead1075 Revert "installer: support new LyX helper programs"
These files are only used by the tests and should not be installed.

This reverts commit fc400ae8eb.
2014-02-02 14:31:35 +01:00
Kornel Benko
f36ea42b5e Cmake build: Prepare lyx2lyx tests to use the python executable found at configure time 2014-01-31 19:10:23 +01:00
Richard Heck
94956d391a Update build script.
(cherry picked from commit ef0fc5732f)
2014-01-31 09:44:06 -05:00
Kornel Benko
30b6c83164 Use prototypes in perl scripts 2014-01-24 11:00:07 +01:00
Scott Kostyshak
2ddf66a71d Ctests: fix "read failed" errors for the URL tests
This patch changes the user agent and results in the openoffice.org
tests correctly passing. Before, they would give the following error:

  Failed, caught error: Status read failed: Connection reset by peer

All the other tests work as before.
Kornel and I are not sure why this change works.
2014-01-23 11:14:31 -05:00
Kornel Benko
83071a2392 Ctests perl scripts: Added use of prototypes 2014-01-10 12:34:40 +01:00
Kornel Benko
037d474360 Cmake url tests: Use try - catch mechanism while testing urls.
If a perl-submodule exits with 'die()', the process would stop
and the following urls would not be tested.
The bug detection and idea how to solve it: Scott Kostyshak.
2014-01-08 13:36:30 +01:00
Kornel Benko
10ffbd787a Cmake build: White space + simplification 2014-01-05 10:02:29 +01:00
Kornel Benko
90cb7c1492 Cmake tests for check load of lyx-files
Do not interpret reconfigure output of lyx as test-error.
2013-12-26 10:29:34 +01:00
Scott Kostyshak
6f41779f5d JASATeX: add note that it fails with system fonts
The JASATeX class is currently unmaintained. Also, this
commit moves the system font tests from inverted to ignored
(otherwise lualatex and xelatex run in infinite loops).
2013-12-25 23:28:48 -05:00
Scott Kostyshak
149cc66e69 ctests: invert the ctex TeX font test
They are not supposed to work yet.
2013-12-25 23:28:48 -05:00
Scott Kostyshak
df77b2db0e ctests: invert tests that are expected to fail
For many of these XeTeX or LuaTeX does not yet support
using TeX fonts for certain languages. The others fail
because, as Jürgen explains, they have excessive preamble
code that is only targeted at (pdf)latex.
2013-12-17 01:52:22 -05:00
Kornel Benko
997035fe66 Cmake tests: Expand export tests for luatex and xetex
Citing Scott:
In our current set up, we are currently testing XeTeX and LuaTeX
either with system fonts or with TeX fonts but never both. We should
test with both in my opinion. We will have to ignore/invert many tests
but it still seems useful. For example Günter fixed babel-greek so
that it works now with TeX fonts; and Jürgen found some errors in LyX
that were causing some of the English docs to fail with system fonts.
Currently we only test greek documents with system fonts and we only
test English documents with TeX fonts.

This change adds the missing test-cases.
2013-12-16 11:36:36 +01:00
Kornel Benko
499c5cfe57 Adapt cmake build to use c++11 features also for clang compiler 2013-12-15 11:41:28 +01:00
Scott Kostyshak
e27ba681ac ctests: use Chinese roman font for zh docs 2013-12-12 23:44:41 -05:00
Scott Kostyshak
1bbf126b94 ctests: non-TeX Ukrainian+LuaTeX is not supported
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg181690.html

Thanks to Günter Milde for the advice.
2013-12-12 23:44:39 -05:00
Georg Baum
bbdff9996f Make sty file parser fit for mdsymbol.sty
Now it is able to generate a lib/symbols section from mdsymbol.sty.
2013-12-11 21:07:59 +01:00
Scott Kostyshak
a3f0ed3bc4 ctests: LuaTeX does not support Farsi yet
See (thanks to Uwe for the link):
ccb0e9e2c6

We thus invert the LuaTeX Farsi tests.

All inverted tests now have explanations for why they are not
currently expected to work.
2013-12-07 12:25:51 -05:00
Scott Kostyshak
09a5d195dc ctests: babel-greek was fixed
We can now test for regressions in the Greek docs for
XeTeX and LuaTeX export with FreeSans.

(Also some Indonesian tests were missing from revertedTests.)
2013-12-07 12:17:52 -05:00
Kornel Benko
9422053f49 Cmake test environment.
Expanded search for an image to \ecvpicture{} in the preamble.
2013-12-07 13:06:27 +01:00
Scott Kostyshak
8a4c9b60e2 ctests: invert ectaart tests
As Kornel has explained:

There is an incompatibility between luainputenc.sty and ectaart.cls.
luainputenc.sty loads luatex.sty. Both files (luatex.sty and
ectaart.cls) define the latex-command \setattribute.

These tests should be inverted because the conflict may one day be
resolved at which point we can begin testing for regressions.

(This commit also rearranges the europeCV lines to below the
corresponding explanation comment.)
2013-12-07 01:56:00 -05:00
Scott Kostyshak
033b49df13 Add note to es/europeCV.lyx and invert Xe and Lua
Export with XeTeX and LuaTeX (with either non-tex fonts or 8-bit
compatibility mode) does not work because the loading of inputenc with
utf8x is hardcoded in europecv.cls at this time.

This commit adds a note to es/europeCV.lyx explaining the problem and
inverts the XeTeX and LuaTeX tests.

See
http://comments.gmane.org/gmane.editors.lyx.devel/145896

Thanks to Günter Milde for the advice and to Ignacio García
for the translation of the note.
2013-12-06 12:13:14 -05:00
Kornel Benko
b1862cda44 Cmake test environment.
Expanded search for an image to "layout Photo".
2013-12-06 10:42:26 +01:00
Uwe Stöhr
8c49237567 installer: fix a typo 2013-12-04 00:47:29 +01:00
Uwe Stöhr
fc400ae8eb installer: support new LyX helper programs 2013-12-04 00:45:46 +01:00
Uwe Stöhr
d9ce7fe1d4 installer: preparations for LyX 2.1 2013-12-04 00:05:20 +01:00
Uwe Stöhr
324b20f62a installer: default to LyX 2.1's LyXRC format 2013-12-04 00:02:42 +01:00
Scott Kostyshak
fb034884ac Fix noweb2lyx, Literate, and listerrors examples
This is a manual lyx2lyx fix. Some of the problematic chunks
are not correctly converted with lyx2lyx so this commit manually
converts them to ERT.

For more details, see:
  http://marc.info/?t=137702744100010&r=1&w=2
2013-12-03 02:18:07 -05:00
Scott Kostyshak
8da5bccb6d ctests: ignore latex8 tests
latex8.sty is obsolete and replaced by IEEEconf.

(consistent with a6372da7)
2013-12-03 02:15:37 -05:00
Scott Kostyshak
cc89ef1c1b ctests: invert Hungarian LuaTeX tests
Similar to Indonesian LuaTeX support (see 7d705438),
"magyar" is not supported. After 2.1 is released,
the babel name of "magyar" should be changed to
"hungarian" (if others disagree then these tests
still should stay inverted).
2013-12-03 02:15:36 -05:00
Scott Kostyshak
7d70543809 ctests: invert Indonesian LuaTeX tests
The babel name of Indonesian should be changed from "bahasa"
to "indonesian". This should be done after 2.1 is released so as
to minimize potential problems such as Jürgen's example of
\addto\captionsbahasa{\renewcommand\chaptername{Foo}}

For more info, see:
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg181595.html
2013-11-29 03:10:35 -05:00
Scott Kostyshak
b9a3e2e9ce ctests: invert Greek LuaTeX tests
From Jürgen:

  LuaTeX support in polyglossia is still very new and experimental.
  I have this enhancement on the agenda for 2.2, but not for 2.1.

For more details, see:
http://marc.info/?l=lyx-devel&m=138506346715339&w=2
2013-11-28 16:28:38 -05:00
Scott Kostyshak
a43a3e31d1 ctests: invert Hebrew LuaTeX tests 2013-11-28 02:56:47 -05:00
Scott Kostyshak
0a4bb51a26 ctests: add dviluatex as a format that needs fonts
Documents in certain languages will only work with dviluatex
if fonts that support those languages are used.

This commit continues e690cfc4.
2013-11-27 07:57:31 -05:00
Scott Kostyshak
63deac73b3 Fix CMake install of examples/thesis
I should have done this in f5cf21d7.
2013-11-27 07:56:43 -05:00
Kornel Benko
805e51eff8 Implement file locking and apply to configure
Functions for file locking are added. They are used for ensuring that
for specified userdir only one LyX process runs configure.
2013-11-20 19:40:32 +01:00
Georg Baum
ca546a8b7e Fix indentation for 'python -tt' 2013-11-19 21:37:33 +01:00
Kornel Benko
5f7102d2bc Cmake test build (perl): Use File::Spec->rel2abs instead of abs_path()
Problem arises on fresh build, where the destination file is not yet defined.
In that case Cwd::abs_path() returns empty string, which fatal later on.
2013-11-18 12:25:18 +01:00
Kornel Benko
e690cfc47c make test environment. Exports with luatex and xetex.
In successful cooperation with Scott Kostyshak.
We provide many lyx-documents which are not compilable with luatex or xetex.
But some of them compile, if we change the font use to non_tex_fonts.
Since this would change the appropriate source, we have to convert
it first into a save location. To make it there compilable,
we have to convert also all file references.
languages     used font
he|el|ru|uk  'FreeSans'
fa           'FreeFarsi'
zh_CN        'WenQuanYi Micro Hei'
The whole job is done with a perl script.
2013-11-17 23:17:27 +01:00
Scott Kostyshak
00fb0a3e10 ctests: invert tests failing because of #8823 2013-11-14 01:48:08 -05:00
Tommaso Cucinotta
36b6296791 Fixing previous mess with git stash (apologies). 2013-11-13 20:07:53 +00:00
Tommaso Cucinotta
a2291edac6 Now run-tests.sh captures PROGRAM_SUFFIX from config.h, in order to use the correct .lyx folder name. 2013-11-13 02:41:38 +00:00
Tommaso Cucinotta
777156e0ff Added self-sanity-check for presence of pcregrep, otherwise many (almost all) tests will fail. 2013-11-13 02:13:32 +00:00
Raphael Kubo da Costa
ca7214b410 Remove FreeBSD checks when defining USE_WCHAR_T.
The problems the comments in the build systems refer to seem to have been
fixed for years. [1] says the checks in libstdc++ have been improved, and
all supported FreeBSD versions enable wchar_t support unconditionally in
libstdc++. Additionally, this needlessly impacts FreeBSD when libc++ is used
instead of libstdc++.

[1] http://gcc.gnu.org/onlinedocs/libstdc++/faq.html#faq.freebsd_wchar
2013-10-18 03:07:30 +02:00
Scott Kostyshak
1e807d5183 Add XeTeX tests
Testing with XeTeX uncovered a few bugs (e.g. Math export
was failing) and thus should be a part of the ctesting.
2013-10-09 11:31:40 -04:00
Vincent van Ravesteijn
7583a8ce25 Fix EOLs 2013-10-06 05:57:53 +02:00
Scott Kostyshak
a6372da715 Ignore latex8 PDF export tests
latex8.sty is obsolete and replaced by IEEEconf.
2013-10-01 17:30:37 -04:00
Kornel Benko
075d903941 Prevent build of <lang>.gmo in case of error.
Given erroneous <lang>.po file, this yields to error on first call
to make. Nonetheless a new <lang>.gmo file is created. The following
calls to make do not get an error.
This patch prevents the <lang>.gmo creation on error.

Problem spotted by Scott.
2013-09-10 08:00:29 +02:00
Kornel Benko
f2553ebf6c Cmake build tests: Threadsafety and test-labeling
The tests are now more robust if ctest uses '-j' (number of threads) parameter.
a.) keytests are running in sequence and in one thread only, no other thread running
b.) tex2lyx tests are locking in respect to each other
c.) Test gets one or more labels, so that we can select
        ctest -L url
  to run tests labeled url
d.) New macro settestlabel() to add labels to a test
2013-09-07 09:25:02 +02:00
Scott Kostyshak
dbd3e5a0f8 Remove diagnostic code that slipped in
I did not intend to commit this piece of diagnostic code
in a0f6b09a.
2013-09-06 22:22:23 -04:00
Kornel Benko
0a779e9543 Cmake build: Move default for man-pages to /usr/local/man
and at the same time make it configurable.
Until now it was hard wired to a subdirectory of installed lyx.
2013-09-06 14:56:31 +02:00
Kornel Benko
abe7eef13c Replace the remaining bad urls with accsessible ones
Now all urls we use in our provided lyx-files
(doc, examples, templates)
use urls which really exist.

(If a url was meant merely as an example,
it was not touched, but added to file 'knownInvalidURLS'.)
2013-08-30 17:28:46 +02:00
Kornel Benko
4f043fba4d Cmake build tests: href entries checked
Our lyx-files are referencing urls also with
a href inset. We check now also these.

search_url.pl: Added check for href
*.lyx: Corrected href
2013-08-28 19:51:19 +02:00
Kornel Benko
73e03bb7d8 Replaced some more invalid urls 2013-08-28 18:07:28 +02:00
Kornel Benko
b94d0e35d3 Replaced some invalid urls 2013-08-28 16:50:23 +02:00
Kornel Benko
bc59cf6a93 Update source list 2013-08-28 14:20:59 +02:00
Kornel Benko
8286411c81 ctests for broken URLs in URL insets of LyX docs
These tests check for broken URLs in the URL insets of
the manuals, examples, and templates.

The tests are disabled by default because the Perl interpreter
is needed.

Later on they can be activated with a flag, as follows:

  cmake ... -DLYX_ENABLE_URLTESTS=ON

but for now the connection from the TOP-CMakeLists.txt is left out.

Missing part:
        1.) Declaring an setting the option
                LYX_OPTION(ENABLE_URLTESTS  "Enable for URL tests" OFF ALL)
        2.) make the connection
                if(LYX_ENABLE_URLTESTS)
                        add_subdirectory(development/checkurls "${TOP_BINARY_DIR}/checkurls")
                endif()
2013-08-28 12:17:40 +02:00
Kornel Benko
1a1ee97758 Cmake build tests: Create directory neede for testing
While testing exports, we need a directory for created mess,
which we use then as working directory.
2013-08-26 22:02:20 +02:00
Kornel Benko
acdfceac71 Cmake build tests: update comments
ignoredTests: add comment
expectedTestFailures: update the set of bad tests
2013-08-25 18:18:19 +02:00
Kornel Benko
788e2b1ac8 Cmake build tests: Unify use of userdir
While some test runns lyx-exe, we need userdir be
different from default. All relevant tests should use the same directory.
2013-08-25 11:41:10 +02:00
Scott Kostyshak
889182eb1a ctests: ignore check_load/templates/attic/latex8
latex8.sty is obsolete and replaced by IEEEconf.
2013-08-23 15:34:31 -04:00
Scott Kostyshak
a0f6b09a82 ctests: macro now deals with reverted and ignored
A single macro determines if a test should be ignored
(by returning an empty test name), and if not,
whether to revert it.

This was Kornel's idea.
2013-08-23 14:45:54 -04:00
Kornel Benko
036a78e990 Cmake tests: Allow for comments in control files
Files, which contain names of ctest-tests controling
whether they should be inverted, or ignored.
We have two such files ATM: revertedTests + ignoredTests
2013-08-23 20:25:24 +02:00
Scott Kostyshak
7affdd5764 New ctests to check for parsing and other errors
These tests load the .lyx files to see if there are
any parsing errors or other LyX errors/warnings. The
tests fail if LyX writes a line to STDERR that does not
match any of the regexes stored in filterCheckWarnings.

Thanks to Kornel for the CMake expertise and corrections.
This patch was written jointly with him.
2013-08-22 19:01:23 -04:00
Kornel Benko
48e8f93d9a Cmake build tests: be more verbose in displaying running commands 2013-08-23 00:50:42 +02:00
Kornel Benko
f416d9156e Cmake build tests: make lyx2lyx tests threadsafe 2013-08-23 00:48:58 +02:00
Kornel Benko
f697e50fd3 Cmake build: remove warnings with newer cmake
Omit using empty defines in find_path() and find_library()
2013-08-23 00:02:56 +02:00
Kornel Benko
fc33092fd8 Cmake build: modify some tests
a) test export/templates/ectaart_pdf5 removed, because
    of incompatibility between ectart.cls and luatex.sty
b) renamed some tests to reflect their purpose
    tex2lyx2lyx/roundtrip/ => tex2lyx/cmplyx/
          # the tests are comparing files written by lyx (not by tex2lyx)
    autotests/ => keytest/
          # we are testing reactions of lyx to some key strokes
c) add tests for lyx2lyx. This is rather rudimental, in that it only
    checks for created output, error codes and error output.
d) use correct environment variable to set up the userdir for testing
2013-08-21 13:34:26 +02:00
Kornel Benko
66f1991b24 The cmake-test 'export/examples/sterrors_pdf' is now expected to pass
iff 'noweb.sty' is installed.
2013-08-16 18:23:46 +02:00
Kornel Benko
7e89a2d5b1 Make more tests compilable
revertedTestst: aa_samply.lyx compiles without change
*_Additional.lyx: bad include path after moved to attic
2013-08-14 14:24:20 +02:00
Kornel Benko
e1a442509d Cmake build: install moved springer files
The spriger directory moved from templates to examples,
but the installation of them was forgotten.
2013-08-11 21:22:00 +02:00
Scott Kostyshak
1d3e77b515 tests: 'default' 'default_output_format' if none
When deciding which output formats to test, if we do not find a
'default_output_format' we assume it is set to 'default'.

For discussion, see:
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg180536.html
2013-08-05 19:24:11 -04:00
Scott Kostyshak
1052732e66 Japanese docs: translations from Koji 2013-08-05 19:15:56 -04:00
Scott Kostyshak
005cc9097c revertedTests: take out some Hebrew, add Russian
The Hebrew files export fine with pdf and pdf2 when Hebrew fonts
are installed. Russian LuaTeX is not known to work.
2013-08-05 04:58:55 -04:00
Vincent van Ravesteijn
9235e82558 Fix typo 2013-08-04 16:37:24 +02:00
Kornel Benko
8ac070afb0 Cmake export tests
Some export test are known to fail. Checking them every time is cumbersome.
Now, the tests marked in file revertedTests will invert the success condition
and mark the test as INVERTED_SEE-README.ctest.

If some of the tests in revertedTests fails, this is good, and the testname
can be removed from it.
2013-08-04 14:31:47 +02:00
Kornel Benko
db3afda749 typo 2013-07-23 22:39:03 +02:00
Kornel Benko
33f23ae8e5 Export tests in cmake build: Do not use the default userdir while
running lyx.
2013-07-23 21:42:44 +02:00
Vincent van Ravesteijn
f43e38fa9f CMake: xvkbd: Check whether the list exists
Instead of adding an empty element to the list, just check properly whether the list exists.
2013-07-23 20:42:53 +02:00
Vincent van Ravesteijn
d3634b6cd5 CMake: xvkbd: Fix spelling 2013-07-23 19:05:06 +02:00
Vincent van Ravesteijn
33aef1befe CMake: xvkbd: Compile fix if none of the libraries is found
If no libraries are found, XVFBDLIBS is not initialized and the command "list(REMOVE_DUPLICATES XVFBDLIBS)" fails. So, initialize XVFBDLIBS beforehand.
2013-07-23 19:04:56 +02:00
Tommaso Cucinotta
cf973b2f3a I seem to need this to let the 'Lang' keyword work, within *-in.txt files. 2013-07-23 02:10:48 +01:00
Stephan Witt
a0c241cdcb pkg-config is not usable with self made Qt libs 2013-07-20 21:24:56 +02:00
Kornel Benko
f4bc391925 Cmake build xvkbd: add xmu to the list of libraries to bind with.
This is needed (because of DSO) on ubuntu 13.04.
2013-07-13 22:45:05 +02:00
Kornel Benko
5431b41d22 Cmake build key tests: Omit the tests and creation of xvkbd command,
if not all needed libs or programs are available.
This error is now not fatal.
2013-07-13 22:44:56 +02:00