docbook_tests.t 973 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. use strict;
  2. use File::Spec;
  3. BEGIN { if (defined($ENV{'top_srcdir'})) {unshift @INC, File::Spec->catdir($ENV{'top_srcdir'}, 'tp');} }
  4. require 't/test_utils.pl';
  5. # special docbook quotations are tested for in 181quotation.t
  6. my @test_cases = (
  7. ['empty_quotation_with_arg_followed_by_quotation',
  8. '@quotation something
  9. @end quotation
  10. @quotation
  11. In quotation
  12. @end quotation
  13. '],
  14. ['special_docbook_unnumbered',
  15. '@node Top
  16. @top top
  17. This is the top.
  18. @menu
  19. * Dedication::
  20. * preface::
  21. * glossary::
  22. * acknowledgements::
  23. @end menu
  24. @node Dedication
  25. @unnumbered a dedication
  26. Dedicated
  27. @node preface
  28. @unnumbered The Preface
  29. Preface.
  30. @node colophon
  31. @unnumbered A colophon
  32. Glossary
  33. @node acknowledgements
  34. @chapter A chapter Acnkowledgements
  35. Ack!
  36. ']
  37. );
  38. foreach my $test (@test_cases) {
  39. $test->[2]->{'test_formats'} = ['docbook'];
  40. }
  41. our ($arg_test_case, $arg_generate, $arg_debug);
  42. run_all ('docbook_tests', [@test_cases], $arg_test_case,
  43. $arg_generate, $arg_debug);
  44. 1;