]> git.lyx.org Git - lyx.git/commitdiff
Add the first dedicated export test
authorGeorg Baum <baum@lyx.org>
Sat, 28 Nov 2015 16:00:59 +0000 (17:00 +0100)
committerGeorg Baum <baum@lyx.org>
Sat, 28 Nov 2015 16:00:59 +0000 (17:00 +0100)
Thanks to Kornel we do now have the infrastructure for running dedicated
export tests. This is the first one, showing a language nesting bug which is
already in 2.1. It is inverted for now, but this will hopefully change soon.

Makefile.am
autotests/Makefile.am [new file with mode: 0644]
autotests/export/languagenesting1.lyx [new file with mode: 0644]
configure.ac
development/autotests/revertedTests

index ceb8d9653a6c9f02ed2cddfda77502cb3b5f06fb..b4b432754a295ddc8b8ca830910606f6b4208419 100644 (file)
@@ -5,7 +5,7 @@ ACLOCAL_AMFLAGS = -I m4 -I config
 MAINTAINERCLEANFILES += $(srcdir)/aclocal.m4 $(srcdir)/configure \
        $(srcdir)/config.h.in
 
-DIST_SUBDIRS = m4 config development po boost src sourcedoc lib
+DIST_SUBDIRS = autotests m4 config development po boost src sourcedoc lib
 
 if BUILD_CLIENT_SUBDIR
 CLIENT = src/client
@@ -15,7 +15,7 @@ if USE_INCLUDED_BOOST
 BOOST = boost
 endif
 
-SUBDIRS = config development po $(BOOST) src sourcedoc lib \
+SUBDIRS = autotests config development po $(BOOST) src sourcedoc lib \
        $(CLIENT) src/tex2lyx
 
 
diff --git a/autotests/Makefile.am b/autotests/Makefile.am
new file mode 100644 (file)
index 0000000..3e0f66a
--- /dev/null
@@ -0,0 +1,10 @@
+include $(top_srcdir)/config/common.am
+
+EXTRA_DIST = $(TEST_FILES)
+
+TEST_FILES = \
+       export/languagenesting1.lyx
+
+alltests: check alltests-recursive
+
+.PHONY: alltests alltests-recursive
diff --git a/autotests/export/languagenesting1.lyx b/autotests/export/languagenesting1.lyx
new file mode 100644 (file)
index 0000000..0c26379
--- /dev/null
@@ -0,0 +1,144 @@
+#LyX 2.2 created this file. For more info see http://www.lyx.org/
+\lyxformat 503
+\begin_document
+\begin_header
+\origin unavailable
+\textclass scrbook
+\options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
+\use_default_options false
+\begin_modules
+logicalmkup
+theorems-ams
+theorems-ams-extended
+multicol
+shapepar
+\end_modules
+\maintain_unincluded_children false
+\begin_local_layout
+Format 7
+InsetLayout CharStyle:MenuItem
+LyxType               charstyle
+LabelString           menu
+LatexType             command
+LatexName             menuitem
+Font
+Family              Sans
+EndFont
+Preamble
+\newcommand*{\menuitem}[1]{{\sffamily #1}}
+EndPreamble
+End
+\end_local_layout
+\language ngerman
+\language_package default
+\inputencoding auto
+\fontencoding global
+\font_roman "default" "FreeSans"
+\font_sans "default" "FreeSans"
+\font_typewriter "default" "FreeSans"
+\font_math "auto" "auto"
+\font_default_family default
+\use_non_tex_fonts true
+\font_sc false
+\font_osf false
+\font_sf_scale 100 100
+\font_tt_scale 100 100
+\graphics default
+\default_output_format default
+\output_sync 0
+\bibtex_command default
+\index_command default
+\paperfontsize 12
+\spacing single
+\use_hyperref true
+\pdf_title "Handbuchergänzungen"
+\pdf_author "LyX Team, deutsche Übersetzung: Hartmut Haase"
+\pdf_subject "LyX-Dokumentation, Benutzerhandbuch, Ergänzungen"
+\pdf_keywords "LyX, Dokumentation"
+\pdf_bookmarks true
+\pdf_bookmarksnumbered true
+\pdf_bookmarksopen false
+\pdf_bookmarksopenlevel 1
+\pdf_breaklinks false
+\pdf_pdfborder true
+\pdf_colorlinks true
+\pdf_backref false
+\pdf_pdfusetitle false
+\pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
+\papersize a4paper
+\use_geometry false
+\use_package amsmath 1
+\use_package amssymb 1
+\use_package cancel 0
+\use_package esint 0
+\use_package mathdots 1
+\use_package mathtools 0
+\use_package mhchem 1
+\use_package stackrel 0
+\use_package stmaryrd 0
+\use_package undertilde 1
+\cite_engine basic
+\cite_engine_type default
+\biblio_style plain
+\use_bibtopic false
+\use_indices false
+\paperorientation portrait
+\suppress_date false
+\justification true
+\use_refstyle 0
+\notefontcolor #0000ff
+\index Stichwortverzeichnis
+\shortcut idx
+\color #008000
+\end_index
+\secnumdepth 3
+\tocdepth 3
+\paragraph_separation indent
+\paragraph_indentation default
+\quotes_language german
+\papercolumns 1
+\papersides 2
+\paperpagestyle headings
+\tracking_changes false
+\output_changes false
+\html_math_output 0
+\html_css_as_file 0
+\html_be_strict true
+\end_header
+
+\begin_body
+
+\begin_layout Title
+Erweiterte \SpecialChar LyX
+ Features
+\end_layout
+
+\begin_layout Subtitle
+Version 2.1.x
+\end_layout
+
+\begin_layout Standard
+
+\lang english
+The important parts are:
+\end_layout
+
+\begin_layout Description
+
+\family sans
+\lang english
+NoWeb
+\family default
+->
+\family sans
+Program 
+\family default
+with Flags set to
+\end_layout
+
+\begin_layout Standard
+geschrieben.
+\end_layout
+
+\end_body
+\end_document
index 561a03ff0bf6bd09657c36c872b05b6df54df302..afc3de94e77521a2e37dd469697352c2f298c2f9 100644 (file)
@@ -349,6 +349,7 @@ AC_DEFINE_UNQUOTED([LYX_RELEASE_PATCH],$lyx_patch,[Patch version number])
 
 AC_CONFIG_FILES([Makefile \
       lyx.1:lyx.1in \
+      autotests/Makefile \
       boost/Makefile \
       config/Makefile \
       development/Makefile \
index 13cf717ec0dde5c2bb4d32ccd90c25a8309b43aa..bc385c79ab05f05d1e52a6a73ab69d6011f5b8f6 100644 (file)
@@ -216,3 +216,10 @@ export/examples/ko/splash_(dvi3|pdf[45])_texF
 # Following mathmacros tests fail
 export/mathmacros/testcases_master_child_.*
 export/mathmacros/testcases_speed_(dvi|pdf|pdf[23]|(dvi3|pdf[45])_(texF|systemF))
+
+# Language nesting, document is OK, fails because of a bug in LyX
+export/export/languagenesting1_lyx16 
+export/export/languagenesting1_dvi
+export/export/languagenesting1_pdf
+export/export/languagenesting1_pdf2
+export/export/languagenesting1_pdf3