01use.t 820 B

123456789101112131415161718192021222324252627
  1. # Before `make install' is performed this script should be runnable with
  2. # `make test'. After `make install' it should work as `perl 01use.t'
  3. #########################
  4. use strict;
  5. use Test::More;
  6. use File::Spec;
  7. BEGIN { plan tests => 2;
  8. if (defined($ENV{'top_srcdir'})) {unshift @INC, File::Spec->catdir($ENV{'top_srcdir'}, 'tp');} }
  9. use Texinfo::Convert::Texinfo;
  10. ok(1, "modules loading"); # If we made it this far, we're ok.
  11. #########################
  12. # Insert your test code below, the Test::More module is use()ed here so read
  13. # its man page ( perldoc Test::More ) for help writing this test script.
  14. use vars qw($manual_tree $manual_tree_result);
  15. require 't/manual_tree.pl';
  16. is (Texinfo::Convert::Texinfo::convert($manual_tree),
  17. $manual_tree_result, "tree_to_texi on a manually written tree");