Changeset 361 for trunk/t/32_supersearch_simple_metadata.t
- Timestamp:
- 06/07/04 21:39:35 (5 years ago)
- Files:
-
- 1 modified
-
trunk/t/32_supersearch_simple_metadata.t (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/t/32_supersearch_simple_metadata.t
r267 r361 1 local $^W = 1;2 1 use strict; 3 2 use CGI::Wiki::Setup::SQLite; 4 3 use Config::Tiny; 5 4 use OpenGuides::SuperSearch; 6 use Test::More ;5 use Test::More tests => 10; 7 6 8 7 eval { require DBD::SQLite; }; 8 my $have_sqlite = $@ ? 0 : 1; 9 9 10 if ( $@ ) { 11 plan skip_all => "DBD::SQLite needed to run these tests"; 12 } else { 13 plan tests => 10; 10 SKIP: { 11 skip "DBD::SQLite not installed - no database to test with", 10 12 unless $have_sqlite; 14 13 15 # Ensure the test database is set up. 16 CGI::Wiki::Setup::SQLite::setup( "t/sqlite.32.db" ); 17 14 CGI::Wiki::Setup::SQLite::setup( { dbname => "t/node.db" } ); 18 15 my $config = Config::Tiny->new; 19 16 $config->{_} = { 20 17 dbtype => "sqlite", 21 dbname => "t/ sqlite.32.db",22 indexing_directory => "t/index .32/",18 dbname => "t/node.db", 19 indexing_directory => "t/indexes", 23 20 script_name => "wiki.cgi", 24 21 script_url => "http://example.com/", … … 26 23 template_path => "./templates", 27 24 }; 25 28 26 my $search = OpenGuides::SuperSearch->new( config => $config ); 29 27
