]> git.lyx.org Git - lyx.git/blob - lib/doc/Development.lyx
ad6c046592357c01869f574491c88c4e410be9ab
[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 unavailable
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 defne 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 automatic LyX 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 require the 
1291 \begin_inset Flex Code
1292 status collapsed
1293
1294 \begin_layout Plain Layout
1295 ctest
1296 \end_layout
1297
1298 \end_inset
1299
1300  command that comes with the 
1301 \begin_inset Flex Code
1302 status collapsed
1303
1304 \begin_layout Plain Layout
1305 cmake
1306 \end_layout
1307
1308 \end_inset
1309
1310  build system
1311 \end_layout
1312
1313 \begin_layout Paragraph
1314 Expectations of LyX developers
1315 \end_layout
1316
1317 \begin_layout Standard
1318 Because the export tests are integration tests and take a long time to run,
1319  LyX developers are rarely expected to run all of the tests.
1320  Here are some good practices to follow by developers:
1321 \end_layout
1322
1323 \begin_layout Itemize
1324 When making a non-trivial change to a .layout file, run the export and layout
1325  tests corresponding with that .layout file.
1326 \end_layout
1327
1328 \begin_layout Itemize
1329 When making non-trivial changes to a .lyx file, run the export tests correspondin
1330 g to that .lyx file.
1331 \end_layout
1332
1333 \begin_layout Itemize
1334 When making non-trivial changes to LyX's LaTeX export code (e.g.
1335  touching the encoding code or package handling code that you expect will
1336  change the exported LaTeX in some way), consider running all of the export
1337  tests before and after your change.
1338  If there are differences, please reconcile these (i.e.
1339  fix the bug or fix the tests) 
1340 \emph on
1341 before
1342 \emph default
1343  committing.
1344  Ask for help if you're not sure what to do or if you do not want to run
1345  the tests, post the patch on the list and others will run the tests.
1346 \end_layout
1347
1348 \begin_layout Itemize
1349 Understand how to interpret test failures.
1350  If your commit is found to have broken a test, you should be able to interpret
1351  the test results when made aware of them.
1352  See Section 
1353 \begin_inset CommandInset ref
1354 LatexCommand ref
1355 reference "subsec:Interpreting-export-tests"
1356
1357 \end_inset
1358
1359 .
1360 \end_layout
1361
1362 \begin_layout Paragraph
1363 Configuring the tests
1364 \end_layout
1365
1366 \begin_layout Standard
1367 To enable these tests, add the 
1368 \begin_inset Flex Code
1369 status collapsed
1370
1371 \begin_layout Plain Layout
1372 -DLYX_ENABLE_EXPORT_TESTS=ON
1373 \end_layout
1374
1375 \end_inset
1376
1377  flag.
1378  For example:
1379 \end_layout
1380
1381 \begin_layout Standard
1382 \begin_inset Flex Code
1383 status collapsed
1384
1385 \begin_layout Plain Layout
1386 cmake -DLYX_ENABLE_EXPORT_TESTS=ON /path/to/source
1387 \end_layout
1388
1389 \end_inset
1390
1391
1392 \end_layout
1393
1394 \begin_layout Standard
1395 \noindent
1396 This flag will increase the time for the cmake command by several seconds,
1397  mainly because of the process of inverting tests (see Section 
1398 \begin_inset CommandInset ref
1399 LatexCommand ref
1400 reference "subsec:Interpreting-export-tests"
1401
1402 \end_inset
1403
1404 ).
1405 \end_layout
1406
1407 \begin_layout Paragraph
1408 Running the tests
1409 \end_layout
1410
1411 \begin_layout Standard
1412 To run all tests, in the build directory simply run the command 
1413 \begin_inset Flex Code
1414 status collapsed
1415
1416 \begin_layout Plain Layout
1417 ctest
1418 \end_layout
1419
1420 \end_inset
1421
1422 .
1423  To run only some of the tests, use the command 
1424 \begin_inset Flex Code
1425 status collapsed
1426
1427 \begin_layout Plain Layout
1428 ctest -R <pattern>
1429 \end_layout
1430
1431 \end_inset
1432
1433 , where 
1434 \begin_inset Flex Code
1435 status collapsed
1436
1437 \begin_layout Plain Layout
1438 <pattern>
1439 \end_layout
1440
1441 \end_inset
1442
1443  is a regular expression that matches test names.
1444  To run only the export tests, you can use 
1445 \begin_inset Flex Code
1446 status collapsed
1447
1448 \begin_layout Plain Layout
1449 ctest -L export
1450 \end_layout
1451
1452 \end_inset
1453
1454 .
1455  For the list of test categories available in addition to 
1456 \begin_inset Quotes eld
1457 \end_inset
1458
1459 export
1460 \begin_inset Quotes erd
1461 \end_inset
1462
1463 , run 
1464 \begin_inset Flex Code
1465 status collapsed
1466
1467 \begin_layout Plain Layout
1468 ctest \SpecialChar nobreakdash
1469 \SpecialChar nobreakdash
1470 print-labels
1471 \end_layout
1472
1473 \end_inset
1474
1475 .
1476  It is often useful to list the tests without running them (e.g.
1477  if you want to know how many tests there are or whether your 
1478 \begin_inset Flex Code
1479 status collapsed
1480
1481 \begin_layout Plain Layout
1482 <pattern>
1483 \end_layout
1484
1485 \end_inset
1486
1487  regular expression did what you expected).
1488  This can be done with the 
1489 \begin_inset Flex Code
1490 status collapsed
1491
1492 \begin_layout Plain Layout
1493 -N
1494 \end_layout
1495
1496 \end_inset
1497
1498  or 
1499 \begin_inset Flex Code
1500 status collapsed
1501
1502 \begin_layout Plain Layout
1503 \SpecialChar nobreakdash
1504 \SpecialChar nobreakdash
1505 show-only
1506 \end_layout
1507
1508 \end_inset
1509
1510  argument.
1511  We are still working on getting the tests to run in parallel which is supported
1512  by the 
1513 \begin_inset Flex Code
1514 status collapsed
1515
1516 \begin_layout Plain Layout
1517 ctest
1518 \end_layout
1519
1520 \end_inset
1521
1522  command with the 
1523 \begin_inset Flex Code
1524 status collapsed
1525
1526 \begin_layout Plain Layout
1527 -j <jobs>
1528 \end_layout
1529
1530 \end_inset
1531
1532  or 
1533 \begin_inset Flex Code
1534 status collapsed
1535
1536 \begin_layout Plain Layout
1537 \SpecialChar nobreakdash
1538 \SpecialChar nobreakdash
1539 parallel <jobs>
1540 \end_layout
1541
1542 \end_inset
1543
1544  argument.
1545  However, when running the tests in parallel, sometimes tests fail that
1546  pass when run sequentially.
1547  A reasonable approach is to first run the tests in parallel and then run
1548  the failed tests sequentially.
1549  For example, to run 8 jobs at a time:
1550 \end_layout
1551
1552 \begin_layout Standard
1553 \begin_inset Flex Code
1554 status collapsed
1555
1556 \begin_layout Plain Layout
1557 ctest -j8
1558 \end_layout
1559
1560 \end_inset
1561
1562
1563 \end_layout
1564
1565 \begin_layout Standard
1566 \begin_inset Flex Code
1567 status collapsed
1568
1569 \begin_layout Plain Layout
1570 ctest \SpecialChar nobreakdash
1571 \SpecialChar nobreakdash
1572 rerun-failed
1573 \end_layout
1574
1575 \end_inset
1576
1577
1578 \end_layout
1579
1580 \begin_layout Standard
1581 \noindent
1582 Note that some tests cannot be run in parallel.
1583  These tests are marked in the code with the 
1584 \begin_inset Flex Code
1585 status collapsed
1586
1587 \begin_layout Plain Layout
1588 \noindent
1589 RUN_SERIAL ON
1590 \end_layout
1591
1592 \end_inset
1593
1594  CMake property.
1595 \end_layout
1596
1597 \begin_layout Standard
1598 In some situations the option 
1599 \begin_inset Flex Code
1600 status collapsed
1601
1602 \begin_layout Plain Layout
1603 \SpecialChar nobreakdash
1604 \SpecialChar nobreakdash
1605 timeout <seconds>
1606 \end_layout
1607
1608 \end_inset
1609
1610  is useful.
1611  There have been bugs in LyX and in LaTeX which cause compilation to hang,
1612  and without a timeout a test might never stop (in one case there was even
1613  a memory leak).
1614  If a test times out, the 
1615 \begin_inset Flex Code
1616 status collapsed
1617
1618 \begin_layout Plain Layout
1619 ctest
1620 \end_layout
1621
1622 \end_inset
1623
1624  command exits with error, but you can distinguish between a timed out test
1625  and a failed test in the output reported at the end of the 
1626 \begin_inset Flex Code
1627 status collapsed
1628
1629 \begin_layout Plain Layout
1630 ctest
1631 \end_layout
1632
1633 \end_inset
1634
1635  command.
1636 \end_layout
1637
1638 \begin_layout Standard
1639 See the manual (
1640 \begin_inset Flex Code
1641 status collapsed
1642
1643 \begin_layout Plain Layout
1644 man ctest
1645 \end_layout
1646
1647 \end_inset
1648
1649 ) the full list of command line options.
1650 \end_layout
1651
1652 \begin_layout Paragraph
1653 \begin_inset CommandInset label
1654 LatexCommand label
1655 name "subsec:Interpreting-export-tests"
1656
1657 \end_inset
1658
1659 Interpreting the export test results
1660 \end_layout
1661
1662 \begin_layout Standard
1663 A test can fail for several reasons, not all of them bad.
1664 \end_layout
1665
1666 \begin_layout Enumerate
1667 The .lyx file could have been added recently and some formats are not expected
1668  to work well.
1669 \end_layout
1670
1671 \begin_layout Enumerate
1672 A dependency is not met (e.g.
1673  the LaTeX class file).
1674  One hint that this is the case is that the corresponding 
1675 \begin_inset Flex Code
1676 status open
1677
1678 \begin_layout Plain Layout
1679 check_load
1680 \end_layout
1681
1682 \end_inset
1683
1684  test will likely also fail.
1685 \end_layout
1686
1687 \begin_layout Enumerate
1688 An inverted test fails to fail (i.e.
1689  export that previously failed now works).
1690 \end_layout
1691
1692 \begin_layout Enumerate
1693 An external dependency was updated (e.g.
1694  TeX Live).
1695 \end_layout
1696
1697 \begin_layout Enumerate
1698 A recent code change introduced a bug.
1699 \end_layout
1700
1701 \begin_layout Enumerate
1702 \begin_inset CommandInset label
1703 LatexCommand label
1704 name "enu:exposed"
1705
1706 \end_inset
1707
1708 A change in a document exposed a previously unknown bug or an incompatibility
1709  with an export format (e.g.
1710  LuaTeX).
1711 \end_layout
1712
1713 \begin_layout Standard
1714 Because the .lyx files are exported in several formats, it is not surprising
1715  that many of the exports fail.
1716  This expectation of failure is addressed by 
1717 \begin_inset Quotes eld
1718 \end_inset
1719
1720 inverting
1721 \begin_inset Quotes erd
1722 \end_inset
1723
1724  the tests, that is, by marking the test as 
1725 \begin_inset Quotes eld
1726 \end_inset
1727
1728 passing
1729 \begin_inset Quotes erd
1730 \end_inset
1731
1732  if the export exits with error and as 
1733 \begin_inset Quotes eld
1734 \end_inset
1735
1736 failing
1737 \begin_inset Quotes erd
1738 \end_inset
1739
1740  if the export succeeds
1741 \emph on
1742 .
1743
1744 \emph default
1745  It follows that these expected failures will not show up as failed tests
1746  in the test results and thus will not pollute the 
1747 \begin_inset Quotes eld
1748 \end_inset
1749
1750 good
1751 \begin_inset Quotes erd
1752 \end_inset
1753
1754  tests.
1755  If the export actually succeeds, then the test will fail.
1756  The purpose of this failure is to get your attention—something has changed,
1757  possibly for the better.
1758 \end_layout
1759
1760 \begin_layout Standard
1761 We try to document why a test is inverted or ignored.
1762  See the comment (prefixed with 
1763 \begin_inset Flex Code
1764 status collapsed
1765
1766 \begin_layout Plain Layout
1767 #
1768 \end_layout
1769
1770 \end_inset
1771
1772 ) above the block in which the test is listed as inverted or ignored in
1773  the files 
1774 \begin_inset Flex Code
1775 status collapsed
1776
1777 \begin_layout Plain Layout
1778 development/autotests/revertedTests
1779 \end_layout
1780
1781 \end_inset
1782
1783  and 
1784 \begin_inset Flex Code
1785 status collapsed
1786
1787 \begin_layout Plain Layout
1788 development/autotests/ignoredTests
1789 \end_layout
1790
1791 \end_inset
1792
1793 .
1794  It is possible that an export goes from succeeding to failing just because
1795  the document was changed and the document was never expected to work with
1796  a certain export format in the first case.
1797  Once this is confirmed to be the situation, the test can be inverted.
1798 \end_layout
1799
1800 \begin_layout Standard
1801 A good question is why do we enable the tests for non-default formats? The
1802  answer is that if a non-default route is broken it is often because a bug
1803  was introduced in LyX and not because a document-specific change was made
1804  that is not supported by the route.
1805  In other words, there is a high signal/noise ratio in the export tests
1806  for some non-default formats.
1807  
1808 \end_layout
1809
1810 \begin_layout Standard
1811 What action should you take if a test fails? First, check manually that
1812  when the compilation succeeded before the resulting PDF was good.
1813  In fact, sometimes it is an improvement when a test fails.
1814  If you check manually, it might be the case that the export was succeeding
1815  before but showing garbled text in a PDF output.
1816  Now it might fail with a clear message of "language xyz not supported".
1817  It is always good to check manually why something fails and if it passes
1818  if the PDF output is good.
1819 \end_layout
1820
1821 \begin_layout Standard
1822 Sometimes a test is fixed as side-effect of some change.
1823  We should uninvert a test (remove it from the 
1824 \begin_inset Flex Code
1825 status collapsed
1826
1827 \begin_layout Plain Layout
1828 revertedTests
1829 \end_layout
1830
1831 \end_inset
1832
1833  file) in order to preserve the fix.
1834 \end_layout
1835
1836 \begin_layout Standard
1837 When a test or several tests fail, consider checking the files in the 
1838 \begin_inset Flex Code
1839 status collapsed
1840
1841 \begin_layout Plain Layout
1842 Testing/Temporary/
1843 \end_layout
1844
1845 \end_inset
1846
1847  subdirectory of your build directory.
1848  In this subdirectory are three files: the file 
1849 \begin_inset Flex Code
1850 status collapsed
1851
1852 \begin_layout Plain Layout
1853 LastTestsFailed.log
1854 \end_layout
1855
1856 \end_inset
1857
1858  simply lists the tests that failed on your last 
1859 \begin_inset Flex Code
1860 status collapsed
1861
1862 \begin_layout Plain Layout
1863 ctest
1864 \end_layout
1865
1866 \end_inset
1867
1868  command; the 
1869 \begin_inset Flex Code
1870 status collapsed
1871
1872 \begin_layout Plain Layout
1873 LastTest.log
1874 \end_layout
1875
1876 \end_inset
1877
1878  file contains the output from the tests (and often has details explaining
1879  why a test failed); and the 
1880 \begin_inset Flex Code
1881 status collapsed
1882
1883 \begin_layout Plain Layout
1884 CTestCostData.txt
1885 \end_layout
1886
1887 \end_inset
1888
1889  file lists the times that it took to run the tests.
1890 \end_layout
1891
1892 \begin_layout Paragraph
1893 Inverted tests
1894 \end_layout
1895
1896 \begin_layout Standard
1897 These tests are expected to always fail.
1898 \end_layout
1899
1900 \begin_layout Description
1901 reverted These tests are expected to fail, but are subject to be examined.
1902  It is expected that they will pass in a foreseeable future.
1903  They are labeled 'reverted'.
1904 \end_layout
1905
1906 \begin_layout Description
1907 suspended Some inverted tests are labeled 'suspended'.
1908  This means, they are not executed using 
1909 \begin_inset Flex Code
1910 status collapsed
1911
1912 \begin_layout Plain Layout
1913 ctest -L export
1914 \end_layout
1915
1916 \end_inset
1917
1918  or 
1919 \begin_inset Flex Code
1920 status collapsed
1921
1922 \begin_layout Plain Layout
1923 ctest -L reverted
1924 \end_layout
1925
1926 \end_inset
1927
1928 .
1929  From time to time they still have to be checked using 
1930 \begin_inset Flex Code
1931 status collapsed
1932
1933 \begin_layout Plain Layout
1934 ctest -L suspended
1935 \end_layout
1936
1937 \end_inset
1938
1939 .
1940 \end_layout
1941
1942 \begin_deeper
1943 \begin_layout Standard
1944 These tests are suspended, because they fail for known reasons which cannot
1945  ATM be resolved.
1946  But it is expected the reason might disappear in the future.
1947  Be it new TL or better handling in \SpecialChar LyX
1948 .
1949 \end_layout
1950
1951 \begin_layout Standard
1952 For ctest commands without the 
1953 \begin_inset Flex Code
1954 status collapsed
1955
1956 \begin_layout Plain Layout
1957 -L
1958 \end_layout
1959
1960 \end_inset
1961
1962  parameter nothing changes.
1963  Suspended or not, tests will be executed depending only on the regexes
1964  parameters given to the ctest command.
1965 \end_layout
1966
1967 \end_deeper
1968 \begin_layout Paragraph
1969 Unreliable tests
1970 \end_layout
1971
1972 \begin_layout Description
1973 nonstandard Requires non-standard ressources (LaTeX packages and document
1974  classes, fonts, ...) that are not a requirement for running this test suite.
1975 \end_layout
1976
1977 \begin_deeper
1978 \begin_layout Standard
1979 These tests are labeled as 
1980 \family typewriter
1981 'nonstandard'.
1982 \end_layout
1983
1984 \end_deeper
1985 \begin_layout Description
1986 erratic Tests with 
1987 \begin_inset Quotes eld
1988 \end_inset
1989
1990 arbitrary
1991 \begin_inset Quotes erd
1992 \end_inset
1993
1994  result, depending on local configuration, OS, TeX distribution, package
1995  versions, or the phase of the moon.
1996 \end_layout
1997
1998 \begin_deeper
1999 \begin_layout Standard
2000 These tests are labeled as 
2001 \family typewriter
2002 'erratic'.
2003 \end_layout
2004
2005 \end_deeper
2006 \begin_layout Paragraph
2007 Export test filtering
2008 \end_layout
2009
2010 \begin_layout Standard
2011 There are files which control the assignment of a label to a test.
2012 \end_layout
2013
2014 \begin_layout Description
2015 ignoredTests (smal file)
2016 \begin_inset Newline newline
2017 \end_inset
2018
2019 Tests selected here are withdrawn
2020 \end_layout
2021
2022 \begin_deeper
2023 \begin_layout Labeling
2024 \labelwidthstring 00.00.0000
2025 Input Test of any export combination
2026 \end_layout
2027
2028 \begin_layout Labeling
2029 \labelwidthstring 00.00.0000
2030 Output Stop if tests not selected here
2031 \end_layout
2032
2033 \end_deeper
2034 \begin_layout Description
2035 unreliableTests: Tests selected either pass or fail, but that is dependent
2036  on the system where the test is run.
2037  Selected tests gain the label 'unreliable'.
2038 \end_layout
2039
2040 \begin_deeper
2041 \begin_layout Labeling
2042 \labelwidthstring 00.00.0000
2043 Input Each test which passed 'ignoredTests'
2044 \end_layout
2045
2046 \begin_layout Labeling
2047 \labelwidthstring 00.00.0000
2048 Output Stop if test selected, gain label 'unreliable'.
2049 \end_layout
2050
2051 \end_deeper
2052 \begin_layout Description
2053 suspiciousTests 
2054 \begin_inset space \space{}
2055 \end_inset
2056
2057
2058 \end_layout
2059
2060 \begin_deeper
2061 \begin_layout Labeling
2062 \labelwidthstring 00.00.0000
2063 Input Each test which passed 'unreliableTests'
2064 \end_layout
2065
2066 \begin_layout Labeling
2067 \labelwidthstring 00.00.0000
2068 Output Stop if not selected.
2069 \end_layout
2070
2071 \begin_layout Standard
2072 The following file is meant as subselections of 'suspiciousTests'.
2073  If neither subselection applies, test gains labels 'export' and 'reverted'
2074 \end_layout
2075
2076 \begin_layout Description
2077 suspendedTests Tests selected here gain the label 'suspended' but _not_
2078  'export' or 'reverted', although in ctest they remain reverted.
2079  ('ctest' knows only 'reverted' or not, labels are used only for test selection)
2080 \end_layout
2081
2082 \begin_deeper
2083 \begin_layout Labeling
2084 \labelwidthstring 00.00.0000
2085 Input Each test selected by 'suspiciousTests' 
2086 \end_layout
2087
2088 \begin_layout Labeling
2089 \labelwidthstring 00.00.0000
2090 Output Selected test gains label 'suspended'.
2091  
2092 \end_layout
2093
2094 \end_deeper
2095 \end_deeper
2096 \begin_layout Standard
2097 The following table may clarify label assignement
2098 \end_layout
2099
2100 \begin_layout Standard
2101 \begin_inset Tabular
2102 <lyxtabular version="3" rows="7" columns="12">
2103 <features tabularvalignment="middle">
2104 <column alignment="left" valignment="top" width="0pt">
2105 <column alignment="left" valignment="top" width="0pt">
2106 <column alignment="left" valignment="top" width="0pt">
2107 <column alignment="left" valignment="top" width="0pt">
2108 <column alignment="center" valignment="top">
2109 <column alignment="center" valignment="top">
2110 <column alignment="center" valignment="top">
2111 <column alignment="center" valignment="top">
2112 <column alignment="center" valignment="top">
2113 <column alignment="center" valignment="top">
2114 <column alignment="center" valignment="top">
2115 <column alignment="center" valignment="top">
2116 <row>
2117 <cell multicolumn="1" alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
2118 \begin_inset Text
2119
2120 \begin_layout Plain Layout
2121 Test found in file:
2122 \end_layout
2123
2124 \end_inset
2125 </cell>
2126 <cell multicolumn="2" alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
2127 \begin_inset Text
2128
2129 \begin_layout Plain Layout
2130
2131 \end_layout
2132
2133 \end_inset
2134 </cell>
2135 <cell multicolumn="2" alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
2136 \begin_inset Text
2137
2138 \begin_layout Plain Layout
2139
2140 \end_layout
2141
2142 \end_inset
2143 </cell>
2144 <cell multicolumn="2" alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
2145 \begin_inset Text
2146
2147 \begin_layout Plain Layout
2148
2149 \end_layout
2150
2151 \end_inset
2152 </cell>
2153 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2154 \begin_inset Text
2155
2156 \begin_layout Plain Layout
2157 Marked in ctest, Assigned label
2158 \end_layout
2159
2160 \end_inset
2161 </cell>
2162 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
2163 \begin_inset Text
2164
2165 \begin_layout Plain Layout
2166
2167 \end_layout
2168
2169 \end_inset
2170 </cell>
2171 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2172 \begin_inset Text
2173
2174 \begin_layout Plain Layout
2175
2176 \end_layout
2177
2178 \end_inset
2179 </cell>
2180 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2181 \begin_inset Text
2182
2183 \begin_layout Plain Layout
2184
2185 \end_layout
2186
2187 \end_inset
2188 </cell>
2189 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2190 \begin_inset Text
2191
2192 \begin_layout Plain Layout
2193
2194 \end_layout
2195
2196 \end_inset
2197 </cell>
2198 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2199 \begin_inset Text
2200
2201 \begin_layout Plain Layout
2202
2203 \end_layout
2204
2205 \end_inset
2206 </cell>
2207 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2208 \begin_inset Text
2209
2210 \begin_layout Plain Layout
2211
2212 \end_layout
2213
2214 \end_inset
2215 </cell>
2216 <cell multicolumn="2" alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
2217 \begin_inset Text
2218
2219 \begin_layout Plain Layout
2220
2221 \end_layout
2222
2223 \end_inset
2224 </cell>
2225 </row>
2226 <row>
2227 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2228 \begin_inset Text
2229
2230 \begin_layout Plain Layout
2231 Ignored
2232 \end_layout
2233
2234 \end_inset
2235 </cell>
2236 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2237 \begin_inset Text
2238
2239 \begin_layout Plain Layout
2240 Unreliable
2241 \end_layout
2242
2243 \end_inset
2244 </cell>
2245 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2246 \begin_inset Text
2247
2248 \begin_layout Plain Layout
2249 Suspicious
2250 \end_layout
2251
2252 \end_inset
2253 </cell>
2254 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2255 \begin_inset Text
2256
2257 \begin_layout Plain Layout
2258 Suspended
2259 \end_layout
2260
2261 \end_inset
2262 </cell>
2263 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2264 \begin_inset Text
2265
2266 \begin_layout Plain Layout
2267 export
2268 \end_layout
2269
2270 \end_inset
2271 </cell>
2272 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
2273 \begin_inset Text
2274
2275 \begin_layout Plain Layout
2276
2277 \end_layout
2278
2279 \end_inset
2280 </cell>
2281 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2282 \begin_inset Text
2283
2284 \begin_layout Plain Layout
2285 unreliable
2286 \end_layout
2287
2288 \end_inset
2289 </cell>
2290 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
2291 \begin_inset Text
2292
2293 \begin_layout Plain Layout
2294
2295 \end_layout
2296
2297 \end_inset
2298 </cell>
2299 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2300 \begin_inset Text
2301
2302 \begin_layout Plain Layout
2303 reverted
2304 \end_layout
2305
2306 \end_inset
2307 </cell>
2308 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
2309 \begin_inset Text
2310
2311 \begin_layout Plain Layout
2312
2313 \end_layout
2314
2315 \end_inset
2316 </cell>
2317 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2318 \begin_inset Text
2319
2320 \begin_layout Plain Layout
2321 suspended
2322 \end_layout
2323
2324 \end_inset
2325 </cell>
2326 <cell multicolumn="2" alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
2327 \begin_inset Text
2328
2329 \begin_layout Plain Layout
2330
2331 \end_layout
2332
2333 \end_inset
2334 </cell>
2335 </row>
2336 <row>
2337 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2338 \begin_inset Text
2339
2340 \begin_layout Plain Layout
2341 Yes
2342 \end_layout
2343
2344 \end_inset
2345 </cell>
2346 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2347 \begin_inset Text
2348
2349 \begin_layout Plain Layout
2350 -
2351 \end_layout
2352
2353 \end_inset
2354 </cell>
2355 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2356 \begin_inset Text
2357
2358 \begin_layout Plain Layout
2359 -
2360 \end_layout
2361
2362 \end_inset
2363 </cell>
2364 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2365 \begin_inset Text
2366
2367 \begin_layout Plain Layout
2368 -
2369 \end_layout
2370
2371 \end_inset
2372 </cell>
2373 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2374 \begin_inset Text
2375
2376 \begin_layout Plain Layout
2377 -
2378 \end_layout
2379
2380 \end_inset
2381 </cell>
2382 <cell alignment="center" valignment="top" topline="true" usebox="none">
2383 \begin_inset Text
2384
2385 \begin_layout Plain Layout
2386 -
2387 \end_layout
2388
2389 \end_inset
2390 </cell>
2391 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2392 \begin_inset Text
2393
2394 \begin_layout Plain Layout
2395 -
2396 \end_layout
2397
2398 \end_inset
2399 </cell>
2400 <cell alignment="center" valignment="top" topline="true" usebox="none">
2401 \begin_inset Text
2402
2403 \begin_layout Plain Layout
2404
2405 \end_layout
2406
2407 \end_inset
2408 </cell>
2409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2410 \begin_inset Text
2411
2412 \begin_layout Plain Layout
2413 -
2414 \end_layout
2415
2416 \end_inset
2417 </cell>
2418 <cell alignment="center" valignment="top" topline="true" usebox="none">
2419 \begin_inset Text
2420
2421 \begin_layout Plain Layout
2422 -
2423 \end_layout
2424
2425 \end_inset
2426 </cell>
2427 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2428 \begin_inset Text
2429
2430 \begin_layout Plain Layout
2431 -
2432 \end_layout
2433
2434 \end_inset
2435 </cell>
2436 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
2437 \begin_inset Text
2438
2439 \begin_layout Plain Layout
2440 -
2441 \end_layout
2442
2443 \end_inset
2444 </cell>
2445 </row>
2446 <row>
2447 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2448 \begin_inset Text
2449
2450 \begin_layout Plain Layout
2451 No
2452 \end_layout
2453
2454 \end_inset
2455 </cell>
2456 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2457 \begin_inset Text
2458
2459 \begin_layout Plain Layout
2460 Yes
2461 \end_layout
2462
2463 \end_inset
2464 </cell>
2465 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2466 \begin_inset Text
2467
2468 \begin_layout Plain Layout
2469 -
2470 \end_layout
2471
2472 \end_inset
2473 </cell>
2474 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2475 \begin_inset Text
2476
2477 \begin_layout Plain Layout
2478 -
2479 \end_layout
2480
2481 \end_inset
2482 </cell>
2483 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2484 \begin_inset Text
2485
2486 \begin_layout Plain Layout
2487 -
2488 \end_layout
2489
2490 \end_inset
2491 </cell>
2492 <cell alignment="center" valignment="top" topline="true" usebox="none">
2493 \begin_inset Text
2494
2495 \begin_layout Plain Layout
2496 -
2497 \end_layout
2498
2499 \end_inset
2500 </cell>
2501 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2502 \begin_inset Text
2503
2504 \begin_layout Plain Layout
2505 -
2506 \end_layout
2507
2508 \end_inset
2509 </cell>
2510 <cell alignment="center" valignment="top" topline="true" usebox="none">
2511 \begin_inset Text
2512
2513 \begin_layout Plain Layout
2514 +
2515 \end_layout
2516
2517 \end_inset
2518 </cell>
2519 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2520 \begin_inset Text
2521
2522 \begin_layout Plain Layout
2523 -
2524 \end_layout
2525
2526 \end_inset
2527 </cell>
2528 <cell alignment="center" valignment="top" topline="true" usebox="none">
2529 \begin_inset Text
2530
2531 \begin_layout Plain Layout
2532 -
2533 \end_layout
2534
2535 \end_inset
2536 </cell>
2537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2538 \begin_inset Text
2539
2540 \begin_layout Plain Layout
2541 -
2542 \end_layout
2543
2544 \end_inset
2545 </cell>
2546 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
2547 \begin_inset Text
2548
2549 \begin_layout Plain Layout
2550 -
2551 \end_layout
2552
2553 \end_inset
2554 </cell>
2555 </row>
2556 <row>
2557 <cell multirow="4" alignment="left" valignment="middle" topline="true" leftline="true" usebox="none">
2558 \begin_inset Text
2559
2560 \begin_layout Plain Layout
2561
2562 \end_layout
2563
2564 \end_inset
2565 </cell>
2566 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2567 \begin_inset Text
2568
2569 \begin_layout Plain Layout
2570 No
2571 \end_layout
2572
2573 \end_inset
2574 </cell>
2575 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
2576 \begin_inset Text
2577
2578 \begin_layout Plain Layout
2579 Yes
2580 \end_layout
2581
2582 \end_inset
2583 </cell>
2584 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2585 \begin_inset Text
2586
2587 \begin_layout Plain Layout
2588 Yes
2589 \end_layout
2590
2591 \end_inset
2592 </cell>
2593 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2594 \begin_inset Text
2595
2596 \begin_layout Plain Layout
2597 -
2598 \end_layout
2599
2600 \end_inset
2601 </cell>
2602 <cell alignment="center" valignment="top" topline="true" usebox="none">
2603 \begin_inset Text
2604
2605 \begin_layout Plain Layout
2606 -
2607 \end_layout
2608
2609 \end_inset
2610 </cell>
2611 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2612 \begin_inset Text
2613
2614 \begin_layout Plain Layout
2615 -
2616 \end_layout
2617
2618 \end_inset
2619 </cell>
2620 <cell alignment="center" valignment="top" topline="true" usebox="none">
2621 \begin_inset Text
2622
2623 \begin_layout Plain Layout
2624 -
2625 \end_layout
2626
2627 \end_inset
2628 </cell>
2629 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2630 \begin_inset Text
2631
2632 \begin_layout Plain Layout
2633 +
2634 \end_layout
2635
2636 \end_inset
2637 </cell>
2638 <cell alignment="center" valignment="top" topline="true" usebox="none">
2639 \begin_inset Text
2640
2641 \begin_layout Plain Layout
2642 -
2643 \end_layout
2644
2645 \end_inset
2646 </cell>
2647 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2648 \begin_inset Text
2649
2650 \begin_layout Plain Layout
2651 -
2652 \end_layout
2653
2654 \end_inset
2655 </cell>
2656 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
2657 \begin_inset Text
2658
2659 \begin_layout Plain Layout
2660 +
2661 \end_layout
2662
2663 \end_inset
2664 </cell>
2665 </row>
2666 <row>
2667 <cell multirow="4" alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
2668 \begin_inset Text
2669
2670 \begin_layout Plain Layout
2671
2672 \end_layout
2673
2674 \end_inset
2675 </cell>
2676 <cell multirow="4" alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
2677 \begin_inset Text
2678
2679 \begin_layout Plain Layout
2680
2681 \end_layout
2682
2683 \end_inset
2684 </cell>
2685 <cell multirow="4" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2686 \begin_inset Text
2687
2688 \begin_layout Plain Layout
2689
2690 \end_layout
2691
2692 \end_inset
2693 </cell>
2694 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2695 \begin_inset Text
2696
2697 \begin_layout Plain Layout
2698 No
2699 \end_layout
2700
2701 \end_inset
2702 </cell>
2703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2704 \begin_inset Text
2705
2706 \begin_layout Plain Layout
2707 -
2708 \end_layout
2709
2710 \end_inset
2711 </cell>
2712 <cell alignment="center" valignment="top" topline="true" usebox="none">
2713 \begin_inset Text
2714
2715 \begin_layout Plain Layout
2716 +
2717 \end_layout
2718
2719 \end_inset
2720 </cell>
2721 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2722 \begin_inset Text
2723
2724 \begin_layout Plain Layout
2725 -
2726 \end_layout
2727
2728 \end_inset
2729 </cell>
2730 <cell alignment="center" valignment="top" topline="true" usebox="none">
2731 \begin_inset Text
2732
2733 \begin_layout Plain Layout
2734 -
2735 \end_layout
2736
2737 \end_inset
2738 </cell>
2739 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2740 \begin_inset Text
2741
2742 \begin_layout Plain Layout
2743 +
2744 \end_layout
2745
2746 \end_inset
2747 </cell>
2748 <cell alignment="center" valignment="top" topline="true" usebox="none">
2749 \begin_inset Text
2750
2751 \begin_layout Plain Layout
2752 +
2753 \end_layout
2754
2755 \end_inset
2756 </cell>
2757 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2758 \begin_inset Text
2759
2760 \begin_layout Plain Layout
2761 -
2762 \end_layout
2763
2764 \end_inset
2765 </cell>
2766 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
2767 \begin_inset Text
2768
2769 \begin_layout Plain Layout
2770 -
2771 \end_layout
2772
2773 \end_inset
2774 </cell>
2775 </row>
2776 <row>
2777 <cell multirow="4" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2778 \begin_inset Text
2779
2780 \begin_layout Plain Layout
2781
2782 \end_layout
2783
2784 \end_inset
2785 </cell>
2786 <cell multirow="4" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2787 \begin_inset Text
2788
2789 \begin_layout Plain Layout
2790
2791 \end_layout
2792
2793 \end_inset
2794 </cell>
2795 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2796 \begin_inset Text
2797
2798 \begin_layout Plain Layout
2799 No
2800 \end_layout
2801
2802 \end_inset
2803 </cell>
2804 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2805 \begin_inset Text
2806
2807 \begin_layout Plain Layout
2808 -
2809 \end_layout
2810
2811 \end_inset
2812 </cell>
2813 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2814 \begin_inset Text
2815
2816 \begin_layout Plain Layout
2817 -
2818 \end_layout
2819
2820 \end_inset
2821 </cell>
2822 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2823 \begin_inset Text
2824
2825 \begin_layout Plain Layout
2826 +
2827 \end_layout
2828
2829 \end_inset
2830 </cell>
2831 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2832 \begin_inset Text
2833
2834 \begin_layout Plain Layout
2835 -
2836 \end_layout
2837
2838 \end_inset
2839 </cell>
2840 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2841 \begin_inset Text
2842
2843 \begin_layout Plain Layout
2844 -
2845 \end_layout
2846
2847 \end_inset
2848 </cell>
2849 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2850 \begin_inset Text
2851
2852 \begin_layout Plain Layout
2853 -
2854 \end_layout
2855
2856 \end_inset
2857 </cell>
2858 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2859 \begin_inset Text
2860
2861 \begin_layout Plain Layout
2862 -
2863 \end_layout
2864
2865 \end_inset
2866 </cell>
2867 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2868 \begin_inset Text
2869
2870 \begin_layout Plain Layout
2871 -
2872 \end_layout
2873
2874 \end_inset
2875 </cell>
2876 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
2877 \begin_inset Text
2878
2879 \begin_layout Plain Layout
2880 -
2881 \end_layout
2882
2883 \end_inset
2884 </cell>
2885 </row>
2886 </lyxtabular>
2887
2888 \end_inset
2889
2890
2891 \end_layout
2892
2893 \begin_layout Subsubsection
2894 check_load tests
2895 \end_layout
2896
2897 \begin_layout Standard
2898 These tests check whether a .lyx file loads without any terminal messages.
2899  They correspond to the manual operations of simply opening a .lyx file on
2900  the terminal, exiting LyX once the file is loaded, and then checking whether
2901  there is any output from the terminal.
2902  These tests are useful for catching malformed .lyx files and parsing bugs.
2903  They can also be used to find a .lyx file in which an instance of something
2904  happens.
2905  To do this, compile LyX with a local patch that outputs something to the
2906  terminal when an instance is found, and then run the check_load tests to
2907  see if any fail, which would mean that the situation occurs in the LyX
2908  documentation files corresponding to the failed tests.
2909  These tests are expectedly fragile: any LyX diagnostic message, which is
2910  not necessarily an error, would cause the tests to fail.
2911  Similarly, any message output by a library (e.g.
2912  Qt) would also cause failure.
2913  There are some messages that the check_load tests are instructed to ignore,
2914  which are stored in the file 
2915 \begin_inset Flex Code
2916 status collapsed
2917
2918 \begin_layout Plain Layout
2919 development/autotests/filterCheckWarnings
2920 \end_layout
2921
2922 \end_inset
2923
2924 .
2925 \end_layout
2926
2927 \begin_layout Standard
2928 Under cmake, the tests are labeled as 'load'.
2929 \end_layout
2930
2931 \begin_layout Subsubsection
2932 URL tests
2933 \end_layout
2934
2935 \begin_layout Standard
2936 The URL tests are enabled with the 
2937 \begin_inset Flex Code
2938 status collapsed
2939
2940 \begin_layout Plain Layout
2941 -DLYX_ENABLE_URLTESTS=ON
2942 \end_layout
2943
2944 \end_inset
2945
2946  CMake flag and are useful for finding broken links in our documentation
2947  files.
2948  If a URL test fails, to see which link in particular was reported as broken,
2949  see the output in 
2950 \begin_inset Flex Code
2951 status collapsed
2952
2953 \begin_layout Plain Layout
2954 LastTest.log
2955 \end_layout
2956
2957 \end_inset
2958
2959 .
2960  These tests are extremely fragile (e.g.
2961  a test can depend on your Internet connection) and a failed URL test should
2962  not be taken too seriously.
2963  URL tests are labeled as 
2964 \family typewriter
2965 'url'.
2966 \end_layout
2967
2968 \begin_layout Paragraph
2969 Running URL tests
2970 \end_layout
2971
2972 \begin_layout Standard
2973 cmake is required to run the \SpecialChar LyX
2974  tests, running them is not implemented for
2975  autotools.
2976 \end_layout
2977
2978 \begin_layout Standard
2979 The appropriate commands are:
2980 \end_layout
2981
2982 \begin_layout Itemize
2983
2984 \family typewriter
2985 ctest -L url
2986 \family default
2987
2988 \begin_inset Newline newline
2989 \end_inset
2990
2991 runns all tests with label 
2992 \family typewriter
2993 'url'
2994 \end_layout
2995
2996 \begin_layout Itemize
2997
2998 \family typewriter
2999 ctest -R 'check_.*urls'
3000 \family default
3001
3002 \begin_inset Newline newline
3003 \end_inset
3004
3005 runns the tests 'check_accessible_urls'
3006 \end_layout
3007
3008 \begin_layout Standard
3009 Associated test results can be examined in ctest-log directory in files
3010  of the form 'LastFailed.*URLS.log'
3011 \end_layout
3012
3013 \begin_layout Subsubsection
3014 Test labels
3015 \end_layout
3016
3017 \begin_layout Standard
3018 ctest label commands:
3019 \end_layout
3020
3021 \begin_layout Description
3022 \SpecialChar nobreakdash
3023 \SpecialChar nobreakdash
3024 print-labels shows all assigned labels
3025 \end_layout
3026
3027 \begin_layout Description
3028 \SpecialChar nobreakdash
3029 L
3030 \begin_inset space ~
3031 \end_inset
3032
3033 labelname executes all tests to which this label is asigned to.
3034  A test may have more that one label.
3035 \end_layout
3036
3037 \begin_layout Description
3038 \SpecialChar nobreakdash
3039 j
3040 \begin_inset space ~
3041 \end_inset
3042
3043 number executes tests in parallel using 'number' simultaneously processes.
3044  Some tests are marked as 'sequencial', for them this parameter has no effect.
3045 \end_layout
3046
3047 \begin_layout Section
3048 Development policies
3049 \end_layout
3050
3051 \begin_layout Standard
3052 This chapter lists some guidelines that should be followed.
3053  This list is not complete, and many guidelines are in separate chapters,
3054  such as 
3055 \begin_inset Quotes eld
3056 \end_inset
3057
3058 When is an update of the .lyx file format number needed?
3059 \begin_inset Quotes erd
3060 \end_inset
3061
3062  in Section 
3063 \begin_inset CommandInset ref
3064 LatexCommand ref
3065 reference "sec:When-is-an"
3066
3067 \end_inset
3068
3069 .
3070 \end_layout
3071
3072 \begin_layout Subsection
3073 When to set a fixed milestone?
3074 \end_layout
3075
3076 \begin_layout Standard
3077 Only set a fixed milestone (like 2.1.4 or 2.2.0) if at least one of the following
3078  holds:
3079 \end_layout
3080
3081 \begin_layout Enumerate
3082 Somebody is actively working on a fix.
3083 \end_layout
3084
3085 \begin_layout Enumerate
3086 The bug is so severe that it would block the release if it is not fixed.
3087 \end_layout
3088
3089 \begin_layout Standard
3090 If a bug is important, but nobody is working on it, and it is no showstopper,
3091  use a milestone like 2.1.x or 2.2.x.
3092  For all other bugs, do not set a milestone at all.
3093 \end_layout
3094
3095 \begin_layout Subsection
3096 Can we add rc entries in stable branch?
3097 \end_layout
3098
3099 \begin_layout Standard
3100 No.
3101  We are supposed to increase the prefs2prefs version number with such things.
3102 \end_layout
3103
3104 \begin_layout Section
3105 Documentation policies
3106 \end_layout
3107
3108 \begin_layout Standard
3109 The main documentation consists of these files:
3110 \end_layout
3111
3112 \begin_layout Description
3113 splash.lyx it is the first file you see after an installation.
3114  We assume that a new user sees this.
3115  It is therefore designed to be as simple as possible.
3116  Therefore please don't add any new formatting, only fix typos etc.
3117  Splash.lyx is up to date for \SpecialChar LyX
3118  2.1.x, currently maintained by Uwe Stöhr.
3119 \end_layout
3120
3121 \begin_layout Description
3122 Intro.lyx This is the manual new users will read to learn \SpecialChar LyX
3123 .
3124  It therefore uses a limited set of formatting.
3125  For example a standard document class.
3126  Since new users will first learn about the formatting possibilities of
3127  \SpecialChar LyX
3128  please keep this file that simple.
3129  Intro.lyx is up to date for \SpecialChar LyX
3130  2.1.x, currently maintained by Uwe Stöhr.
3131 \end_layout
3132
3133 \begin_layout Description
3134 Tutorial.lyx our tutorial.
3135  It must be always up to date.
3136  Normally there is nothing to add since we don't want to overwhelm new users
3137  with too much details.
3138  The will learn these details while using \SpecialChar LyX
3139  and we have special manuals.
3140  Tutorial.lyx is up to date for \SpecialChar LyX
3141  2.1.x, currently maintained by Uwe Stöhr.
3142 \end_layout
3143
3144 \begin_layout Description
3145 UserGuide.lyx our main user guide.
3146  It covers a mixture of basic and detailed information.
3147  Some information is also in the Math and EmbeddedObjects manual so that
3148  the UserGuide refers to these files.
3149  UserGuide.lyx is up to date for \SpecialChar LyX
3150  2.1.x, currently maintained by Uwe Stöhr.
3151 \end_layout
3152
3153 \begin_layout Description
3154 EmbeddedObjects.lyx a special manual to explain things like tables floats
3155  boxes etc.
3156  in all detail.
3157  EmbeddedObjects.lyx is up to date for \SpecialChar LyX
3158  2.1.x, currently maintained by Uwe
3159  Stöhr.
3160 \end_layout
3161
3162 \begin_layout Description
3163 Math.lyx a special manual to explain everything regarding math in all detail.
3164  Math.lyx is up to date for \SpecialChar LyX
3165  2.1.x, currently maintained by Uwe Stöhr.
3166 \end_layout
3167
3168 \begin_layout Description
3169 Additional.lyx this manual covers information that would be too much detail
3170  for the UserGuide or would make the UserGuide uncompilable or only compilable
3171  when installing a lot of special \SpecialChar LaTeX
3172 -packages.
3173  What should be in the UserGuide or better in Additional is a matter of
3174  taste.
3175  it is up to you to decide that.
3176  Additional.lyx is not completely up to date for \SpecialChar LyX
3177  2.1.x.
3178  Only chapter
3179 \begin_inset space ~
3180 \end_inset
3181
3182 8 is up to date and currently maintained by Uwe Stöhr.
3183  It certainly needs a rewrite and update.
3184  For example many info in chapter
3185 \begin_inset space ~
3186 \end_inset
3187
3188 2 and 3 are already covered by the UserGuide and/or the EmbeddedObjects
3189  manual.
3190 \end_layout
3191
3192 \begin_layout Description
3193 Customization.lyx this manual covers information how to customize \SpecialChar LyX
3194  for certain
3195  output formats, operating systems, languages etc.
3196  It is currently completely out of date and needs a major rewrite and update.
3197  If you do this please assure that your information are given for all OSes
3198  and \SpecialChar LaTeX
3199  distributions (meaning be as objective as possible).
3200 \end_layout
3201
3202 \begin_layout Standard
3203 There are only 4
3204 \begin_inset space ~
3205 \end_inset
3206
3207 rules in editing the docs:
3208 \end_layout
3209
3210 \begin_layout Enumerate
3211 If you are not the maintainer of a doc file or a chapter/section, you MUST
3212  use change tracking so that the maintainer could review your changes
3213 \end_layout
3214
3215 \begin_layout Enumerate
3216 Respect the formatting of the document.
3217  The different files use different formatting styles.
3218  That is OK and has historic reasons nobody fully know ;-).
3219  But it is important to be consistent within one file.
3220 \end_layout
3221
3222 \begin_layout Enumerate
3223 All changes you make to a file in one language MUST also go the file in
3224  the other actively maintained languages.
3225  Normally the maintainer does this for you, if you are the maintainer, you
3226  must do this by copying or changing the changed or added text to the other
3227  files so that the translators sees the blue underlined text and know what
3228  they have to translate and what was changed.
3229 \end_layout
3230
3231 \begin_layout Enumerate
3232 You MUST assure that the document is compilable as 
3233 \begin_inset Quotes eld
3234 \end_inset
3235
3236 PDF (pdflatex)
3237 \begin_inset Quotes erd
3238 \end_inset
3239
3240  after your changes.
3241 \end_layout
3242
3243 \end_body
3244 \end_document