root/perl/SWISH-Filter/trunk/t/SWISH-Filter.t

Revision 2070, 0.7 kB (checked in by karpet, 8 months ago)

this is the cpan version. TODO integrate back into swish-e dist

Line 
1 # Before `make install' is performed this script should be runnable with
2 # `make test'. After `make install' it should work as `perl SWISH-Filter.t'
3
4 use Test::More tests => 3;
5 BEGIN { use_ok('SWISH::Filter') }
6
7 #
8 #   we can't test actual filtering since it relies on many other apps
9 #   but we can test that our modules load and look for those other apps
10 #
11
12 diag("running the example script");
13
14 ok(run("$^X example/swish-filter-test --quiet --noskip_binary t/test.*"), "example docs");
15 ok(
16     run(
17         "$^X example/swish-filter-test --quiet --noskip_binary --ignore XLtoHTML --ignore pp2html t/test.*"
18        ),
19     "example docs using catdoc"
20   );
21
22 sub run
23 {
24     diag(@_);
25     system(@_) ? 0 : 1;
26 }
Note: See TracBrowser for help on using the browser.