summaryrefslogtreecommitdiff
path: root/src/tests/manconv-1
Commit message (Collapse)AuthorAge
* Get the tests working again following the switch to libtool.Colin Watson2010-09-26
| | | | | | | | | | | | | * src/tests/Makefile.am (TESTS_ENVIRONMENT): Remove CLEANPATH. * src/tests/man-1, src/tests/mandb-1, src/tests/mandb-2: Set MANPATH rather than using run_clean_path; running with a stripped-down PATH is risky in general and breaks libtool in particular. * src/tests/testlib.sh (run_clean_path): Remove. * src/tests/Makefile.am (TESTS_ENVIRONMENT): Add top_builddir. * src/tests/testlib.sh (run): New function. * src/tests/lexgrog-1, src/tests/man-1, src/tests/manconv-1, src/tests/manconv-2, src/tests/manconv-3, src/tests/mandb-1, src/tests/mandb-2, src/tests/testlib.sh (accessdb_filter): Use run when running programs from the build tree.
* * src/tests/lexgrog-1, src/tests/man-1, src/tests/manconv-1,Colin Watson2009-11-15
| | | | src/tests/manconv-2, src/tests/mandb-1, src/tests/mandb-2: Use 'diff -u', which produces more helpful output on failures.
* * src/encodings.c (check_preprocessor_encoding): Break coding tagColin Watson2009-08-20
| | | | | | search loop if pp_search is NULL, fixing a segfault (introduced by the fix for Debian bug #496604) if there is a preprocessor comment line with no coding tag. * src/tests/manconv-1: Add a test for this bug.
* * src/tests/testlib.sh (init): New function.Colin Watson2009-08-17
| | | | | (finish): Honour TEST_FAILURE_KEEP environment variable. * src/tests/manconv-1: Use init function. Reverse diff arguments so that failure output makes more sense.
* * src/encodings.c (conversion_table): New table, with contentsColin Watson2009-08-17
| | | | | | | | mostly borrowed from groff's preconv. (convert_encoding): New function. (check_preprocessor_encoding): Loop through semicolon-separated tags, and convert Emacs coding tags to ones that libiconv understands (Debian bug #496604). * src/tests/manconv-1: Test multiple tags. Test coding aliases.
* * src/tests/testlib.sh: Add a simple test library, to be extended asColin Watson2009-08-16
| | | | necessary. * src/tests/manconv-1: Use it.
* * src/tests/manconv-1: Simple test for manconv's handling ofColin Watson2009-08-16
Emacs-style coding: tags. * src/tests/Makefile.am: New file. * src/Makefile.am (SUBDIRS): Add tests. * configure.ac (AC_CONFIG_FILES): Add src/tests/Makefile. * .bzrignore: Ignore src/tests/tmp-*.