Changeset 2002

Show
Ignore:
Timestamp:
12/18/07 00:16:26 (5 months ago)
Author:
joshr
Message:

check that we get output from swish-e when we build index.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Swishetest/trunk/BuildIndex.pm

    r1965 r2002  
    1010    $config = "conf/basic-libxml2.conf" unless $config; 
    1111    $extra_options = "" unless $extra_options;  
    12     my $output = `/usr/local/bin/swish-e -c $config -i '$input' -f '$index' -v 1 $extra_options`;    
     12    my $cmd = "/usr/local/bin/swish-e -c $config -i '$input' -f '$index' -v 1 $extra_options"; 
     13    my $output = `$cmd`; 
    1314    print STDERR "$0: Running '$output'\n" if $ENV{TEST_VERBOSE}; 
    1415        # -v 1 is important, we use it to test the indexer  
     16    die "$0: Didn't get any output from $cmd\n" unless $output; 
    1517    return parse_indexing_output( $output ); 
    1618}