gavin 265f3b5cff only space, tab or newline for texinfo command 7 år sedan
..
include 08bf6a0942 revert last revision 9 år sedan
include_reference 08bf6a0942 revert last revision 9 år sedan
init bbd39e3ef1 HTML.pm don't store target and id separately 8 år sedan
input_files 08bf6a0942 revert last revision 9 år sedan
results 265f3b5cff only space, tab or newline for texinfo command 7 år sedan
01use.t 08bf6a0942 revert last revision 9 år sedan
02coverage.t 08bf6a0942 revert last revision 9 år sedan
03coverage_braces.t 08bf6a0942 revert last revision 9 år sedan
04verb.t 08bf6a0942 revert last revision 9 år sedan
05paragraph.t 08bf6a0942 revert last revision 9 år sedan
06columnfractions.t 08bf6a0942 revert last revision 9 år sedan
08misc_commands.t 08bf6a0942 revert last revision 9 år sedan
09indices.t 82d430df4f add explicit_sort_key test 7 år sedan
10menu.t 08bf6a0942 revert last revision 9 år sedan
16raw.t ac70931256 skip over ignored conditional instead of using conditionals stack 8 år sedan
181quotation.t 08bf6a0942 revert last revision 9 år sedan
18itemize.t 08bf6a0942 revert last revision 9 år sedan
19def.t 08bf6a0942 revert last revision 9 år sedan
20preformatted.t 08bf6a0942 revert last revision 9 år sedan
21multitable.t 08bf6a0942 revert last revision 9 år sedan
22xtable.t c95ce9d3e2 remove implementation of @ktable 8 år sedan
25regions.t 08bf6a0942 revert last revision 9 år sedan
27float.t 08bf6a0942 revert last revision 9 år sedan
28heading.t 08bf6a0942 revert last revision 9 år sedan
30sectioning.t 101e99e33b add_missing_menus 8 år sedan
50value.t d1c82882b3 * tp/t/test_utils.pl (set_converter_option_defaults): Set 8 år sedan
55conditionals.t d1c82882b3 * tp/t/test_utils.pl (set_converter_option_defaults): Set 8 år sedan
57invalid_nestings.t d1c82882b3 * tp/t/test_utils.pl (set_converter_option_defaults): Set 8 år sedan
58alias.t 08bf6a0942 revert last revision 9 år sedan
60macro.t 9ee3a5222a remove MACRO_BODY_IGNORES_LEADING_SPACE 8 år sedan
70value_and_macro.t 08bf6a0942 revert last revision 9 år sedan
80include.t 08bf6a0942 revert last revision 9 år sedan
README 08bf6a0942 revert last revision 9 år sedan
accents.t 2af6fc06bb use Texinfo::ModulePath in more tests 8 år sedan
automatic_menus.t 2af6fc06bb use Texinfo::ModulePath in more tests 8 år sedan
automatic_nodes.t 63b39e445f automatic_nodes.t use ModulePath 8 år sedan
collect_spaces.t 2af6fc06bb use Texinfo::ModulePath in more tests 8 år sedan
converters_tests.t ac70931256 skip over ignored conditional instead of using conditionals stack 8 år sedan
do_master_menu.t 2af6fc06bb use Texinfo::ModulePath in more tests 8 år sedan
docbook_tests.t 08bf6a0942 revert last revision 9 år sedan
fix_texinfo.t 2af6fc06bb use Texinfo::ModulePath in more tests 8 år sedan
html_tests.t d1c82882b3 * tp/t/test_utils.pl (set_converter_option_defaults): Set 8 år sedan
index_before_item.t 2af6fc06bb use Texinfo::ModulePath in more tests 8 år sedan
info_tests.t 08bf6a0942 revert last revision 9 år sedan
languages.t 08bf6a0942 revert last revision 9 år sedan
manual_tree.pl 08bf6a0942 revert last revision 9 år sedan
nodenormalization.t 2af6fc06bb use Texinfo::ModulePath in more tests 8 år sedan
paragraph.t c768713e09 Paragraph.pm export symbols 8 år sedan
plaintext_tests.t 8e6f1d632b new paragraph tests 8 år sedan
protect_character_in_texinfo.t 6885e9c77e use Texinfo::ModulePath in more tests 8 år sedan
reference_to_text_in_tree.t 6885e9c77e use Texinfo::ModulePath in more tests 8 år sedan
test_brace_count.t 6885e9c77e use Texinfo::ModulePath in more tests 8 år sedan
test_fill_gaps_in_sectioning.t 6885e9c77e use Texinfo::ModulePath in more tests 8 år sedan
test_is_content_empty.t 6885e9c77e use Texinfo::ModulePath in more tests 8 år sedan
test_protect_hashchar_at_line_beginning.t 6885e9c77e use Texinfo::ModulePath in more tests 8 år sedan
test_sort.t 2af6fc06bb use Texinfo::ModulePath in more tests 8 år sedan
test_tree_copy.t 6885e9c77e use Texinfo::ModulePath in more tests 8 år sedan
test_utils.pl f3deea763e Plaintext.pm _convert don't use method call syntax 8 år sedan
xml_tests.t ac70931256 skip over ignored conditional instead of using conditionals stack 8 år sedan

README

$Id$
texinfo/tp/t/README

Copyright 2010, 2011, 2012, 2013, 2014, 2015, 2016
Free Software Foundation, Inc.

Copying and distribution of this README file, with or without
modification, are permitted in any medium without royalty provided the
copyright notice and this notice are preserved.

Files anywhere within the tp/t subdirectory which have no
other copyright notice are hereby placed in the public domain.

See also the tests in the tp/tests directory.


These tests are run by "make check" under tp/. (The test files are
listed in tp/Makefile.tres, which is a generated file.) A single .t
test file can be run on its own with

perl -w t/03coverage_braces.t

Another way, which works when doing an out-of-source build, is

make check TESTS=t/03coverage_braces.t

Most test files use a testing infrastructure from t/test_utils.pl.
The run_all function from that file runs the tests that have been
specified.

In that case the reference output files for the test of a test category
$test_category.t file are in t/results/$test_category/. For example, if
after running "make check" test-suite.log contains a line like:

FAIL: t/03coverage_braces.t 324 - test_image converted html

you can see the difference between the expected and actual output with

diff t/results/coverage_braces/test_image.pl{,.new}

(Any number at the start of the name of the test, like "03" in this
example, is removed.)

To review all the differences for one of the *.t test files, you can do:

for f in t/results/coverage_braces/*.pl; do echo --------; echo \
Differences in $f; diff $f{,.new}; done | less

The reference files are regenerated with the -g option given to the .t
file, as in

perl -w t/03coverage_braces.t -g

To regenerate a specific test reference file, the test name should be
given as an argument. For example, to just regenerate the reference
files for the "test_image" test within t/03.coverage_braces.t, run

perl -w t/03coverage_braces.t -g test_image

Some tests under this directory use input files in the 'input_files'
subdirectory. When adding a test that uses an input file, add its path
to tp/Makefile.am.

For some tests, as well as a .pl file as usual in results/*/, actual
output files are generated. For those tests, there are directories with
reference test results (with names prefixed with res_), and directories
with the obtained results (with names prefixed with out_). For example,
many of the tests whose results are in the 'results/indices' directory
follow this format. (The same convention is used by the test suite in
../tests.)

Tests can be managed using the script in ../maintain/all_tests.sh. For
example, "./maintain/all_tests.sh generate" regenerates all of the
reference test results (run from the upper-level directory), and
"./maintain/all_tests.sh diff" makes a diff of all resulting files
against references.

From the top directory, you can also create texinfo files corresponding to
tests by running something along the lines of:

perl -w t/60macro.t -c

to create a file for each of the tests in t/60macro.t, or for a specific
test, here arg_body_expansion_order:

perl -w t/60macro.t -c arg_body_expansion_order

The output files will be created with -o, in t/output_files/$test_category/

When adding Perl (sub)tests under t/, also run
maintain/regenerate_file_lists.pl and/or maintain/prepare_perl_module_files.sh
to regenerate MANIFEST and/or maintain/MANIFEST_generated_files, or a
"plan" (aka results file) will be missing at distcheck.