X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=t%2F2-input-dbf.t;h=45675cae4128d8582516c209fa55ed806789cffa;hb=6d4f4e4344ff7f46057a759a337a6bc61127ae8e;hp=4ae15975db4fed974ac2bfadc275fd94d2cff1df;hpb=3b515b1305187dd28c505308ef640385b9ea9b76;p=webpac2 diff --git a/t/2-input-dbf.t b/t/2-input-dbf.t index 4ae1597..45675ca 100755 --- a/t/2-input-dbf.t +++ b/t/2-input-dbf.t @@ -1,30 +1,22 @@ #!/usr/bin/perl -w -use Test::More tests => 1179; -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 => 1179; BEGIN { +use_ok( 'WebPAC::Test' ); use_ok( 'WebPAC::Input' ); } -ok(my $abs_path = abs_path($0), "abs_path"); -$abs_path =~ s#/[^/]*$#/#; #fix-vim - my $module = 'WebPAC::Input::DBF'; 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(