Commit Graph

2622 Commits

Author SHA1 Message Date
Scott Kostyshak
7ac59e7b99 Update expected test failures 2013-02-16 06:27:10 -05:00
Scott Kostyshak
9f4927e855 Add examples to export tests (CMake & autotools)
Now all export tests can be run with:
ctest -R "export"

Only export tests for manuals can be run with:
ctest -R "export/doc"

And only export tests for examples can be run with:
ctest -R "export/examples"
2013-02-16 06:27:09 -05:00
Scott Kostyshak
2fd0c34b9b CMake: change name of export autotests
Instead of 'autotests/export/doc/' export tests are prefixed
with 'export/doc/'. This has the advantage of the name better
reflecting the test (export tests are not autotests), but has a
disadvantage in that the old name gave a better idea of where the
export test scripts are located (in the autotests directory).
2013-02-16 06:27:09 -05:00
Scott Kostyshak
010dfb6a5a Make export tests more extendable
For both CMake and autotools. Now we can easily add
the examples to the export tests.
2013-02-16 06:27:09 -05:00
Kornel Benko
f78c69b554 Adapt to corrected tex2lyx 2013-02-15 19:07:26 +01:00
Kornel Benko
df4003b232 Adapt test-insets.lyx.lyx to now correctly running tex2lyx.
Removed errocase.
2013-02-15 18:49:00 +01:00
Uwe Stöhr
b6e4c709e3 FORMAT: add missing fileformat changes 2013-02-15 16:11:30 +01:00
Juergen Spitzmueller
6885007f1d Adjust Libertine font support to most recent version
This needs yet a file format change. I hope the interface is stable now (I had an exchange with the package maintainer, Bob Tennent, about that)
2013-02-15 10:45:11 +01:00
Kornel Benko
0ea6654228 Cmake build: Creating a define for a header file found
need now only changes in the list of header files in ConfigureChecks.cmake.
2013-02-12 19:01:16 +01:00
Kornel Benko
88101bae75 C&P error. Sorry 2013-02-12 17:46:35 +01:00
Kornel Benko
ae04b1a18e Cmake build: Correct the previous commit.
We have to apply configure_file() twice, therefor the new file.
2013-02-12 17:40:32 +01:00
Kornel Benko
5970aff01a Cmake build: If checking for new function, say xyzzy, we want
have a definition '#define HAVE_XYZZY 1'.
Now, it is sufficient to add xyzzy to list of functions in ConfigureChecks.cmake'
2013-02-12 17:22:07 +01:00
Kornel Benko
36c5c7b9c5 Cmake build: 1.) Sort function checcking alphabetically
2.) add definition HAVE_UNSETENV to header
2013-02-12 15:27:39 +01:00
Jean-Marc Lasgouttes
81d863fd41 Fix bug #8537: LyX creates the environment variable LC_ALL
The current code is not able to unset an environment variable, only to set it to an empty value. This patch refactors a bit the Message class and uses a new EnvChanger helper class that allows to change temporarily an environment variable and that is able to unset variables if needed.

The patch also adds new functions hasEnv and unsetEnv in environment.cpp.

Open issues:
 * there may be systems where unsetenv is not available and putenv("name=") does not do the right thing;
 * unsetenv may lead to leaks on some platforms.
 * when using unsetenv, we may need to remove strings from the internal map that setEnv uses.
2013-02-12 12:14:06 +01:00
Scott Kostyshak
126255b985 Create a file to document expected test failures
This file documents which tests are expected to fail. It can be used
to quickly tell if a regression has occurred. This is also useful when
first running tests to get an idea of whether some tests are failing
because of missing dependencies.
2013-02-07 04:50:07 -05:00
Scott Kostyshak
39c380ee0b Add an autotest for #8540
This test should currently fail on master and on 2.0.x.
2013-02-07 03:42:14 -05:00
Scott Kostyshak
e609787a0f keytest.py: do not print the same thing twice
keytest.py now only prints one time the command that it is executing for
an assert. The command is already printed in the function responsible
for executing it, so it is not necessary to print the command before
calling that function.
2013-02-04 03:20:02 -05:00
Stephan Witt
141fbb6f8c Prepare LyX code to compile and link with Qt5:
* some functionality is in new modules now
  new header locations and library names: QtConcurrent and QtWidgets
* method setResizeMode is renamed to setSectionResizeMode
* deprecated QAbstractItemModel::reset() is dropped now
* platform specific code like QApplication::syncX() is not common anymore
* QString::fromAscii() is dropped now
* some QDesktopServices methods has been moved to QStandardPaths
2013-02-03 19:26:21 +01:00
Stephan Witt
e4d6730fca dynamic cpu count detection and parallel make configuration 2013-02-03 19:26:21 +01:00
Stephan Witt
8eea20ba4b use MKDIR_P macro 2013-02-03 19:26:21 +01:00
Uwe Stöhr
b9a4db06bf installer: add cbgreek and lh fonts to the package list 2013-01-29 23:25:14 +01:00
Scott Kostyshak
2aeb17e8ef Add an autotest for #7673
This test should fail because #7673 is not yet fixed in trunk.
Note that it is fixed in branch.

This is the first autotest that uses an existing .lyx file,
bug-7673.lyx.
2013-01-29 16:18:08 -05:00
Scott Kostyshak
12a4b3aee9 autotests: clean up .emergency file of input .lyx
If the test opens an existing .lyx file and crashes, it will leave
around a .emergency file. If a test with that same name is run again,
LyX will try to recover the .emergency file, which could throw
off the test.

This is implemented for both CMake and autotools.
2013-01-29 16:18:08 -05:00
Uwe Stöhr
c229163a3b installer: release new installer version 2013-01-29 01:03:16 +01:00
Uwe Stöhr
82b9f919aa installer: new method to install LaTeX-packages
LyX 2.0.x supports currently 147 LaTeX-packages. When LyX is first installed on a PC it took therefore about 10 minutes to install all supported and required packages. With the new installation method the installation speed only depends on the Internet speed and lasts with an average bandwidth now only 3.5 minutes.
(chkconfig.ltx asks LaTeX for each package separately and after each package installation the file name database of LaTeX was rebuild. And that cost a lot of time/CPU power)
2013-01-28 02:54:31 +01:00
Scott Kostyshak
e77c0dfcf3 CMake: tests can now use an existing .lyx file
To reproduce some bugs, tests need to open an existing LyX file. This
is now possible with CMake and is consistent with testing under
autotools in the sense that the .lyx file is referred to in the test
by being in the parent directory.

If the test is named bug-XXXX-in.txt and there exists a file
bug-XXXX.lyx, that file will be copied to the parent directory of
out-home in the build directory.
2013-01-27 05:29:50 -05:00
Kornel Benko
e6e28f189a Cmake build: autotests: Remove "session"-file before starting tests 2013-01-25 10:47:31 +01:00
Kornel Benko
dae22baf0b Cmake build: Forgot to set the environment XVKBD_HACKED
to select the correct parameters for xvkbd.
2013-01-25 09:16:34 +01:00
Uwe Stöhr
73fe65543d installer: fixed typos in changelog 2013-01-25 01:44:09 +01:00
Uwe Stöhr
0b791d49f5 installer: update to latest MiKTeX to fix a bug 2013-01-24 23:57:40 +01:00
Kornel Benko
55d32635e1 Cmake build: Add pdf, pdf2 and pdf5 formats to export testcases 2013-01-24 17:58:44 +01:00
Kornel Benko
aba79b78c7 Add description of Sleep (== pause) command in keutests 2013-01-24 08:48:18 +01:00
Scott Kostyshak
d31aef689a CMake export tests now correctly check return code 2013-01-22 03:10:48 -05:00
Stephan Witt
a6c1486d83 add build of private gettext framework; more flexible library versioning 2013-01-20 12:45:34 +01:00
Uwe Stöhr
744de62e22 installer: further fixes for MiKTeX
LaTeX.nsh:
 - fix a MiKTeX configuration Problem on 64bit Windows issue discovered in #8417
 - don't overwrite MiKTeX's package repository the user might have set purposely
 - remove some unused code and simplify some code

- update to JabRef 2.9.2
2013-01-17 01:12:38 +01:00
Uwe Stöhr
de59722ba4 installer: ChangeLog for latest release 2013-01-15 00:53:37 +01:00
Uwe Stöhr
6182ca208b installer: fix bug that MiKTeX is not found on some 64bit Windows
- LaTeX.nsh: fixe http://nsis.sourceforge.net/Download
- settings.nsh: adapt path so that one needs to adapt less when using the installer source zip file
- add a readme how to build the installer
2013-01-14 01:45:42 +01:00
Uwe Stöhr
409f384e21 cmake/build.bat: update build script for installations 2013-01-13 20:16:06 +01:00
Kornel Benko
ab1be44b92 Cmake build: Add .tex files to the list of doc-files.
(This adds "SpecialParagraphShape.tex", which is needed by
Additional.lyx)
2013-01-13 15:31:23 +01:00
Julien Rioux
0899e957c3 Fix bibliography indentation throughout LyX 2.1 source (part of #7458). 2013-01-12 08:41:59 +01:00
Georg Baum
45052f56ab Handle text-only wasy symbols correctly.
Some macros defined by wasysym.sty work only in text mode: They either
produce an error in math mode, or wrong output. These symbols are now marked
as text symbols, so that no \ensuremath is created for LaTeX export if they
appear inside \text{}, and the correct images are created.
2013-01-10 21:22:54 +01:00
Kornel Benko
03abfd4c7d C&P error 2013-01-09 16:40:54 +01:00
Kornel Benko
46e51018d5 Cmake build: Correct creation of lyx_date.h because of
not defined behaviour cmake command copy_if_different
in case, the destination is not present
2013-01-09 16:31:45 +01:00
Georg Baum
c10044ddc0 Add consistency checks.
development/tools/generate_symbols_images.py now checks for each symbol in
lib/symbols whether its image is listed in lib/Makefile.am and whether it has
a toolbar entry in lib/ui/stdtoolbars.inc.
2013-01-08 21:51:09 +01:00
Scott Kostyshak
2f14b329b3 Add an autotest for a trunk regression (#8482)
The regression was fixed at [f164ffd0/lyxgit].
2013-01-05 04:44:14 -05:00
Scott Kostyshak
3c9686ee35 Shave 3 seconds off an autotest
'-dbg any' is not needed.
2013-01-05 04:39:49 -05:00
Kornel Benko
9481d4182e autotests: Enable the suffixed lyx to run the test too.
(Hard coded 'lyx' replaced with real lyx-exe-file-name)
2013-01-05 10:07:37 +01:00
Uwe Stöhr
5a3a071fc3 installer: support emergency releases of LyX 2013-01-03 02:46:48 +01:00
Uwe Stöhr
93a61eea24 installer: 2 fixes
- LaTeX.nsh: assure that if MiKTeX is installed for all users also the missing packages will be installed during the configuration for all users
- configure.nsh: run configure.py twice to assure that really all missing packages are checked/installed
2012-12-31 21:17:01 +01:00
Uwe Stöhr
21fab2cb98 installer: initialize a variable 2012-12-31 19:22:19 +01:00