Show
Ignore:
Timestamp:
04/06/08 23:29:45 (9 months ago)
Author:
karpet
Message:

xapian example can now search as well as index

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libswish3/trunk/src/xapian/test.pl

    r2090 r2111  
    22 
    33use Carp; 
    4 use Test::More tests => 3
     4use Test::More tests => 4
    55 
    6 ok( run(''),                    'usage' ); 
     6ok( run(''), 'usage' ); 
     7 
     8# indexing 
    79ok( run(' ../test_docs/*xml'),  'index xml' ); 
    810ok( run(' ../test_docs/*html'), 'index html' ); 
     11 
     12# searching 
     13ok( ( grep {m/2 total matches/} run(' --query swishtitle:foobar') ), 
     14    'search swishtitle:foobar' ); 
    915 
    1016sub run {