From: rkinyon Date: Thu, 25 May 2006 18:21:24 +0000 (+0000) Subject: r13131@rob-kinyons-powerbook58: rob | 2006-05-14 20:22:12 -0400 X-Git-Tag: 0-99_03~34 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=535203b19b56692a7ed6a176528c3244e67cb5a3;p=dbsrgits%2FDBM-Deep.git r13131@rob-kinyons-powerbook58: rob | 2006-05-14 20:22:12 -0400 Added LONG_TEST environment variable to skip long-running tests --- diff --git a/t/03_bighash.t b/t/03_bighash.t index cf082bd..9b81f87 100644 --- a/t/03_bighash.t +++ b/t/03_bighash.t @@ -2,10 +2,16 @@ # DBM::Deep Test ## use strict; -use Test::More tests => 5; +use Test::More; + +plan skip_all => "You must set \$ENV{LONG_TESTS} to run the long tests" + unless $ENV{LONG_TESTS}; + use Test::Deep; use t::common qw( new_fh ); +plan tests => 5; + use_ok( 'DBM::Deep' ); diag "This test can take up to a minute to run. Please be patient."; diff --git a/t/05_bigarray.t b/t/05_bigarray.t index 24b9071..81c5046 100644 --- a/t/05_bigarray.t +++ b/t/05_bigarray.t @@ -2,7 +2,12 @@ # DBM::Deep Test ## use strict; -use Test::More tests => 4; +use Test::More; + +plan skip_all => "You must set \$ENV{LONG_TESTS} to run the long tests" + unless $ENV{LONG_TESTS}; + +plan tests => 4; use t::common qw( new_fh ); use_ok( 'DBM::Deep' ); diff --git a/t/08_deephash.t b/t/08_deephash.t index ff7a9f3..f69543c 100644 --- a/t/08_deephash.t +++ b/t/08_deephash.t @@ -2,7 +2,12 @@ # DBM::Deep Test ## use strict; -use Test::More tests => 5; +use Test::More; + +plan skip_all => "You must set \$ENV{LONG_TESTS} to run the long tests" + unless $ENV{LONG_TESTS}; + +plan tests => 5; use t::common qw( new_fh ); diag "This test can take up to a minute to run. Please be patient."; diff --git a/t/09_deeparray.t b/t/09_deeparray.t index d47ecc8..ad134fa 100644 --- a/t/09_deeparray.t +++ b/t/09_deeparray.t @@ -2,7 +2,12 @@ # DBM::Deep Test ## use strict; -use Test::More tests => 3; +use Test::More; + +plan skip_all => "You must set \$ENV{LONG_TESTS} to run the long tests" + unless $ENV{LONG_TESTS}; + +plan tests => 3; use t::common qw( new_fh ); diag "This test can take up to a minute to run. Please be patient.";