1N/A my $THISDIR = dirname $0;
1N/A unshift @INC, $THISDIR;
1N/A import TestPodChecker;
1N/Amy %options = map { $_ => 1 } @ARGV; ## convert cmdline to options-hash
1N/Amy $passed = testpodchecker \%options, $0;
1N/Aexit( ($passed == 1) ? 0 : -1 ) unless $ENV{HARNESS_ACTIVE};
1N/A### Deliberately throw in some blank but non-empty lines
1N/A### The above line should contain spaces
1N/A=head2 This should cause a warning
1N/A=unknown1 this is an unknown command with two N<unknownA>
1N/Aand D<unknownB> interior sequences.
1N/AThis is some paragraph text with some unknown interior sequences,
1N/Aand Y<unknown4 V<unknown5>>.
1N/ANow try some unterminated sequences like
1N/AHere I am at C<camp granada!
1N/AAnd they say we'll have some fun if it stops raining!
1N/AOkay, now use a non-empty blank line to terminate a paragraph and make
1N/Asure we get a warning.
1N/AThe above blank line contains tabs and spaces only
1N/A=head1 Additional tests
1N/A=head2 item without over
1N/A=head2 back without over
1N/A=head2 over without back
1N/A=head2 end without begin
1N/A=head2 begin and begin
1N/Asecond one results in end w/o begin
1N/A=head2 begin w/o formatter
1N/A=head2 for w/o formatter
1N/A=head2 Nested sequences of the same type
1N/AC<code I<italic C<code again!>>>
1N/A=head2 Garbled entities
1N/A=head2 Unresolved internal links
1N/A=head2 Some links with problems
1N/AL<"Warnings"> this one is ok
1N/AL</unescaped> ok too, this POD has an X of the same name
1N/AL<some text with / in it|perlvar/$|> should give warnings as hell
1N/AX<unescaped>see these unescaped < and > in the text?
1N/AZ<ddd> should be empty
1N/AX<> should not be empty
1N/AThis paragrapgh is misplaced - it ought to be an item.
1N/A=item four should be numeric!
1N/A=item previous is all empty!!!
1N/Awe already have a head Misc
1N/Aprevious section is empty!
1N/ADue to bug reported by Rafael Garcia-Suarez "rgarciasuarez@free.fr":
1N/AThe following hyperlinks :
1N/AL<perlop/"I/O Operators">
1N/Atrigger a podchecker warning (using bleadperl) :
1N/A node 'I/O Operators' contains non-escaped | or /