Suppose I make a change to texi2any that results in a change to the
HTML output.  There is no easy way to update the results of the tests
under tta/perl/t/z_misc/.

The way I have been doing it is running

$ for f in t/z_misc/*.t ; do perl -w $f ; done

and looking through the results for messages like:

ok 1 - modules loading
ok 2 - three_files_first_file_same_parser parsing errors
ok 3 - three_files_first_file_same_parser converted info
not ok 4 - three_files_first_file_same_parser converted html
#   Failed test 'three_files_first_file_same_parser converted html'
#   at t/z_misc/same_parser_multiple_files.t line 57.
# 
t/z_misc//../../../perl/t/results//same_parser_multiple_files/three_files_first_file_same_parser/res_html/results.html
 and 
t/results//same_parser_multiple_files/three_files_first_file_same_parser/out_html/results.html
 differ: 1
ok 5 - three_files_next_file_same_parser parsing errors
ok 6 - three_files_next_file_same_parser converted info
ok 7 - three_files_next_file_same_parser converted html
ok 8 - three_files_last_file_same_parser parsing errors
ok 9 - three_files_last_file_same_parser converted info
ok 10 - three_files_last_file_same_parser converted html
# Looks like you failed 1 test of 10.

I'll then copy the output file to the reference file (copying and
pasting the file names from the output).  Then I have to repeat this again
to check that there are no more failures.

There is a note in t/z_misc/no_structure_test.t and
t/z_misc/same_parser_multiple_files.t (which are the two tests I've
had the most trouble with):

# NOTE the references need to be updated manually, by copying                   
# out_* directories files or cut and pasting.    

Reply via email to