X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=t%2F2-input-gutenberg.t;h=28ecdcd0b5762345a875be8ec0403e17b1db80c3;hb=e4c102564496b8bc44b63bec5b6e7b36875bd66f;hp=5daf8febd0f3ae63f5e671dff531f1fe353e9c53;hpb=a8187a0df31326f04182a8f9071c15e5fd170363;p=webpac2 diff --git a/t/2-input-gutenberg.t b/t/2-input-gutenberg.t index 5daf8fe..28ecdcd 100755 --- a/t/2-input-gutenberg.t +++ b/t/2-input-gutenberg.t @@ -1,35 +1,26 @@ #!/usr/bin/perl -w -use Test::More tests => 300; -use Test::Exception; -use Cwd qw/abs_path/; -use blib; use strict; +use blib; -use Data::Dump qw/dump/; - -my $debug = shift @ARGV; +use Test::More tests => 300; BEGIN { +use_ok( 'WebPAC::Test' ); use_ok( 'WebPAC::Input' ); } -ok(my $abs_path = abs_path($0), "abs_path"); -$abs_path =~ s#/[^/]*$#/#; - my $module = 'WebPAC::Input::Gutenberg'; diag "testing with $module", $debug ? ' with debug' : ''; ok(my $input = new WebPAC::Input( module => $module, - no_log => $debug ? 0 : 1, no_progress_bar => 1, - debug => $debug, + %LOG ), "new"); ok(my $db = $input->open( -# path => "$abs_path/data/excel_95.xls" - path => "/data/isis_data/small.rdf", + path => "$abs_path/data/gutenberg-small.rdf" ), "open"); ok(my $size = $input->size, "size");