| 1 | #!/usr/bin/perl |
| 2 | # DO NOT CHANGE ANYTHING IN THIS FILE. |
| 3 | # THe crazy bug reproduced here will go away if any of the calls |
| 4 | # to htmlize are changed. |
| 5 | # Note: This was http://bugs.debian.org/376329 , and was fixed in |
| 6 | # perl 5.14. |
| 7 | use warningsscip-perl cpan perl-project 0.0.0 warnings/; |
| 8 | use strictscip-perl cpan perl-project 0.0.0 strict/; |
| 9 | use Test::Morescip-perl cpan perl-project 0.0.0 Test/More/ tests => 102; |
| 10 | use Encodescip-perl cpan perl-project 0.0.0 Encode/; |
| 11 | |
| 12 | BEGIN { use_okscip-perl cpan perl-project 0.0.0 main/use_ok().("IkiWiki"); } |
| 13 | |
| 14 | # Initialize htmlscrubber plugin |
| 15 | %configscip-perl cpan perl-project 0.0.0 main/`%config`.=IkiWiki::defaultconfigscip-perl cpan perl-project 0.0.0 IkiWiki/defaultconfig().(); |
| 16 | $configscip-perl cpan perl-project 0.0.0 main/`%config`.{srcdir}=$configscip-perl cpan perl-project 0.0.0 main/`%config`.{destdir}="/dev/null"; |
| 17 | IkiWiki::loadpluginsscip-perl cpan perl-project 0.0.0 IkiWiki/loadplugins().(); IkiWiki::checkconfigscip-perl cpan perl-project 0.0.0 IkiWiki/checkconfig().(); |
| 18 | okscip-perl cpan perl-project 0.0.0 main/ok().(IkiWiki::htmlizescip-perl cpan perl-project 0.0.0 IkiWiki/htmlize().("foo", "foo", "mdwn", readfilescip-perl cpan perl-project 0.0.0 main/readfile().("t/test1.mdwn"))); |
| 19 | okscip-perl cpan perl-project 0.0.0 main/ok().(IkiWiki::htmlizescip-perl cpan perl-project 0.0.0 IkiWiki/htmlize().("foo", "foo", "mdwn", readfilescip-perl cpan perl-project 0.0.0 main/readfile().("t/test3.mdwn")), |
| 20 | "wtf?") for 1..100; |