]> git.lyx.org Git - lyx.git/blob - lib/doc/Development.lyx
67bebb49d6dd4e597b289224b6813fbd33f857e0
[lyx.git] / lib / doc / Development.lyx
1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
2 \lyxformat 503
3 \begin_document
4 \begin_header
5 \origin /systemlyxdir/doc/
6 \textclass scrartcl
7 \options BCOR8mm,captions=tableheading
8 \use_default_options false
9 \begin_modules
10 logicalmkup
11 \end_modules
12 \maintain_unincluded_children false
13 \language english
14 \language_package default
15 \inputencoding auto
16 \fontencoding global
17 \font_roman "lmodern" "default"
18 \font_sans "lmss" "default"
19 \font_typewriter "lmtt" "default"
20 \font_math "auto" "auto"
21 \font_default_family default
22 \use_non_tex_fonts false
23 \font_sc false
24 \font_osf false
25 \font_sf_scale 100 100
26 \font_tt_scale 100 100
27 \graphics default
28 \default_output_format default
29 \output_sync 0
30 \bibtex_command default
31 \index_command default
32 \paperfontsize 12
33 \spacing single
34 \use_hyperref true
35 \pdf_title "LyX's Development manual"
36 \pdf_author "LyX Team"
37 \pdf_subject "LyX's development documentation"
38 \pdf_keywords "LyX, Documentation, Development"
39 \pdf_bookmarks true
40 \pdf_bookmarksnumbered true
41 \pdf_bookmarksopen true
42 \pdf_bookmarksopenlevel 1
43 \pdf_breaklinks false
44 \pdf_pdfborder false
45 \pdf_colorlinks true
46 \pdf_backref false
47 \pdf_pdfusetitle false
48 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
49 \papersize a4paper
50 \use_geometry false
51 \use_package amsmath 1
52 \use_package amssymb 1
53 \use_package cancel 0
54 \use_package esint 0
55 \use_package mathdots 1
56 \use_package mathtools 0
57 \use_package mhchem 1
58 \use_package stackrel 0
59 \use_package stmaryrd 0
60 \use_package undertilde 0
61 \cite_engine basic
62 \cite_engine_type default
63 \biblio_style plain
64 \use_bibtopic false
65 \use_indices false
66 \paperorientation portrait
67 \suppress_date false
68 \justification true
69 \use_refstyle 0
70 \notefontcolor #0000ff
71 \index Index
72 \shortcut idx
73 \color #008000
74 \end_index
75 \secnumdepth 4
76 \tocdepth 4
77 \paragraph_separation indent
78 \paragraph_indentation default
79 \quotes_language english
80 \papercolumns 1
81 \papersides 2
82 \paperpagestyle headings
83 \tracking_changes false
84 \output_changes false
85 \html_math_output 0
86 \html_css_as_file 0
87 \html_be_strict true
88 \end_header
89
90 \begin_body
91
92 \begin_layout Title
93 Developing \SpecialChar LyX
94
95 \end_layout
96
97 \begin_layout Subtitle
98 Version 2.2.x
99 \end_layout
100
101 \begin_layout Author
102 by the \SpecialChar LyX
103  Team
104 \begin_inset Foot
105 status collapsed
106
107 \begin_layout Plain Layout
108 \noindent
109 If you have comments or error corrections, please send them to the \SpecialChar LyX
110  Documentatio
111 n mailing list, 
112 \begin_inset Flex Code
113 status collapsed
114
115 \begin_layout Plain Layout
116 \noindent
117 <lyx-docs@lists.lyx.org>
118 \end_layout
119
120 \end_inset
121
122 .
123 \end_layout
124
125 \end_inset
126
127
128 \end_layout
129
130 \begin_layout Standard
131 \begin_inset CommandInset toc
132 LatexCommand tableofcontents
133
134 \end_inset
135
136
137 \end_layout
138
139 \begin_layout Section
140 Introduction
141 \end_layout
142
143 \begin_layout Standard
144 This manual documents some aspects of \SpecialChar LyX
145  development.
146  It is currently rather incomplete, but will hopefully be extended in the
147  future.
148  Meanwhile, additional information can be found in the 
149 \begin_inset Flex Code
150 status collapsed
151
152 \begin_layout Plain Layout
153 development
154 \end_layout
155
156 \end_inset
157
158  subfolder of the \SpecialChar LyX
159  source code distribution.
160  This document is not translated, since the development language of \SpecialChar LyX
161  is
162  English.
163  If you want to use \SpecialChar LyX
164  you don't need to read this manual.
165  However, if you want to learn more about how \SpecialChar LyX
166  is developed, or even want
167  to participate in \SpecialChar LyX
168  development, you may find some interesting information.
169 \end_layout
170
171 \begin_layout Section
172 File formats
173 \end_layout
174
175 \begin_layout Standard
176 \SpecialChar LyX
177  uses several custom file formats for configuration files and documents.
178  This chapter contains some background concerning these file formats.
179  Several file formats are also described in detail in the regular user documenta
180 tion.
181 \end_layout
182
183 \begin_layout Subsection
184 File Format Numbers
185 \end_layout
186
187 \begin_layout Subsection
188 When is an update of the .lyx file format number needed?
189 \begin_inset CommandInset label
190 LatexCommand label
191 name "sec:When-is-an"
192
193 \end_inset
194
195
196 \end_layout
197
198 \begin_layout Standard
199 When you are working on a new feature you may ask yourself whether it needs
200  an update of the .lyx file format number.
201  Whether an update is needed or not is not always obvious.
202  Below you can find a list of reasons for file format updates with explanations:
203 \end_layout
204
205 \begin_layout Description
206 New
207 \begin_inset space ~
208 \end_inset
209
210 document
211 \begin_inset space ~
212 \end_inset
213
214 setting Whenever you introduce a new setting that is stored in the document
215  header, a file format update is needed.
216  This is also true if you add a new valid value to an existing setting,
217  e.
218 \begin_inset space \thinspace{}
219 \end_inset
220
221 g.
222 \begin_inset space \space{}
223 \end_inset
224
225 a new language that is stored in 
226 \begin_inset Flex Code
227 status collapsed
228
229 \begin_layout Plain Layout
230
231 \backslash
232 language
233 \end_layout
234
235 \end_inset
236
237 .
238 \end_layout
239
240 \begin_layout Description
241 Removed
242 \begin_inset space ~
243 \end_inset
244
245 document
246 \begin_inset space ~
247 \end_inset
248
249 setting If a certain setting becomes obsolete and gets removed, a file format
250  update is needed.
251 \end_layout
252
253 \begin_layout Description
254 New
255 \begin_inset space ~
256 \end_inset
257
258 inset Of course a new inset requires a file format update.
259 \end_layout
260
261 \begin_layout Description
262 New
263 \begin_inset space ~
264 \end_inset
265
266 style in any layout file or module shipped with \SpecialChar LyX
267 , or new shipped layout
268  file or module.
269  These requirements are currently under discussion and might change in the
270  future.
271 \end_layout
272
273 \begin_layout Description
274 Automatically
275 \begin_inset space ~
276 \end_inset
277
278 loaded
279 \begin_inset space ~
280 \end_inset
281
282 math
283 \begin_inset space ~
284 \end_inset
285
286 package Any new math package that is automatically loaded needs a file format
287  update.
288  The reason for this is that there is no true ERT inset for math formulas:
289  Each command is parsed, and if a user happens to define a local command
290  with the same name as a command that triggers an automatic load of a package,
291  he needs to be able to switch off the automatic loading of that package.
292  This switch is stored by the 
293 \begin_inset Flex Code
294 status collapsed
295
296 \begin_layout Plain Layout
297 use_package
298 \end_layout
299
300 \end_inset
301
302  header setting.
303 \end_layout
304
305 \begin_layout Standard
306 If you are still unsure, please ask on the development list.
307 \end_layout
308
309 \begin_layout Subsection
310 How to update the file format number of .lyx files
311 \begin_inset CommandInset label
312 LatexCommand label
313 name "subsec:update_lyx_files"
314
315 \end_inset
316
317
318 \end_layout
319
320 \begin_layout Standard
321 Once you came to the conclusion that a file format update is needed you
322  should use the following procedure to perform the update:
323 \end_layout
324
325 \begin_layout Enumerate
326 Implement and test the new feature, including the reading and writing of
327  .lyx files.
328  Note that any file produced at this stage does not use a valid format,
329  so do not use this version of \SpecialChar LyX
330  for working on any important documents.
331 \end_layout
332
333 \begin_layout Enumerate
334 Describe the new format in 
335 \begin_inset Flex Code
336 status collapsed
337
338 \begin_layout Plain Layout
339 development/FORMAT
340 \end_layout
341
342 \end_inset
343
344 .
345 \end_layout
346
347 \begin_layout Enumerate
348 Update the \SpecialChar LyX
349  file format number in 
350 \begin_inset Flex Code
351 status collapsed
352
353 \begin_layout Plain Layout
354 src/version.h
355 \end_layout
356
357 \end_inset
358
359 .
360 \end_layout
361
362 \begin_layout Enumerate
363 Update the range of file formats in the array 
364 \begin_inset Flex Code
365 status collapsed
366
367 \begin_layout Plain Layout
368 format_relation
369 \end_layout
370
371 \end_inset
372
373  in 
374 \begin_inset Flex Code
375 status collapsed
376
377 \begin_layout Plain Layout
378 lib/lyx2lyx/LyX.py
379 \end_layout
380
381 \end_inset
382
383 .
384 \end_layout
385
386 \begin_layout Enumerate
387 Add an entry to both format lists (for conversion and reversion) in
388 \begin_inset Newline newline
389 \end_inset
390
391
392 \begin_inset Flex Code
393 status collapsed
394
395 \begin_layout Plain Layout
396 lib/lyx2lyx/lyx_2_2.py
397 \end_layout
398
399 \end_inset
400
401 .
402  Add a conversion routine if needed (e.
403 \begin_inset space \thinspace{}
404 \end_inset
405
406 g.
407 \begin_inset space \space{}
408 \end_inset
409
410 a new header setting always needs a conversion that adds the new setting,
411  a new document language does not need one).
412  Add a reversion routine if needed.
413  While the conversion routine is required to produce a document that is
414  equivalent to the old version, the requirements of the reversion are not
415  that strict.
416  If possible, try to produce a proper reversion, using ERT if needed, but
417  for some features this might be too complicated.
418  In this case, the minimum requirement of the reversion routine is that
419  it produces a valid document which can be read by an older \SpecialChar LyX
420 .
421  If absolutely needed, even data loss is allowed for the reversion.
422 \end_layout
423
424 \begin_layout Enumerate
425 Since tex2lyx has several implicit file format dependencies caused by sharing
426  code with \SpecialChar LyX
427 , updating the file format of .lyx files produced by tex2lyx at
428  the same time as updating the main .lyx file format is strongly recommended.
429  Therefore, a compiler warning will be issued if the \SpecialChar LyX
430  and tex2lyx .lyx file
431  format numbers differ.
432  In many cases the tex2lyx update requires only the first and last item
433  of the list below:
434 \begin_inset Separator parbreak
435 \end_inset
436
437
438 \end_layout
439
440 \begin_deeper
441 \begin_layout Enumerate
442 Update the tex2lyx file format number in 
443 \begin_inset Flex Code
444 status collapsed
445
446 \begin_layout Plain Layout
447 src/version.h
448 \end_layout
449
450 \end_inset
451
452 .
453 \end_layout
454
455 \begin_layout Enumerate
456 If the lyx2lyx conversion from the old to the new format is empty, or if
457  tex2lyx does not yet output the changed feature, you do not need any further
458  tex2lyx changes.
459  Otherwise, search for the changed feature in tex2lyx, and adjust the output
460  according to the lyx2lyx changes.
461 \end_layout
462
463 \begin_layout Enumerate
464 Update the tex2lyx test references as described in 
465 \begin_inset CommandInset ref
466 LatexCommand formatted
467 reference "sec:Updating-test-references"
468
469 \end_inset
470
471 .
472 \end_layout
473
474 \end_deeper
475 \begin_layout Enumerate
476 If you did not implement full tex2lyx support of the new feature, add a
477  line to 
478 \begin_inset Flex Code
479 status collapsed
480
481 \begin_layout Plain Layout
482 src/tex2lyx/TODO.txt
483 \end_layout
484
485 \end_inset
486
487  describing the missing bits.
488  Note that it is perfectly fine if you do not add full tex2lyx support for
489  a new feature: The updating recommendation above is only issued for the
490  syntax of the produced .lyx file.
491  It is no problem if some features supported by \SpecialChar LyX
492  are still output as ERT
493  by tex2lyx, since the problems in the past that resulted in the update
494  recommendation were related to mixed version syntax, not ERT.
495 \end_layout
496
497 \begin_layout Enumerate
498 It would be nice if you could create a .lyx test file which contains instances
499  of all changed or added features.
500  This could then be used to test lyx2lyx and tex2lyx.
501  Unfortunately it has not yet been decided how to collect such examples,
502  so please ask on the development list if you want to create one.
503 \end_layout
504
505 \begin_layout Enumerate
506 \begin_inset CommandInset label
507 LatexCommand label
508 name "enu:updatefiles"
509
510 \end_inset
511
512 Update LyX's .lyx documentation files to the new format.
513  The developer who makes the change knows best what changes to expect when
514  inspecting the resulting diff.
515  Because of this, you might be able to catch a bug in the lyx2lyx code that
516  updates the format just by taking a quick scan through the large diff that
517  is the result
518 \begin_inset Note Note
519 status collapsed
520
521 \begin_layout Plain Layout
522 Another advantage is that if later we suspect a bug in lyx2lyx we can easily
523  see which layout update made an unexpected change by looking at the git
524  log of a .lyx file that suffers the problem.
525 \end_layout
526
527 \end_inset
528
529 .
530  To do this, first make sure that there are no changes to the git repository
531  that you will not want to commit (this is needed because it will be convenient
532  to commit with the command 
533 \begin_inset Flex Code
534 status collapsed
535
536 \begin_layout Plain Layout
537 git commit -a
538 \end_layout
539
540 \end_inset
541
542 ).
543  Then run the following command in the root folder of the source: 
544 \begin_inset Flex Code
545 status collapsed
546
547 \begin_layout Plain Layout
548 python development/tools/updatedocs.py
549 \end_layout
550
551 \end_inset
552
553 .
554  Then, revert the change to 
555 \begin_inset Flex Code
556 status collapsed
557
558 \begin_layout Plain Layout
559 LFUNs.lyx
560 \end_layout
561
562 \end_inset
563
564  because that file is meant to be generated separately: 
565 \begin_inset Flex Code
566 status collapsed
567
568 \begin_layout Plain Layout
569 git checkout lib/doc/LFUNs.lyx
570 \end_layout
571
572 \end_inset
573
574
575 \begin_inset Note Note
576 status collapsed
577
578 \begin_layout Plain Layout
579 TODO: this step should be done within updatedocs.py
580 \end_layout
581
582 \end_inset
583
584 .
585  Look at the resulting changes using the command 
586 \begin_inset Flex Code
587 status collapsed
588
589 \begin_layout Plain Layout
590 git diff
591 \end_layout
592
593 \end_inset
594
595 .
596  If anything looks surprising, please investigate.
597  Finally, commit using 
598 \begin_inset Flex Code
599 status collapsed
600
601 \begin_layout Plain Layout
602 git commit -a
603 \end_layout
604
605 \end_inset
606
607 .
608 \end_layout
609
610 \begin_layout Subsection
611 Updating the file format number of layout files
612 \end_layout
613
614 \begin_layout Standard
615 See step 
616 \begin_inset CommandInset ref
617 LatexCommand ref
618 reference "enu:updatefiles"
619
620 \end_inset
621
622  in section 
623 \begin_inset CommandInset ref
624 LatexCommand ref
625 reference "subsec:update_lyx_files"
626
627 \end_inset
628
629  but instead of the 
630 \begin_inset Flex Code
631 status collapsed
632
633 \begin_layout Plain Layout
634 updatedocs.py
635 \end_layout
636
637 \end_inset
638
639  command, use this command: 
640 \begin_inset Flex Code
641 status collapsed
642
643 \begin_layout Plain Layout
644 python development/tools/updatelayouts.py
645 \end_layout
646
647 \end_inset
648
649 .
650 \end_layout
651
652 \begin_layout Subsection
653 Updating the file format number of bind/ui files
654 \end_layout
655
656 \begin_layout Standard
657 See step 
658 \begin_inset CommandInset ref
659 LatexCommand ref
660 reference "enu:updatefiles"
661
662 \end_inset
663
664  in section 
665 \begin_inset CommandInset ref
666 LatexCommand ref
667 reference "subsec:update_lyx_files"
668
669 \end_inset
670
671  but instead of the 
672 \begin_inset Flex Code
673 status collapsed
674
675 \begin_layout Plain Layout
676 updatedocs.py
677 \end_layout
678
679 \end_inset
680
681  command, use this command: 
682 \begin_inset Flex Code
683 status collapsed
684
685 \begin_layout Plain Layout
686 bash development/tools/updatelfuns.sh
687 \end_layout
688
689 \end_inset
690
691 .
692 \end_layout
693
694 \begin_layout Subsection
695 Backporting new styles to the stable version
696 \end_layout
697
698 \begin_layout Standard
699 Starting with the stable \SpecialChar LyX
700  2.1 branch, there is a mechanism in place to backport
701  new styles to the stable version without the need to update the file format.
702  The basic idea is that the new style definition is automatically copied
703  to the document preamble, so that it can even be used by older minor revisions
704  that did not yet include the style.
705  To backport a new style to the stable version, the following steps are
706  needed:
707 \end_layout
708
709 \begin_layout Enumerate
710 Add the line 
711 \begin_inset Flex Code
712 status collapsed
713
714 \begin_layout Plain Layout
715 ForceLocal -1
716 \end_layout
717
718 \end_inset
719
720  to the style definition in the development version.
721 \end_layout
722
723 \begin_layout Enumerate
724 Copy the style definition to the stable version, but use 
725 \begin_inset Flex Code
726 status collapsed
727
728 \begin_layout Plain Layout
729 ForceLocal 1
730 \end_layout
731
732 \end_inset
733
734  instead.
735  If needed adjust the format to the one used by the stable version (see
736  the customization manual for details of the layout file format).
737 \end_layout
738
739 \begin_layout Enumerate
740 For each update of the style in a later stable version, increase the argument
741  of 
742 \begin_inset Flex Code
743 status collapsed
744
745 \begin_layout Plain Layout
746 ForceLocal
747 \end_layout
748
749 \end_inset
750
751  by one (in the stable version, the development version should not be touched).
752 \end_layout
753
754 \begin_layout Standard
755 For details about the 
756 \begin_inset Flex Code
757 status collapsed
758
759 \begin_layout Plain Layout
760 ForceLocal
761 \end_layout
762
763 \end_inset
764
765  flag see the customization manual.
766  No 
767 \begin_inset Flex Code
768 status collapsed
769
770 \begin_layout Plain Layout
771 lyx2lyx
772 \end_layout
773
774 \end_inset
775
776  support is needed for backported styles: Since the style of the development
777  version has an infinite version number, it will always be used.
778  Furthermore, since its version number is less than one, the style will
779  not be written anymore to the document header for files saved by the new
780  version.
781 \end_layout
782
783 \begin_layout Standard
784 \begin_inset Newpage newpage
785 \end_inset
786
787
788 \end_layout
789
790 \begin_layout Section
791 Tests
792 \end_layout
793
794 \begin_layout Standard
795 Automated tests are an important tool to detect bugs and regressions in
796  software development.
797  Some projects like gcc even require each bug fix to be accompanied by a
798  test case for the automatic test suite, that would detect this bug.
799  Testing interactive features automatically is of course very hard, but
800  core functionality like document import and export can be tested quite
801  easily, and some tests of this kind exist.
802 \end_layout
803
804 \begin_layout Subsection
805 unit tests
806 \end_layout
807
808 \begin_layout Standard
809 There are attempts to set up a suite of unit tests for LyX.
810 \end_layout
811
812 \begin_layout Standard
813 TODO: describe what is done and what is still to do.
814 \end_layout
815
816 \begin_layout Subsection
817 tex2lyx tests
818 \end_layout
819
820 \begin_layout Standard
821 The tex2lyx tests are located in the 
822 \begin_inset Flex Code
823 status collapsed
824
825 \begin_layout Plain Layout
826 src/tex2lyx/test
827 \end_layout
828
829 \end_inset
830
831  subfolder of the \SpecialChar LyX
832  source code distribution.
833  The actual testing is performed by the simple python script 
834 \begin_inset Flex Code
835 status collapsed
836
837 \begin_layout Plain Layout
838 src/tex2lyx/test/runtests.py
839 \end_layout
840
841 \end_inset
842
843 .
844  Each test consists of two files: 
845 \begin_inset Flex Code
846 status collapsed
847
848 \begin_layout Plain Layout
849 <test name>.tex
850 \end_layout
851
852 \end_inset
853
854  contains the \SpecialChar LaTeX
855  code that should be tested.
856  
857 \begin_inset Flex Code
858 status collapsed
859
860 \begin_layout Plain Layout
861 <test name>.lyx.lyx
862 \end_layout
863
864 \end_inset
865
866  contains the expected output of tex2lyx.
867  When a test is run, the actual produced output is compared with the stored
868  reference output.
869  The test passes if both are identical.
870  The test machinery is also able to generate a file 
871 \begin_inset Flex Code
872 status collapsed
873
874 \begin_layout Plain Layout
875 <test name>.lyx.tex
876 \end_layout
877
878 \end_inset
879
880  by exporting the produced .lyx file with \SpecialChar LyX
881  again.
882  This may be useful for roundtrip comparisons.
883 \end_layout
884
885 \begin_layout Subsubsection
886 Running the tests
887 \end_layout
888
889 \begin_layout Standard
890 The tex2lyx tests can be run in several ways.
891  When in the 
892 \begin_inset Flex Code
893 status collapsed
894
895 \begin_layout Plain Layout
896 src/tex2lyx
897 \end_layout
898
899 \end_inset
900
901  subfolder of the build directory, the commands 
902 \begin_inset Flex Code
903 status collapsed
904
905 \begin_layout Plain Layout
906 ctest
907 \end_layout
908
909 \end_inset
910
911  (cmake, all platforms), 
912 \begin_inset Flex Code
913 status collapsed
914
915 \begin_layout Plain Layout
916 make test
917 \end_layout
918
919 \end_inset
920
921  (cmake, when using a make based build system and not MSVC) or 
922 \begin_inset Flex Code
923 status collapsed
924
925 \begin_layout Plain Layout
926 make alltests
927 \end_layout
928
929 \end_inset
930
931  (autotools) will run the tex2lyx tests.
932  Alternatively, in the root of the build directory, the command 
933 \begin_inset Flex Code
934 status collapsed
935
936 \begin_layout Plain Layout
937 ctest -R tex2lyx
938 \end_layout
939
940 \end_inset
941
942  runs all tests whose names match the regex 
943 \begin_inset Quotes eld
944 \end_inset
945
946 tex2lyx
947 \begin_inset Quotes erd
948 \end_inset
949
950 .
951  Another way to run the tex2lyx tests in the root build directory is to
952  instead use the command 
953 \begin_inset Flex Code
954 status collapsed
955
956 \begin_layout Plain Layout
957 ctest -L '(cmplyx|roundtrip)'
958 \end_layout
959
960 \end_inset
961
962 , which runs all tests categorized with the label 
963 \begin_inset Quotes eld
964 \end_inset
965
966 roundtrip
967 \begin_inset Quotes erd
968 \end_inset
969
970  or 
971 \begin_inset Quotes eld
972 \end_inset
973
974 cmplyx
975 \begin_inset Quotes erd
976 \end_inset
977
978 .
979  If a test fails, the differences between the expected and actual results
980  are output in unified diff format.
981 \end_layout
982
983 \begin_layout Subsubsection
984 Updating test references
985 \begin_inset CommandInset label
986 LatexCommand label
987 name "sec:Updating-test-references"
988
989 \end_inset
990
991
992 \end_layout
993
994 \begin_layout Standard
995 In some cases a changed tex2lyx output is not a test failure, but wanted,
996  e.
997 \begin_inset space \thinspace{}
998 \end_inset
999
1000 g.
1001 \begin_inset space \space{}
1002 \end_inset
1003
1004 if a tex2lyx bug was fixed, or a new feature was added.
1005  In these cases the stored references need to be updated.
1006  To do so if using autotools, call 
1007 \begin_inset Flex Code
1008 status collapsed
1009
1010 \begin_layout Plain Layout
1011 make updatetests
1012 \end_layout
1013
1014 \end_inset
1015
1016  in the 
1017 \begin_inset Flex Code
1018 status collapsed
1019
1020 \begin_layout Plain Layout
1021 src/tex2lyx
1022 \end_layout
1023
1024 \end_inset
1025
1026  subdirectory of the build directory.
1027  If instead using CMake, call 
1028 \begin_inset Flex Code
1029 status collapsed
1030
1031 \begin_layout Plain Layout
1032 make updatetex2lyxtests
1033 \end_layout
1034
1035 \end_inset
1036
1037  in the build directory or in the 
1038 \begin_inset Flex Code
1039 status collapsed
1040
1041 \begin_layout Plain Layout
1042 src/tex2lyx/test
1043 \end_layout
1044
1045 \end_inset
1046
1047  subdirectory of the build directory.
1048 \begin_inset Foot
1049 status collapsed
1050
1051 \begin_layout Plain Layout
1052 Note that this is a case where a make target in the build directory can
1053  affect the source directory, which might not be advisable.
1054 \end_layout
1055
1056 \end_inset
1057
1058  On Windows do the following:
1059 \end_layout
1060
1061 \begin_layout Itemize
1062 Assure that the path to the python.exe is in your system PATH variable.
1063 \end_layout
1064
1065 \begin_layout Itemize
1066 Double-click on the file 
1067 \begin_inset Flex Code
1068 status collapsed
1069
1070 \begin_layout Plain Layout
1071 updatetex2lyxtests.vcxproj
1072 \end_layout
1073
1074 \end_inset
1075
1076  in the build directory or in the 
1077 \begin_inset Flex Code
1078 status collapsed
1079
1080 \begin_layout Plain Layout
1081 src/tex2lyx/test
1082 \end_layout
1083
1084 \end_inset
1085
1086  subdirectory of your build directory.
1087 \end_layout
1088
1089 \begin_layout Itemize
1090 In the appearing MSVC program right-click on the project 
1091 \family sans
1092 updatetex2lyxtests
1093 \family default
1094  in the project explorer and chose 
1095 \family sans
1096 Create
1097 \family default
1098 .
1099 \end_layout
1100
1101 \begin_layout Standard
1102 For convenience, these commands also produce re-exported roundtrip .lyx.tex
1103  files.
1104  Please examine the changed output carefully before committing the changed
1105  files to the repository: Since the test machinery does not do a roundtrip
1106  test .tex 
1107 \begin_inset Formula $\Rightarrow$
1108 \end_inset
1109
1110  .lyx 
1111 \begin_inset Formula $\Rightarrow$
1112 \end_inset
1113
1114  .tex, and does not compare the produced dvi or pdf output, it assumes that
1115  the stored .lyx reference produces correct output if processed by \SpecialChar LyX
1116 .
1117  There is only one chance to detect wrong output: before committing a new
1118  reference.
1119  Once it is committed, it is quite difficult to verify whether it is correct.
1120 \end_layout
1121
1122 \begin_layout Standard
1123 Please 
1124 \emph on
1125 do not
1126 \emph default
1127  update the test references by opening them with \SpecialChar LyX
1128  or directly running lyx2lyx
1129  on them.
1130  This would not work, since lyx2lyx and \SpecialChar LyX
1131  produce slightly different files
1132  regarding insignificant whitespace and line breaks.
1133 \end_layout
1134
1135 \begin_layout Subsubsection
1136 Adding a new test
1137 \end_layout
1138
1139 \begin_layout Standard
1140 In many cases tests for new features may be added to one of the existing
1141  test files, but sometimes this is not possible or not wanted.
1142  Then a new test file needs to be added:
1143 \end_layout
1144
1145 \begin_layout Enumerate
1146 Create the new file 
1147 \begin_inset Flex Code
1148 status collapsed
1149
1150 \begin_layout Plain Layout
1151 src/tex2lyx/test/<test name>.tex
1152 \end_layout
1153
1154 \end_inset
1155
1156  and run tex2lyx in roundtrip mode to produce the file 
1157 \begin_inset Flex Code
1158 status collapsed
1159
1160 \begin_layout Plain Layout
1161 src/tex2lyx/test/<test name>.lyx.lyx
1162 \end_layout
1163
1164 \end_inset
1165
1166 .
1167  This file will be the new reference.
1168 \end_layout
1169
1170 \begin_layout Enumerate
1171 Once you confirmed that the tex2lyx output is correct, add the new files
1172  to the corresponding lists in 
1173 \begin_inset Flex Code
1174 status collapsed
1175
1176 \begin_layout Plain Layout
1177 src/tex2lyx/test/runtests.py
1178 \end_layout
1179
1180 \end_inset
1181
1182
1183 \begin_inset Flex Code
1184 status collapsed
1185
1186 \begin_layout Plain Layout
1187 src/tex2lyx/Makefile.am
1188 \end_layout
1189
1190 \end_inset
1191
1192  and 
1193 \begin_inset Flex Code
1194 status collapsed
1195
1196 \begin_layout Plain Layout
1197 src/tex2lyx/test/CMakeLists.txt
1198 \end_layout
1199
1200 \end_inset
1201
1202 .
1203 \end_layout
1204
1205 \begin_layout Enumerate
1206 Commit the changes to the repository, or send a patch to the development
1207  list and ask for committing if you do not have commit rights.
1208 \end_layout
1209
1210 \begin_layout Subsection
1211 ctest automatic tests (cmake only)
1212 \end_layout
1213
1214 \begin_layout Standard
1215 Some tests are located in the 
1216 \begin_inset Flex Code
1217 status collapsed
1218
1219 \begin_layout Plain Layout
1220 development/autotests
1221 \end_layout
1222
1223 \end_inset
1224
1225  subfolder of the \SpecialChar LyX
1226  source code distribution.
1227  
1228 \begin_inset Flex Code
1229 status collapsed
1230
1231 \begin_layout Plain Layout
1232 cmake
1233 \end_layout
1234
1235 \end_inset
1236
1237  is required to run the automatic \SpecialChar LyX
1238  tests, running them is not implemented
1239  for autotools.
1240  
1241 \end_layout
1242
1243 \begin_layout Standard
1244 The \SpecialChar LyX
1245  tests can be run by the commands 
1246 \begin_inset Flex Code
1247 status collapsed
1248
1249 \begin_layout Plain Layout
1250 ctest
1251 \end_layout
1252
1253 \end_inset
1254
1255  (all platforms) or 
1256 \begin_inset Flex Code
1257 status collapsed
1258
1259 \begin_layout Plain Layout
1260 make test
1261 \end_layout
1262
1263 \end_inset
1264
1265  (when using a make based build system and not MSVC) in the 
1266 \begin_inset Flex Code
1267 status collapsed
1268
1269 \begin_layout Plain Layout
1270 autotests
1271 \end_layout
1272
1273 \end_inset
1274
1275  subfolder of the build directory.
1276 \end_layout
1277
1278 \begin_layout Subsubsection
1279 Export tests 
1280 \end_layout
1281
1282 \begin_layout Standard
1283 The export tests are integration tests.
1284  They take longer to run and are more likely to break than the tex2lyx tests.
1285  Nevertheless, they have caught many regressions and without a better alternativ
1286 e it is important to keep them up-to-date and understand how they work.
1287 \end_layout
1288
1289 \begin_layout Standard
1290 The export tests 
1291 \begin_inset Quotes eld
1292 \end_inset
1293
1294 reuse
1295 \begin_inset Quotes erd
1296 \end_inset
1297
1298  the documentation, template, and example files trying to export them to
1299  all supported output formats.
1300 \end_layout
1301
1302 \begin_layout Paragraph
1303 Expectations of LyX developers
1304 \end_layout
1305
1306 \begin_layout Standard
1307 Because the export tests are integration tests and take a long time to run,
1308  LyX developers are rarely expected to run all of the tests.
1309  Here are some good practices to follow by developers:
1310 \end_layout
1311
1312 \begin_layout Itemize
1313 When making a non-trivial change to a .layout file, run the export and layout
1314  tests corresponding with that .layout file.
1315 \end_layout
1316
1317 \begin_layout Itemize
1318 When making non-trivial changes to a .lyx file, run the export tests correspondin
1319 g to that .lyx file.
1320 \end_layout
1321
1322 \begin_layout Itemize
1323 When making non-trivial changes to LyX's \SpecialChar LaTeX
1324  export code (e.g.
1325  touching the encoding code or package handling code that you expect will
1326  change the exported \SpecialChar LaTeX
1327  in some way), consider running all of the export tests
1328  before and after your change.
1329  If there are differences, please reconcile these (i.e.
1330  fix the bug or fix the tests) 
1331 \emph on
1332 before
1333 \emph default
1334  committing.
1335  Ask for help if you're not sure what to do or if you do not want to run
1336  the tests, post the patch on the list and others will run the tests.
1337 \end_layout
1338
1339 \begin_layout Itemize
1340 Understand how to interpret test failures.
1341  If your commit is found to have broken a test, you should be able to interpret
1342  the test results when made aware of them.
1343  See Section 
1344 \begin_inset CommandInset ref
1345 LatexCommand ref
1346 reference "subsec:Interpreting-export-tests"
1347
1348 \end_inset
1349
1350 .
1351 \end_layout
1352
1353 \begin_layout Paragraph
1354 Configuring the tests
1355 \end_layout
1356
1357 \begin_layout Standard
1358 To enable these tests, add the 
1359 \begin_inset Flex Code
1360 status collapsed
1361
1362 \begin_layout Plain Layout
1363 -DLYX_ENABLE_EXPORT_TESTS=ON
1364 \end_layout
1365
1366 \end_inset
1367
1368  flag.
1369  For example:
1370 \end_layout
1371
1372 \begin_layout Standard
1373 \begin_inset Flex Code
1374 status collapsed
1375
1376 \begin_layout Plain Layout
1377 cmake -DLYX_ENABLE_EXPORT_TESTS=ON /path/to/source
1378 \end_layout
1379
1380 \end_inset
1381
1382
1383 \end_layout
1384
1385 \begin_layout Standard
1386 \noindent
1387 This flag will increase the time for the cmake command by several seconds,
1388  mainly because of the process of inverting tests (see Section 
1389 \begin_inset CommandInset ref
1390 LatexCommand ref
1391 reference "subsec:Interpreting-export-tests"
1392
1393 \end_inset
1394
1395 ).
1396 \end_layout
1397
1398 \begin_layout Paragraph
1399 Running the tests
1400 \end_layout
1401
1402 \begin_layout Standard
1403 To run all tests, in the build directory simply run the command 
1404 \begin_inset Flex Code
1405 status collapsed
1406
1407 \begin_layout Plain Layout
1408 ctest
1409 \end_layout
1410
1411 \end_inset
1412
1413 .
1414  To run only some of the tests, use the command 
1415 \begin_inset Flex Code
1416 status collapsed
1417
1418 \begin_layout Plain Layout
1419 ctest -R <pattern>
1420 \end_layout
1421
1422 \end_inset
1423
1424 , where 
1425 \begin_inset Flex Code
1426 status collapsed
1427
1428 \begin_layout Plain Layout
1429 <pattern>
1430 \end_layout
1431
1432 \end_inset
1433
1434  is a regular expression that matches test names.
1435  To run only the export tests, you can use 
1436 \begin_inset Flex Code
1437 status collapsed
1438
1439 \begin_layout Plain Layout
1440 ctest -L export
1441 \end_layout
1442
1443 \end_inset
1444
1445 .
1446  For the list of test categories available in addition to 
1447 \begin_inset Quotes eld
1448 \end_inset
1449
1450 export
1451 \begin_inset Quotes erd
1452 \end_inset
1453
1454 , run 
1455 \begin_inset Flex Code
1456 status collapsed
1457
1458 \begin_layout Plain Layout
1459 ctest \SpecialChar nobreakdash
1460 \SpecialChar nobreakdash
1461 print-labels
1462 \end_layout
1463
1464 \end_inset
1465
1466 .
1467  It is often useful to list the tests without running them (e.g.
1468  if you want to know how many tests there are or whether your 
1469 \begin_inset Flex Code
1470 status collapsed
1471
1472 \begin_layout Plain Layout
1473 <pattern>
1474 \end_layout
1475
1476 \end_inset
1477
1478  regular expression did what you expected).
1479  This can be done with the 
1480 \begin_inset Flex Code
1481 status collapsed
1482
1483 \begin_layout Plain Layout
1484 -N
1485 \end_layout
1486
1487 \end_inset
1488
1489  or 
1490 \begin_inset Flex Code
1491 status collapsed
1492
1493 \begin_layout Plain Layout
1494 \SpecialChar nobreakdash
1495 \SpecialChar nobreakdash
1496 show-only
1497 \end_layout
1498
1499 \end_inset
1500
1501  argument.
1502  We are still working on getting the tests to run in parallel which is supported
1503  by the 
1504 \begin_inset Flex Code
1505 status collapsed
1506
1507 \begin_layout Plain Layout
1508 ctest
1509 \end_layout
1510
1511 \end_inset
1512
1513  command with the 
1514 \begin_inset Flex Code
1515 status collapsed
1516
1517 \begin_layout Plain Layout
1518 -j <jobs>
1519 \end_layout
1520
1521 \end_inset
1522
1523  or 
1524 \begin_inset Flex Code
1525 status collapsed
1526
1527 \begin_layout Plain Layout
1528 \SpecialChar nobreakdash
1529 \SpecialChar nobreakdash
1530 parallel <jobs>
1531 \end_layout
1532
1533 \end_inset
1534
1535  argument.
1536  However, when running the tests in parallel, sometimes tests fail that
1537  pass when run sequentially.
1538  A reasonable approach is to first run the tests in parallel and then run
1539  the failed tests sequentially.
1540  For example, to run 8 jobs at a time:
1541 \end_layout
1542
1543 \begin_layout Standard
1544 \begin_inset Flex Code
1545 status collapsed
1546
1547 \begin_layout Plain Layout
1548 ctest -j8
1549 \end_layout
1550
1551 \end_inset
1552
1553
1554 \end_layout
1555
1556 \begin_layout Standard
1557 \begin_inset Flex Code
1558 status collapsed
1559
1560 \begin_layout Plain Layout
1561 ctest \SpecialChar nobreakdash
1562 \SpecialChar nobreakdash
1563 rerun-failed
1564 \end_layout
1565
1566 \end_inset
1567
1568
1569 \end_layout
1570
1571 \begin_layout Standard
1572 \noindent
1573 Note that some tests cannot be run in parallel.
1574  These tests are marked in the code with the 
1575 \begin_inset Flex Code
1576 status collapsed
1577
1578 \begin_layout Plain Layout
1579 \noindent
1580 RUN_SERIAL ON
1581 \end_layout
1582
1583 \end_inset
1584
1585  CMake property.
1586 \end_layout
1587
1588 \begin_layout Standard
1589 In some situations the option 
1590 \begin_inset Flex Code
1591 status collapsed
1592
1593 \begin_layout Plain Layout
1594 \SpecialChar nobreakdash
1595 \SpecialChar nobreakdash
1596 timeout <seconds>
1597 \end_layout
1598
1599 \end_inset
1600
1601  is useful.
1602  There have been bugs in LyX and in \SpecialChar LaTeX
1603  which cause compilation to hang, and
1604  without a timeout a test might never stop (in one case there was even a
1605  memory leak).
1606  If a test times out, the 
1607 \begin_inset Flex Code
1608 status collapsed
1609
1610 \begin_layout Plain Layout
1611 ctest
1612 \end_layout
1613
1614 \end_inset
1615
1616  command exits with error, but you can distinguish between a timed out test
1617  and a failed test in the output reported at the end of the 
1618 \begin_inset Flex Code
1619 status collapsed
1620
1621 \begin_layout Plain Layout
1622 ctest
1623 \end_layout
1624
1625 \end_inset
1626
1627  command.
1628 \end_layout
1629
1630 \begin_layout Standard
1631 See the manual (
1632 \begin_inset Flex Code
1633 status collapsed
1634
1635 \begin_layout Plain Layout
1636 man ctest
1637 \end_layout
1638
1639 \end_inset
1640
1641 ) the full list of command line options.
1642 \end_layout
1643
1644 \begin_layout Paragraph
1645 \begin_inset CommandInset label
1646 LatexCommand label
1647 name "subsec:Interpreting-export-tests"
1648
1649 \end_inset
1650
1651 Interpreting the export test results
1652 \end_layout
1653
1654 \begin_layout Standard
1655 A test can fail for several reasons, not all of them bad.
1656 \end_layout
1657
1658 \begin_layout Enumerate
1659 The .lyx file could have been added recently and some formats are not expected
1660  to work well.
1661 \end_layout
1662
1663 \begin_layout Enumerate
1664 A dependency is not met (e.g.
1665  the \SpecialChar LaTeX
1666  class file).
1667  One hint that this is the case is that the corresponding 
1668 \begin_inset Flex Code
1669 status collapsed
1670
1671 \begin_layout Plain Layout
1672 check_load
1673 \end_layout
1674
1675 \end_inset
1676
1677  test will likely also fail.
1678 \end_layout
1679
1680 \begin_layout Enumerate
1681 An inverted test fails to fail (i.e.
1682  export that previously failed now works).
1683 \end_layout
1684
1685 \begin_layout Enumerate
1686 An external dependency was updated (e.g.
1687  \SpecialChar TeX
1688  Live).
1689 \end_layout
1690
1691 \begin_layout Enumerate
1692 A recent code change introduced a bug.
1693 \end_layout
1694
1695 \begin_layout Enumerate
1696 \begin_inset CommandInset label
1697 LatexCommand label
1698 name "enu:exposed"
1699
1700 \end_inset
1701
1702 A change in a document exposed a previously unknown bug or an incompatibility
1703  with an export format (e.g.
1704  Lua\SpecialChar LaTeX
1705 ).
1706 \end_layout
1707
1708 \begin_layout Standard
1709 Because the .lyx files are exported in several formats, it is not surprising
1710  that many of the exports fail.
1711  This expectation of failure is addressed by 
1712 \begin_inset Quotes eld
1713 \end_inset
1714
1715 inverting
1716 \begin_inset Quotes erd
1717 \end_inset
1718
1719  the tests, that is, by marking the test as 
1720 \begin_inset Quotes eld
1721 \end_inset
1722
1723 passing
1724 \begin_inset Quotes erd
1725 \end_inset
1726
1727  if the export exits with error and as 
1728 \begin_inset Quotes eld
1729 \end_inset
1730
1731 failing
1732 \begin_inset Quotes erd
1733 \end_inset
1734
1735  if the export succeeds
1736 \emph on
1737 .
1738
1739 \emph default
1740  It follows that these expected failures will not show up as failed tests
1741  in the test results and thus will not pollute the 
1742 \begin_inset Quotes eld
1743 \end_inset
1744
1745 good
1746 \begin_inset Quotes erd
1747 \end_inset
1748
1749  tests.
1750  If the export actually succeeds, then the test will fail.
1751  The purpose of this failure is to get your attention—something has changed,
1752  possibly for the better.
1753 \end_layout
1754
1755 \begin_layout Standard
1756 We try to document why a test is inverted or ignored.
1757  See the comment (prefixed with 
1758 \begin_inset Flex Code
1759 status collapsed
1760
1761 \begin_layout Plain Layout
1762 #
1763 \end_layout
1764
1765 \end_inset
1766
1767 ) above the block in which the test is listed as inverted or ignored in
1768  the files 
1769 \begin_inset Flex Code
1770 status collapsed
1771
1772 \begin_layout Plain Layout
1773 development/autotests/suspiciousTests
1774 \end_layout
1775
1776 \end_inset
1777
1778  and 
1779 \begin_inset Flex Code
1780 status collapsed
1781
1782 \begin_layout Plain Layout
1783 development/autotests/ignoredTests
1784 \end_layout
1785
1786 \end_inset
1787
1788 .
1789  It is possible that an export goes from succeeding to failing just because
1790  the document was changed and the document was never expected to work with
1791  a certain export format in the first case.
1792  Once this is confirmed to be the situation, the test can be inverted.
1793 \end_layout
1794
1795 \begin_layout Standard
1796 A good question is why do we enable the tests for non-default formats? The
1797  answer is that if a non-default route is broken it is often because a bug
1798  was introduced in LyX and not because a document-specific change was made
1799  that is not supported by the route.
1800  In other words, there is a high signal/noise ratio in the export tests
1801  for some non-default formats.
1802  
1803 \end_layout
1804
1805 \begin_layout Standard
1806 What action should you take if a test fails? This depends:
1807 \end_layout
1808
1809 \begin_layout Standard
1810 Generally, if a change breaks compilation for the target format (for the
1811  manuals pdf2) without solving some important other issue, fix or revert
1812  the commit that led to failure.
1813  If a change breaks compilation for some non-target format (for the manuals
1814  everything except pdf2), invert the test.
1815  
1816 \end_layout
1817
1818 \begin_layout Standard
1819 A special case is given, if the export was succeeding before but showing
1820  garbled text in the PDF output.
1821  Try to establish, that when the compilation succeeded before the resulting
1822  PDF was good.
1823  Otherwise, it is in fact an improvement when a test fails.
1824  Now it might fail with a clear message of "language xyz not supported".
1825  It is always good to check manually why something fails and if it passes
1826  if the PDF output is good.
1827 \end_layout
1828
1829 \begin_layout Standard
1830 Sometimes a test is fixed as side-effect of some change.
1831  We should uninvert a test (remove it from the 
1832 \begin_inset Flex Code
1833 status collapsed
1834
1835 \begin_layout Plain Layout
1836 suspiciousTests
1837 \end_layout
1838
1839 \end_inset
1840
1841  file) in order to preserve the fix.
1842 \end_layout
1843
1844 \begin_layout Standard
1845 When a test or several tests fail, consider checking the files in the 
1846 \begin_inset Flex Code
1847 status collapsed
1848
1849 \begin_layout Plain Layout
1850 Testing/Temporary/
1851 \end_layout
1852
1853 \end_inset
1854
1855  subdirectory of your build directory.
1856  In this subdirectory are three files: the file 
1857 \begin_inset Flex Code
1858 status collapsed
1859
1860 \begin_layout Plain Layout
1861 LastTestsFailed.log
1862 \end_layout
1863
1864 \end_inset
1865
1866  simply lists the tests that failed on your last 
1867 \begin_inset Flex Code
1868 status collapsed
1869
1870 \begin_layout Plain Layout
1871 ctest
1872 \end_layout
1873
1874 \end_inset
1875
1876  command; the 
1877 \begin_inset Flex Code
1878 status collapsed
1879
1880 \begin_layout Plain Layout
1881 LastTest.log
1882 \end_layout
1883
1884 \end_inset
1885
1886  file contains the output from the tests (and often has details explaining
1887  why a test failed); and the 
1888 \begin_inset Flex Code
1889 status collapsed
1890
1891 \begin_layout Plain Layout
1892 CTestCostData.txt
1893 \end_layout
1894
1895 \end_inset
1896
1897  file lists the times that it took to run the tests.
1898 \end_layout
1899
1900 \begin_layout Paragraph
1901 Inverted tests
1902 \end_layout
1903
1904 \begin_layout Standard
1905 These tests are expected to always fail.
1906 \end_layout
1907
1908 \begin_layout Description
1909 inverted These tests are expected to fail, but are subject to be examined.
1910  It is expected that they will pass in a foreseeable future.
1911  They are labeled 'inverted'.
1912 \end_layout
1913
1914 \begin_layout Description
1915 suspended Some inverted tests are labeled 'suspended'.
1916  This means, they are not executed using 
1917 \begin_inset Flex Code
1918 status collapsed
1919
1920 \begin_layout Plain Layout
1921 ctest -L export
1922 \end_layout
1923
1924 \end_inset
1925
1926  or 
1927 \begin_inset Flex Code
1928 status collapsed
1929
1930 \begin_layout Plain Layout
1931 ctest -L inverted
1932 \end_layout
1933
1934 \end_inset
1935
1936 .
1937  From time to time they still have to be checked using 
1938 \begin_inset Flex Code
1939 status collapsed
1940
1941 \begin_layout Plain Layout
1942 ctest -L suspended
1943 \end_layout
1944
1945 \end_inset
1946
1947 .
1948 \end_layout
1949
1950 \begin_deeper
1951 \begin_layout Standard
1952 These tests are suspended, because they fail for known reasons which cannot
1953  ATM be resolved.
1954  But it is expected the reason might disappear in the future.
1955  Be it new TL or better handling in \SpecialChar LyX
1956 .
1957 \end_layout
1958
1959 \begin_layout Standard
1960 For ctest commands without the 
1961 \begin_inset Flex Code
1962 status collapsed
1963
1964 \begin_layout Plain Layout
1965 -L
1966 \end_layout
1967
1968 \end_inset
1969
1970  parameter nothing changes.
1971  Suspended or not, tests will be executed depending only on the regexes
1972  parameters given to the ctest command.
1973 \end_layout
1974
1975 \end_deeper
1976 \begin_layout Paragraph
1977 Unreliable tests
1978 \end_layout
1979
1980 \begin_layout Description
1981 nonstandard Requires non-standard ressources (\SpecialChar LaTeX
1982  packages and document classes,
1983  fonts, ...) that are not a requirement for running this test suite.
1984 \end_layout
1985
1986 \begin_deeper
1987 \begin_layout Standard
1988 These tests are labeled as 
1989 \family typewriter
1990 'nonstandard'.
1991 \end_layout
1992
1993 \end_deeper
1994 \begin_layout Description
1995 erratic Tests with 
1996 \begin_inset Quotes eld
1997 \end_inset
1998
1999 arbitrary
2000 \begin_inset Quotes erd
2001 \end_inset
2002
2003  result, depending on local configuration, OS, \SpecialChar TeX
2004  distribution, package versions,
2005  or the phase of the moon.
2006 \end_layout
2007
2008 \begin_deeper
2009 \begin_layout Standard
2010 These tests are labeled as 
2011 \family typewriter
2012 'erratic'.
2013 \end_layout
2014
2015 \end_deeper
2016 \begin_layout Paragraph
2017 Export test filtering
2018 \end_layout
2019
2020 \begin_layout Standard
2021 There are files which control the assignment of a label to a test.
2022 \end_layout
2023
2024 \begin_layout Description
2025 ignoredTests (small file)
2026 \begin_inset Newline newline
2027 \end_inset
2028
2029 Tests selected here are withdrawn
2030 \end_layout
2031
2032 \begin_deeper
2033 \begin_layout Labeling
2034 \labelwidthstring 00.00.0000
2035 Input Test of any export combination
2036 \end_layout
2037
2038 \begin_layout Labeling
2039 \labelwidthstring 00.00.0000
2040 Output Stop if tests not selected here
2041 \end_layout
2042
2043 \end_deeper
2044 \begin_layout Description
2045 unreliableTests: Tests selected either pass or fail, but that is dependent
2046  on the system where the test is run.
2047  Selected tests gain the label 'unreliable'.
2048 \end_layout
2049
2050 \begin_deeper
2051 \begin_layout Labeling
2052 \labelwidthstring 00.00.0000
2053 Input Each test which passed 'ignoredTests'
2054 \end_layout
2055
2056 \begin_layout Labeling
2057 \labelwidthstring 00.00.0000
2058 Output Stop if test selected, gain label 'unreliable'.
2059 \end_layout
2060
2061 \end_deeper
2062 \begin_layout Description
2063 suspiciousTests 
2064 \begin_inset space \space{}
2065 \end_inset
2066
2067
2068 \end_layout
2069
2070 \begin_deeper
2071 \begin_layout Labeling
2072 \labelwidthstring 00.00.0000
2073 Input Each test which passed 'unreliableTests'
2074 \end_layout
2075
2076 \begin_layout Labeling
2077 \labelwidthstring 00.00.0000
2078 Output Stop if not selected.
2079 \end_layout
2080
2081 \begin_layout Standard
2082 The following file is meant as subselections of 'suspiciousTests'.
2083  If neither subselection applies, test gains labels 'export' and 'inverted'
2084 \end_layout
2085
2086 \begin_layout Description
2087 suspendedTests Tests selected here gain the label 'suspended' but _not_
2088  'export' or 'inverted', although in ctest they remain inverted.
2089  ('ctest' knows only 'inverted' or not, labels are used only for test selection)
2090 \end_layout
2091
2092 \begin_deeper
2093 \begin_layout Labeling
2094 \labelwidthstring 00.00.0000
2095 Input Each test selected by 'suspiciousTests' 
2096 \end_layout
2097
2098 \begin_layout Labeling
2099 \labelwidthstring 00.00.0000
2100 Output Selected test gains label 'suspended'.
2101  
2102 \end_layout
2103
2104 \end_deeper
2105 \end_deeper
2106 \begin_layout Standard
2107 The following table may clarify label assignement
2108 \end_layout
2109
2110 \begin_layout Standard
2111 \begin_inset Tabular
2112 <lyxtabular version="3" rows="7" columns="12">
2113 <features tabularvalignment="middle">
2114 <column alignment="left" valignment="top" width="0pt">
2115 <column alignment="left" valignment="top" width="0pt">
2116 <column alignment="left" valignment="top" width="0pt">
2117 <column alignment="left" valignment="top" width="0pt">
2118 <column alignment="center" valignment="top">
2119 <column alignment="center" valignment="top">
2120 <column alignment="center" valignment="top">
2121 <column alignment="center" valignment="top">
2122 <column alignment="center" valignment="top">
2123 <column alignment="center" valignment="top">
2124 <column alignment="center" valignment="top">
2125 <column alignment="center" valignment="top">
2126 <row>
2127 <cell multicolumn="1" alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
2128 \begin_inset Text
2129
2130 \begin_layout Plain Layout
2131 Test found in file:
2132 \end_layout
2133
2134 \end_inset
2135 </cell>
2136 <cell multicolumn="2" alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
2137 \begin_inset Text
2138
2139 \begin_layout Plain Layout
2140
2141 \end_layout
2142
2143 \end_inset
2144 </cell>
2145 <cell multicolumn="2" alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
2146 \begin_inset Text
2147
2148 \begin_layout Plain Layout
2149
2150 \end_layout
2151
2152 \end_inset
2153 </cell>
2154 <cell multicolumn="2" alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
2155 \begin_inset Text
2156
2157 \begin_layout Plain Layout
2158
2159 \end_layout
2160
2161 \end_inset
2162 </cell>
2163 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2164 \begin_inset Text
2165
2166 \begin_layout Plain Layout
2167 Marked in ctest, Assigned label
2168 \end_layout
2169
2170 \end_inset
2171 </cell>
2172 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
2173 \begin_inset Text
2174
2175 \begin_layout Plain Layout
2176
2177 \end_layout
2178
2179 \end_inset
2180 </cell>
2181 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2182 \begin_inset Text
2183
2184 \begin_layout Plain Layout
2185
2186 \end_layout
2187
2188 \end_inset
2189 </cell>
2190 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2191 \begin_inset Text
2192
2193 \begin_layout Plain Layout
2194
2195 \end_layout
2196
2197 \end_inset
2198 </cell>
2199 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2200 \begin_inset Text
2201
2202 \begin_layout Plain Layout
2203
2204 \end_layout
2205
2206 \end_inset
2207 </cell>
2208 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2209 \begin_inset Text
2210
2211 \begin_layout Plain Layout
2212
2213 \end_layout
2214
2215 \end_inset
2216 </cell>
2217 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2218 \begin_inset Text
2219
2220 \begin_layout Plain Layout
2221
2222 \end_layout
2223
2224 \end_inset
2225 </cell>
2226 <cell multicolumn="2" alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
2227 \begin_inset Text
2228
2229 \begin_layout Plain Layout
2230
2231 \end_layout
2232
2233 \end_inset
2234 </cell>
2235 </row>
2236 <row>
2237 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2238 \begin_inset Text
2239
2240 \begin_layout Plain Layout
2241 Ignored
2242 \end_layout
2243
2244 \end_inset
2245 </cell>
2246 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2247 \begin_inset Text
2248
2249 \begin_layout Plain Layout
2250 Unreliable
2251 \end_layout
2252
2253 \end_inset
2254 </cell>
2255 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2256 \begin_inset Text
2257
2258 \begin_layout Plain Layout
2259 Suspicious
2260 \end_layout
2261
2262 \end_inset
2263 </cell>
2264 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2265 \begin_inset Text
2266
2267 \begin_layout Plain Layout
2268 Suspended
2269 \end_layout
2270
2271 \end_inset
2272 </cell>
2273 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2274 \begin_inset Text
2275
2276 \begin_layout Plain Layout
2277 export
2278 \end_layout
2279
2280 \end_inset
2281 </cell>
2282 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
2283 \begin_inset Text
2284
2285 \begin_layout Plain Layout
2286
2287 \end_layout
2288
2289 \end_inset
2290 </cell>
2291 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2292 \begin_inset Text
2293
2294 \begin_layout Plain Layout
2295 unreliable
2296 \end_layout
2297
2298 \end_inset
2299 </cell>
2300 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
2301 \begin_inset Text
2302
2303 \begin_layout Plain Layout
2304
2305 \end_layout
2306
2307 \end_inset
2308 </cell>
2309 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2310 \begin_inset Text
2311
2312 \begin_layout Plain Layout
2313 inverted
2314 \end_layout
2315
2316 \end_inset
2317 </cell>
2318 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
2319 \begin_inset Text
2320
2321 \begin_layout Plain Layout
2322
2323 \end_layout
2324
2325 \end_inset
2326 </cell>
2327 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2328 \begin_inset Text
2329
2330 \begin_layout Plain Layout
2331 suspended
2332 \end_layout
2333
2334 \end_inset
2335 </cell>
2336 <cell multicolumn="2" alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
2337 \begin_inset Text
2338
2339 \begin_layout Plain Layout
2340
2341 \end_layout
2342
2343 \end_inset
2344 </cell>
2345 </row>
2346 <row>
2347 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2348 \begin_inset Text
2349
2350 \begin_layout Plain Layout
2351 Yes
2352 \end_layout
2353
2354 \end_inset
2355 </cell>
2356 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2357 \begin_inset Text
2358
2359 \begin_layout Plain Layout
2360 -
2361 \end_layout
2362
2363 \end_inset
2364 </cell>
2365 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2366 \begin_inset Text
2367
2368 \begin_layout Plain Layout
2369 -
2370 \end_layout
2371
2372 \end_inset
2373 </cell>
2374 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2375 \begin_inset Text
2376
2377 \begin_layout Plain Layout
2378 -
2379 \end_layout
2380
2381 \end_inset
2382 </cell>
2383 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2384 \begin_inset Text
2385
2386 \begin_layout Plain Layout
2387 -
2388 \end_layout
2389
2390 \end_inset
2391 </cell>
2392 <cell alignment="center" valignment="top" topline="true" usebox="none">
2393 \begin_inset Text
2394
2395 \begin_layout Plain Layout
2396 -
2397 \end_layout
2398
2399 \end_inset
2400 </cell>
2401 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2402 \begin_inset Text
2403
2404 \begin_layout Plain Layout
2405 -
2406 \end_layout
2407
2408 \end_inset
2409 </cell>
2410 <cell alignment="center" valignment="top" topline="true" usebox="none">
2411 \begin_inset Text
2412
2413 \begin_layout Plain Layout
2414
2415 \end_layout
2416
2417 \end_inset
2418 </cell>
2419 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2420 \begin_inset Text
2421
2422 \begin_layout Plain Layout
2423 -
2424 \end_layout
2425
2426 \end_inset
2427 </cell>
2428 <cell alignment="center" valignment="top" topline="true" usebox="none">
2429 \begin_inset Text
2430
2431 \begin_layout Plain Layout
2432 -
2433 \end_layout
2434
2435 \end_inset
2436 </cell>
2437 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2438 \begin_inset Text
2439
2440 \begin_layout Plain Layout
2441 -
2442 \end_layout
2443
2444 \end_inset
2445 </cell>
2446 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
2447 \begin_inset Text
2448
2449 \begin_layout Plain Layout
2450 -
2451 \end_layout
2452
2453 \end_inset
2454 </cell>
2455 </row>
2456 <row>
2457 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2458 \begin_inset Text
2459
2460 \begin_layout Plain Layout
2461 No
2462 \end_layout
2463
2464 \end_inset
2465 </cell>
2466 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2467 \begin_inset Text
2468
2469 \begin_layout Plain Layout
2470 Yes
2471 \end_layout
2472
2473 \end_inset
2474 </cell>
2475 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2476 \begin_inset Text
2477
2478 \begin_layout Plain Layout
2479 -
2480 \end_layout
2481
2482 \end_inset
2483 </cell>
2484 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2485 \begin_inset Text
2486
2487 \begin_layout Plain Layout
2488 -
2489 \end_layout
2490
2491 \end_inset
2492 </cell>
2493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2494 \begin_inset Text
2495
2496 \begin_layout Plain Layout
2497 -
2498 \end_layout
2499
2500 \end_inset
2501 </cell>
2502 <cell alignment="center" valignment="top" topline="true" usebox="none">
2503 \begin_inset Text
2504
2505 \begin_layout Plain Layout
2506 -
2507 \end_layout
2508
2509 \end_inset
2510 </cell>
2511 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2512 \begin_inset Text
2513
2514 \begin_layout Plain Layout
2515 -
2516 \end_layout
2517
2518 \end_inset
2519 </cell>
2520 <cell alignment="center" valignment="top" topline="true" usebox="none">
2521 \begin_inset Text
2522
2523 \begin_layout Plain Layout
2524 +
2525 \end_layout
2526
2527 \end_inset
2528 </cell>
2529 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2530 \begin_inset Text
2531
2532 \begin_layout Plain Layout
2533 -
2534 \end_layout
2535
2536 \end_inset
2537 </cell>
2538 <cell alignment="center" valignment="top" topline="true" usebox="none">
2539 \begin_inset Text
2540
2541 \begin_layout Plain Layout
2542 -
2543 \end_layout
2544
2545 \end_inset
2546 </cell>
2547 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2548 \begin_inset Text
2549
2550 \begin_layout Plain Layout
2551 -
2552 \end_layout
2553
2554 \end_inset
2555 </cell>
2556 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
2557 \begin_inset Text
2558
2559 \begin_layout Plain Layout
2560 -
2561 \end_layout
2562
2563 \end_inset
2564 </cell>
2565 </row>
2566 <row>
2567 <cell multirow="4" alignment="left" valignment="middle" topline="true" leftline="true" usebox="none">
2568 \begin_inset Text
2569
2570 \begin_layout Plain Layout
2571
2572 \end_layout
2573
2574 \end_inset
2575 </cell>
2576 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2577 \begin_inset Text
2578
2579 \begin_layout Plain Layout
2580 No
2581 \end_layout
2582
2583 \end_inset
2584 </cell>
2585 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
2586 \begin_inset Text
2587
2588 \begin_layout Plain Layout
2589 Yes
2590 \end_layout
2591
2592 \end_inset
2593 </cell>
2594 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2595 \begin_inset Text
2596
2597 \begin_layout Plain Layout
2598 Yes
2599 \end_layout
2600
2601 \end_inset
2602 </cell>
2603 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2604 \begin_inset Text
2605
2606 \begin_layout Plain Layout
2607 -
2608 \end_layout
2609
2610 \end_inset
2611 </cell>
2612 <cell alignment="center" valignment="top" topline="true" usebox="none">
2613 \begin_inset Text
2614
2615 \begin_layout Plain Layout
2616 -
2617 \end_layout
2618
2619 \end_inset
2620 </cell>
2621 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2622 \begin_inset Text
2623
2624 \begin_layout Plain Layout
2625 -
2626 \end_layout
2627
2628 \end_inset
2629 </cell>
2630 <cell alignment="center" valignment="top" topline="true" usebox="none">
2631 \begin_inset Text
2632
2633 \begin_layout Plain Layout
2634 -
2635 \end_layout
2636
2637 \end_inset
2638 </cell>
2639 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2640 \begin_inset Text
2641
2642 \begin_layout Plain Layout
2643 +
2644 \end_layout
2645
2646 \end_inset
2647 </cell>
2648 <cell alignment="center" valignment="top" topline="true" usebox="none">
2649 \begin_inset Text
2650
2651 \begin_layout Plain Layout
2652 -
2653 \end_layout
2654
2655 \end_inset
2656 </cell>
2657 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2658 \begin_inset Text
2659
2660 \begin_layout Plain Layout
2661 -
2662 \end_layout
2663
2664 \end_inset
2665 </cell>
2666 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
2667 \begin_inset Text
2668
2669 \begin_layout Plain Layout
2670 +
2671 \end_layout
2672
2673 \end_inset
2674 </cell>
2675 </row>
2676 <row>
2677 <cell multirow="4" alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
2678 \begin_inset Text
2679
2680 \begin_layout Plain Layout
2681
2682 \end_layout
2683
2684 \end_inset
2685 </cell>
2686 <cell multirow="4" alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
2687 \begin_inset Text
2688
2689 \begin_layout Plain Layout
2690
2691 \end_layout
2692
2693 \end_inset
2694 </cell>
2695 <cell multirow="4" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2696 \begin_inset Text
2697
2698 \begin_layout Plain Layout
2699
2700 \end_layout
2701
2702 \end_inset
2703 </cell>
2704 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2705 \begin_inset Text
2706
2707 \begin_layout Plain Layout
2708 No
2709 \end_layout
2710
2711 \end_inset
2712 </cell>
2713 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2714 \begin_inset Text
2715
2716 \begin_layout Plain Layout
2717 -
2718 \end_layout
2719
2720 \end_inset
2721 </cell>
2722 <cell alignment="center" valignment="top" topline="true" usebox="none">
2723 \begin_inset Text
2724
2725 \begin_layout Plain Layout
2726 +
2727 \end_layout
2728
2729 \end_inset
2730 </cell>
2731 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2732 \begin_inset Text
2733
2734 \begin_layout Plain Layout
2735 -
2736 \end_layout
2737
2738 \end_inset
2739 </cell>
2740 <cell alignment="center" valignment="top" topline="true" usebox="none">
2741 \begin_inset Text
2742
2743 \begin_layout Plain Layout
2744 -
2745 \end_layout
2746
2747 \end_inset
2748 </cell>
2749 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2750 \begin_inset Text
2751
2752 \begin_layout Plain Layout
2753 +
2754 \end_layout
2755
2756 \end_inset
2757 </cell>
2758 <cell alignment="center" valignment="top" topline="true" usebox="none">
2759 \begin_inset Text
2760
2761 \begin_layout Plain Layout
2762 +
2763 \end_layout
2764
2765 \end_inset
2766 </cell>
2767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2768 \begin_inset Text
2769
2770 \begin_layout Plain Layout
2771 -
2772 \end_layout
2773
2774 \end_inset
2775 </cell>
2776 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
2777 \begin_inset Text
2778
2779 \begin_layout Plain Layout
2780 -
2781 \end_layout
2782
2783 \end_inset
2784 </cell>
2785 </row>
2786 <row>
2787 <cell multirow="4" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2788 \begin_inset Text
2789
2790 \begin_layout Plain Layout
2791
2792 \end_layout
2793
2794 \end_inset
2795 </cell>
2796 <cell multirow="4" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2797 \begin_inset Text
2798
2799 \begin_layout Plain Layout
2800
2801 \end_layout
2802
2803 \end_inset
2804 </cell>
2805 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2806 \begin_inset Text
2807
2808 \begin_layout Plain Layout
2809 No
2810 \end_layout
2811
2812 \end_inset
2813 </cell>
2814 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2815 \begin_inset Text
2816
2817 \begin_layout Plain Layout
2818 -
2819 \end_layout
2820
2821 \end_inset
2822 </cell>
2823 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2824 \begin_inset Text
2825
2826 \begin_layout Plain Layout
2827 -
2828 \end_layout
2829
2830 \end_inset
2831 </cell>
2832 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2833 \begin_inset Text
2834
2835 \begin_layout Plain Layout
2836 +
2837 \end_layout
2838
2839 \end_inset
2840 </cell>
2841 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2842 \begin_inset Text
2843
2844 \begin_layout Plain Layout
2845 -
2846 \end_layout
2847
2848 \end_inset
2849 </cell>
2850 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2851 \begin_inset Text
2852
2853 \begin_layout Plain Layout
2854 -
2855 \end_layout
2856
2857 \end_inset
2858 </cell>
2859 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2860 \begin_inset Text
2861
2862 \begin_layout Plain Layout
2863 -
2864 \end_layout
2865
2866 \end_inset
2867 </cell>
2868 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2869 \begin_inset Text
2870
2871 \begin_layout Plain Layout
2872 -
2873 \end_layout
2874
2875 \end_inset
2876 </cell>
2877 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2878 \begin_inset Text
2879
2880 \begin_layout Plain Layout
2881 -
2882 \end_layout
2883
2884 \end_inset
2885 </cell>
2886 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
2887 \begin_inset Text
2888
2889 \begin_layout Plain Layout
2890 -
2891 \end_layout
2892
2893 \end_inset
2894 </cell>
2895 </row>
2896 </lyxtabular>
2897
2898 \end_inset
2899
2900
2901 \end_layout
2902
2903 \begin_layout Subsubsection
2904 check_load tests
2905 \end_layout
2906
2907 \begin_layout Standard
2908 These tests check whether a .lyx file loads without any terminal messages.
2909  They correspond to the manual operations of simply opening a .lyx file on
2910  the terminal, exiting LyX once the file is loaded, and then checking whether
2911  there is any output from the terminal.
2912  These tests are useful for catching malformed .lyx files and parsing bugs.
2913  They can also be used to find a .lyx file in which an instance of something
2914  happens.
2915  To do this, compile LyX with a local patch that outputs something to the
2916  terminal when an instance is found, and then run the check_load tests to
2917  see if any fail, which would mean that the situation occurs in the LyX
2918  documentation files corresponding to the failed tests.
2919  These tests are expectedly fragile: any LyX diagnostic message, which is
2920  not necessarily an error, would cause the tests to fail.
2921  Similarly, any message output by a library (e.g.
2922  Qt) would also cause failure.
2923  There are some messages that the check_load tests are instructed to ignore,
2924  which are stored in the file 
2925 \begin_inset Flex Code
2926 status collapsed
2927
2928 \begin_layout Plain Layout
2929 development/autotests/filterCheckWarnings
2930 \end_layout
2931
2932 \end_inset
2933
2934 .
2935 \end_layout
2936
2937 \begin_layout Standard
2938 Under cmake, the tests are labeled as 'load'.
2939 \end_layout
2940
2941 \begin_layout Subsubsection
2942 URL tests
2943 \end_layout
2944
2945 \begin_layout Standard
2946 The URL tests are enabled with the 
2947 \begin_inset Flex Code
2948 status collapsed
2949
2950 \begin_layout Plain Layout
2951 -DLYX_ENABLE_URLTESTS=ON
2952 \end_layout
2953
2954 \end_inset
2955
2956  CMake flag and are useful for finding broken links in our documentation
2957  files.
2958  If a URL test fails, to see which link in particular was reported as broken,
2959  see the output in 
2960 \begin_inset Flex Code
2961 status collapsed
2962
2963 \begin_layout Plain Layout
2964 LastTest.log
2965 \end_layout
2966
2967 \end_inset
2968
2969 .
2970  These tests are extremely fragile (e.g.
2971  a test can depend on your Internet connection) and a failed URL test should
2972  not be taken too seriously.
2973  URL tests are labeled as 
2974 \family typewriter
2975 'url'.
2976 \end_layout
2977
2978 \begin_layout Paragraph
2979 Running URL tests
2980 \end_layout
2981
2982 \begin_layout Standard
2983 cmake is required to run the \SpecialChar LyX
2984  tests, running them is not implemented for
2985  autotools.
2986 \end_layout
2987
2988 \begin_layout Standard
2989 The appropriate commands are:
2990 \end_layout
2991
2992 \begin_layout Itemize
2993
2994 \family typewriter
2995 ctest -L url
2996 \family default
2997
2998 \begin_inset Newline newline
2999 \end_inset
3000
3001 runns all tests with label 
3002 \family typewriter
3003 'url'
3004 \end_layout
3005
3006 \begin_layout Itemize
3007
3008 \family typewriter
3009 ctest -R 'check_.*urls'
3010 \family default
3011
3012 \begin_inset Newline newline
3013 \end_inset
3014
3015 runns the tests 'check_accessible_urls'
3016 \end_layout
3017
3018 \begin_layout Standard
3019 Associated test results can be examined in ctest-log directory in files
3020  of the form 'LastFailed.*URLS.log'
3021 \end_layout
3022
3023 \begin_layout Subsubsection
3024 Test labels
3025 \end_layout
3026
3027 \begin_layout Standard
3028 ctest label commands:
3029 \end_layout
3030
3031 \begin_layout Description
3032 \SpecialChar nobreakdash
3033 \SpecialChar nobreakdash
3034 print-labels shows all assigned labels
3035 \end_layout
3036
3037 \begin_layout Description
3038 \SpecialChar nobreakdash
3039 L
3040 \begin_inset space ~
3041 \end_inset
3042
3043 labelname executes all tests to which this label is assigned to.
3044  A test may have more that one label.
3045 \end_layout
3046
3047 \begin_layout Description
3048 \SpecialChar nobreakdash
3049 j
3050 \begin_inset space ~
3051 \end_inset
3052
3053 number executes tests in parallel using 'number' simultaneously processes.
3054  Some tests are marked as 'sequencial', for them this parameter has no effect.
3055 \end_layout
3056
3057 \begin_layout Section
3058 Development policies
3059 \end_layout
3060
3061 \begin_layout Standard
3062 This chapter lists some guidelines that should be followed.
3063  This list is not complete, and many guidelines are in separate chapters,
3064  such as 
3065 \begin_inset Quotes eld
3066 \end_inset
3067
3068 When is an update of the .lyx file format number needed?
3069 \begin_inset Quotes erd
3070 \end_inset
3071
3072  in Section 
3073 \begin_inset CommandInset ref
3074 LatexCommand ref
3075 reference "sec:When-is-an"
3076
3077 \end_inset
3078
3079 .
3080 \end_layout
3081
3082 \begin_layout Subsection
3083 When to set a fixed milestone?
3084 \end_layout
3085
3086 \begin_layout Standard
3087 Only set a fixed milestone (like 2.1.4 or 2.2.0) if at least one of the following
3088  holds:
3089 \end_layout
3090
3091 \begin_layout Enumerate
3092 Somebody is actively working on a fix.
3093 \end_layout
3094
3095 \begin_layout Enumerate
3096 The bug is so severe that it would block the release if it is not fixed.
3097 \end_layout
3098
3099 \begin_layout Standard
3100 If a bug is important, but nobody is working on it, and it is no showstopper,
3101  use a milestone like 2.1.x or 2.2.x.
3102  For all other bugs, do not set a milestone at all.
3103 \end_layout
3104
3105 \begin_layout Subsection
3106 Can we add rc entries in stable branch?
3107 \end_layout
3108
3109 \begin_layout Standard
3110 No.
3111  We are supposed to increase the prefs2prefs version number with such things.
3112 \end_layout
3113
3114 \begin_layout Section
3115 Documentation policies
3116 \end_layout
3117
3118 \begin_layout Standard
3119 The main documentation consists of these files:
3120 \end_layout
3121
3122 \begin_layout Description
3123 splash.lyx it is the first file you see after an installation.
3124  We assume that a new user sees this.
3125  It is therefore designed to be as simple as possible.
3126  Therefore please don't add any new formatting, only fix typos etc.
3127  Splash.lyx is up to date for \SpecialChar LyX
3128  2.1.x, currently maintained by Uwe Stöhr.
3129 \end_layout
3130
3131 \begin_layout Description
3132 Intro.lyx This is the manual new users will read to learn \SpecialChar LyX
3133 .
3134  It therefore uses a limited set of formatting.
3135  For example a standard document class.
3136  Since new users will first learn about the formatting possibilities of
3137  \SpecialChar LyX
3138  please keep this file that simple.
3139  Intro.lyx is up to date for \SpecialChar LyX
3140  2.1.x, currently maintained by Uwe Stöhr.
3141 \end_layout
3142
3143 \begin_layout Description
3144 Tutorial.lyx our tutorial.
3145  It must be always up to date.
3146  Normally there is nothing to add since we don't want to overwhelm new users
3147  with too much details.
3148  The will learn these details while using \SpecialChar LyX
3149  and we have special manuals.
3150  Tutorial.lyx is up to date for \SpecialChar LyX
3151  2.1.x, currently maintained by Uwe Stöhr.
3152 \end_layout
3153
3154 \begin_layout Description
3155 UserGuide.lyx our main user guide.
3156  It covers a mixture of basic and detailed information.
3157  Some information is also in the Math and EmbeddedObjects manual so that
3158  the UserGuide refers to these files.
3159  UserGuide.lyx is up to date for \SpecialChar LyX
3160  2.1.x, currently maintained by Uwe Stöhr.
3161 \end_layout
3162
3163 \begin_layout Description
3164 EmbeddedObjects.lyx a special manual to explain things like tables floats
3165  boxes etc.
3166  in all detail.
3167  EmbeddedObjects.lyx is up to date for \SpecialChar LyX
3168  2.1.x, currently maintained by Uwe
3169  Stöhr.
3170 \end_layout
3171
3172 \begin_layout Description
3173 Math.lyx a special manual to explain everything regarding math in all detail.
3174  Math.lyx is up to date for \SpecialChar LyX
3175  2.1.x, currently maintained by Uwe Stöhr.
3176 \end_layout
3177
3178 \begin_layout Description
3179 Additional.lyx this manual covers information that would be too much detail
3180  for the UserGuide or would make the UserGuide uncompilable or only compilable
3181  when installing a lot of special \SpecialChar LaTeX
3182 -packages.
3183  What should be in the UserGuide or better in Additional is a matter of
3184  taste.
3185  it is up to you to decide that.
3186  Additional.lyx is not completely up to date for \SpecialChar LyX
3187  2.1.x.
3188  Only chapter
3189 \begin_inset space ~
3190 \end_inset
3191
3192 8 is up to date and currently maintained by Uwe Stöhr.
3193  It certainly needs a rewrite and update.
3194  For example many info in chapter
3195 \begin_inset space ~
3196 \end_inset
3197
3198 2 and 3 are already covered by the UserGuide and/or the EmbeddedObjects
3199  manual.
3200 \end_layout
3201
3202 \begin_layout Description
3203 Customization.lyx this manual covers information how to customize \SpecialChar LyX
3204  for certain
3205  output formats, operating systems, languages etc.
3206  It is currently completely out of date and needs a major rewrite and update.
3207  If you do this please assure that your information are given for all OSes
3208  and \SpecialChar LaTeX
3209  distributions (meaning be as objective as possible).
3210 \end_layout
3211
3212 \begin_layout Standard
3213 There are only 4
3214 \begin_inset space ~
3215 \end_inset
3216
3217 rules in editing the docs:
3218 \end_layout
3219
3220 \begin_layout Enumerate
3221 If you are not the maintainer of a doc file or a chapter/section, you MUST
3222  use change tracking so that the maintainer could review your changes
3223 \end_layout
3224
3225 \begin_layout Enumerate
3226 Respect the formatting of the document.
3227  The different files use different formatting styles.
3228  That is OK and has historic reasons nobody fully know ;-).
3229  But it is important to be consistent within one file.
3230 \end_layout
3231
3232 \begin_layout Enumerate
3233 All changes you make to a file in one language MUST also go the file in
3234  the other actively maintained languages.
3235  Normally the maintainer does this for you, if you are the maintainer, you
3236  must do this by copying or changing the changed or added text to the other
3237  files so that the translators sees the blue underlined text and know what
3238  they have to translate and what was changed.
3239 \end_layout
3240
3241 \begin_layout Enumerate
3242 You MUST assure that the document is compilable as 
3243 \begin_inset Quotes eld
3244 \end_inset
3245
3246 PDF (pdflatex)
3247 \begin_inset Quotes erd
3248 \end_inset
3249
3250  after your changes.
3251 \end_layout
3252
3253 \end_body
3254 \end_document