Skip to content

Commit

Permalink
Dump version info in "make test"
Browse files Browse the repository at this point in the history
  • Loading branch information
pmqs committed Jul 21, 2019
1 parent c74fa7f commit 9e17580
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ mkconsts.pl
mkpod
ppport.h
README
t/000prereq.t
t/blob.t
t/btree.t
t/cds.t
Expand Down
39 changes: 39 additions & 0 deletions t/000prereq.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
BEGIN {
if ($ENV{PERL_CORE}) {
chdir 't' if -d 't';
@INC = ("../lib", "lib/compress");
}
}

use lib qw(t t/compress);
use strict ;
use warnings ;

use Test::More ;

BEGIN
{
# use Test::NoWarnings, if available
my $extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };

plan tests => 1 + $extra ;

use_ok('BerkeleyDB', '0.63');
}

if (defined $BerkeleyDB::VERSION)
{
my $ver = BerkeleyDB::DB_VERSION_STRING();

diag <<EOM ;
BerkeleyDB version $BerkeleyDB::VERSION
BerkeleyDB::DB_VERSION_STRING $ver
BerkeleyDB::db_version $BerkeleyDB::db_version
BerkeleyDB::db_ver $BerkeleyDB::db_ver
EOM
}

0 comments on commit 9e17580

Please sign in to comment.