| 1 | # Before `make install' is performed this script should be runnable with | ||
| 2 | # `make test'. After `make install' it should work as `perl test.pl' | ||
| 3 | |||
| 4 | ######################### We start with some black magic to print on failure. | ||
| 5 | |||
| 6 | BEGIN { $| = 1; print "1..1\n"; } | ||
| 7 | END {print "not ok 1\n" unless $loaded;} | ||
| 8 | use Devel::Trace; | ||
| 9 | $loaded = 1; | ||
| 10 | print "ok 1\n"; | ||
| 11 | |||
| 12 | ######################### End of black magic. | ||
| 13 | |||
| 14 | open S, "< sample" or die "Couldn't open sample demo file: $!; aborting"; | ||
| 15 | print while <S>; | ||
| 16 | close S; | ||
| 17 | print "\n"; | ||
| 18 | print "Press enter to execute this file. \n"; | ||
| 19 | <STDIN>; | ||
| 20 | system("perl -I./blib/lib -d:Trace sample"); | ||
| 21 | $? and die "Problem running sample program: $? exit status\n"; |