ctests: Test dedicated LaTeX test samples with LaTeX export only.

Move them to a subdir, ignore this subdir for other tests.

Dedicated test samples for LaTeX-specific problems don't give additional value if tested for loading, conversion, or other exports.
This commit is contained in:
Günter Milde 2016-09-15 17:17:34 +02:00
parent e36a8903d7
commit d1a41a9bdc
34 changed files with 75 additions and 35 deletions

View File

@ -1,7 +1,8 @@
#LyX 2.2 created this file. For more info see http://www.lyx.org/
\lyxformat 503
#LyX 2.3 created this file. For more info see http://www.lyx.org/
\lyxformat 512
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass article
\use_default_options false
@ -20,6 +21,7 @@
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\use_microtype false
\graphics default
\default_output_format default
\output_sync 0
@ -87,9 +89,9 @@
\papersides 1
\paperpagestyle plain
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\output_changes false
\html_be_strict true
\end_header
@ -98,6 +100,7 @@
\begin_layout Standard
Remove this inserted Slovak text
\begin_inset Branch slovak
inverted 0
status open
\begin_layout Standard
@ -117,6 +120,7 @@ Deutscher Text
\lang english
is non-problematic.
\begin_inset Branch czech
inverted 0
status open
\begin_layout Standard
@ -197,7 +201,8 @@ This is the minimal table example.
\begin_layout Standard
Encoding switches are not to blame.
Rather an incompatibility of array or multirow packages with Babels slovak.ldf.
Rather an incompatibility of array or multirow packages with Babels slovak.ldf
and czech.ldf.
\end_layout
\end_body

View File

@ -1,7 +1,9 @@
#LyX 2.1 created this file. For more info see http://www.lyx.org/
\lyxformat 474
#LyX 2.3 created this file. For more info see http://www.lyx.org/
\lyxformat 512
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass scrbook
\options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
\use_default_options false
@ -32,18 +34,19 @@ End
\language_package default
\inputencoding auto
\fontencoding global
\font_roman FreeSans
\font_sans FreeSans
\font_typewriter FreeSans
\font_math auto
\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
\font_tt_scale 100
\font_sf_scale 100 100
\font_tt_scale 100 100
\use_microtype false
\graphics default
\default_output_format default
\default_output_format pdf5
\output_sync 0
\bibtex_command default
\index_command default
@ -103,7 +106,8 @@ End
\begin_body
\begin_layout Title
Erweiterte LyX Features
Erweiterte \SpecialChar LyX
Features
\end_layout
\begin_layout Subtitle

View File

@ -1,7 +1,8 @@
#LyX 2.2 created this file. For more info see http://www.lyx.org/
\lyxformat 503
#LyX 2.3 created this file. For more info see http://www.lyx.org/
\lyxformat 512
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass scrbook
\begin_preamble
@ -48,8 +49,9 @@ End
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\use_microtype false
\graphics default
\default_output_format default
\default_output_format pdf5
\output_sync 0
\bibtex_command default
\index_command default
@ -724,7 +726,7 @@ There are more possibilities how to activate revision information in our
\lang english
\SpecialChar LyX
supports directly:
\begin_inset Separator parbreak
\begin_inset Separator latexpar
\end_inset
@ -879,7 +881,7 @@ file.lyx
.
Supported flags are:
\begin_inset Separator parbreak
\begin_inset Separator latexpar
\end_inset

View File

@ -60,7 +60,7 @@ logicalmkup
\font_tt_scale 100 100
\use_microtype false
\graphics default
\default_output_format default
\default_output_format pdf5
\output_sync 0
\bibtex_command default
\index_command default

View File

@ -28,7 +28,7 @@ logicalmkup
\font_tt_scale 100 100
\use_microtype false
\graphics default
\default_output_format default
\default_output_format pdf5
\output_sync 0
\bibtex_command bibtex
\index_command default

View File

@ -56,7 +56,11 @@ export/doc/(ja/|)MergedManuals_xhtml
# Dedicated test samples that don't need testing in all variants:
# ===============================================================
# Tests for lib/unicodesymbols -> only test export to 8-bit LaTeX
check_load/export/Unicode-characters/.*
lyx2lyx/export/Unicode-characters/.*
export/export/Unicode-character.*(lyx..|xhtml)
# Dedicated test samples for LaTeX:
#
# don't check loading
check_load/export/latex/.*
# don't check lyx2lyx
lyx2lyx/export/latex/.*
# don't check export to other LyX versions or HTML
export/export/latex.*(lyx..|xhtml)

View File

@ -1,4 +1,21 @@
# Languages cannot be in regex as .*, therefore they have to be explicitly named
# This is due to our implementation in creating different lists for different languages
# Regular expressions for tests that are most likely "wontfix"
# or "sep" (someone elses problem)
#
# Tests matching here AND in "invertedTests" get the label "suspended"
# and the test-feature 'inverted', i.e. they are reported as failing if
# the export works without error.
#
# Patterns will be automatically enclosed with '^' and '$'.
#
# Languages cannot be in the pattern as .*. Therefore they have to be
# explicitly named. This is due to our implementation creating different
# lists for different languages.
##############################################################################
# XeTeX/LuaTeX with TeX fonts is a rarely used combination and not properly
# supported by many packages. -> Failures are mostly due to LaTeX problems.
.*(|de|es|fr|he|hu|id|ko|ru|uk|zh_CN)/.*(dvi3|pdf4|pdf5)_texF
# Files in the attic are kept for reference and conversion tests.
# Failures are usually due to new package versions and "wontfix".
.*/attic/(eu|id|it|pl|sk)_.*

View File

@ -19,8 +19,8 @@ Sublabel: todo
# + language nesting problem (may disappear after completed translation)
export/doc/(de/|fr/)Customization_.*_systemF
# Probably language mess
export/export/ja/wrong_auto_encoding_(dvi|pdf(|3))
# Error in Japanese document if LyX-logo is preceded by foreign language
export/export/latex/ja_wrong_auto_encoding_(dvi|pdf(|3))
# Missing characters with Latin Modern Unicode:
# 0000 NULL (where does this come from?)
@ -65,6 +65,14 @@ export/examples/ko/splash_(dvi||pdf[23]?)
export/mathmacros/testcases_speed_(lyx16|lyx21|dvi|pdf|pdf[23]|(dvi3|pdf[45])_(texF|systemF))
check_load/mathmacros/testcases_speed
# dedicated tests that fail with:
# could not make dir "/usr/local/src/lyxtest/autotests/out-home/AbC_1zG2wo/latex/Unicode-characters" at /usr/local/src/lyx/development/autotests/lyxStatus.pm line 97.
# Called stack
# (0) lyxStatus::diestack() called from "/usr/local/src/lyx/development/autotests/useSystemFonts.pl":154
# CMake Error at /usr/local/src/lyx/development/autotests/export.cmake:49 (message):
# Export failed while converting
export/export/latex/Unicode-characters.*
Sublabel: lyxbugs
#
@ -73,9 +81,9 @@ Sublabel: lyxbugs
#9633 Language nesting and polyglossia
export/doc/(nb|sk)/Intro.*systemF
# in index insets
export/export/languagenesting_index_inset_.*_systemF
export/export/latex/languagenesting_index_inset_.*_systemF
# in enumerate and lyxcode
export/export/languagenesting_enumerate_and_lyxcode.*_systemF
export/export/latex/languagenesting_enumerate_and_lyxcode.*_systemF
# these instances may disappear after completed translation
export/examples/fr/linguistics_.*_systemF
export/doc/(de/|fr/)Customization_.*_systemF
@ -101,7 +109,7 @@ export/export/WrongDfnTagHandling_xhtml
#10371 Compilation error if longest label marker in labeling style
# contains underscores etc.
export/export/LongestLabelWithUnderscore_[^x].*
export/export/latex/LongestLabelWithUnderscore.*
Sublabel: ert
#
@ -115,7 +123,7 @@ export/doc/(de|es|fr)/Additional_pdf4_texF
# Unicode point > 256 lead to errors with 8-bit fonts
# (We keep this option for power users setting Unicode fonts in the preamble
# or document class file).
export/export/utf8-plain-with-tex-fonts_.*_texF
export/export/latex/utf8-plain-with-tex-fonts_.*_texF
Sublabel: texissues
#
@ -199,7 +207,7 @@ export/doc/(ru|uk)/Intro_(dvi3|pdf5)_systemF
# Without the Czech or Slovak text it compiles
# No problem with inserted German (or other foreign language) text
# No problem if the table is Slovak, too
export/export/TableErrorIfSlovakTextInserted_(dvi|pdf[23]?|.*_texF)
export/export/latex/TableErrorIfSlovakTextInserted_(dvi|pdf[23]?|.*_texF)
Sublabel: attic

View File

@ -57,7 +57,7 @@ def read(input):
def write(output, lines):
" Write output file."
for line in lines:
output.write(line[1] + '\n')
output.write(line[1] + u'\n')
def complete(lines, start, stop):