1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-07 14:19:10 -04:00

skip fts3/metadata tests when those are disabled to resolve #65267

This commit is contained in:
Kenichi Ishigaki 2011-01-31 03:00:40 +00:00
parent f7590e7c2f
commit 764b446776
4 changed files with 22 additions and 1 deletions

View file

@ -1,5 +1,10 @@
Changes for Perl extension DBD-SQLite
1.32_02 to be released
- Resolved #65267 for DBD-SQLite: Add RTree support option;
skip fts3/metadata tests if those features are disabled
(ISHIGAKI)
1.32_01 Fri 10 Dec 2010
- Made util/getsqlite.pl work with the amalg distro filename changes
introd by SQLite 3.7.4, and still with older ones also (DUNCAND)

View file

@ -8,6 +8,7 @@ BEGIN {
use t::lib::Test qw/connect_ok/;
use Test::More;
use DBD::SQLite;
my @texts = ("il était une bergère",
"qui gardait ses moutons",
@ -30,6 +31,9 @@ BEGIN {
if ($] < 5.008005) {
plan skip_all => 'Unicode is not supported before 5.8.5';
}
if (!grep /ENABLE_FTS3/, DBD::SQLite::compile_options()) {
plan skip_all => 'FTS3 is disabled for this DBD::SQLite';
}
}
use Test::NoWarnings;

View file

@ -6,8 +6,17 @@ BEGIN {
$^W = 1;
}
use Test::More tests => 7;
use Test::More;
use t::lib::Test;
use DBD::SQLite;
BEGIN {
if (!grep /^ENABLE_COLUMN_METADATA/, DBD::SQLite::compile_options()) {
plan skip_all => "Column metadata is disabled for this DBD::SQLite";
}
}
plan tests => 7;
my $dbh = connect_ok();

View file

@ -15,6 +15,9 @@ BEGIN {
plan skip_all => "this test requires SQLite 3.6.6 and newer";
exit;
}
if (!grep /^ENABLE_FTS3/, DBD::SQLite::compile_options()) {
plan skip_all => "FTS3 is disabled for this DBD::SQLite";
}
}
use Test::NoWarnings;