Changeset 2039

Show
Ignore:
Timestamp:
02/29/08 12:11:46 (3 months ago)
Author:
joshr
Message:

don't hardcode the fullpath to swish-e exe: expect it to be in path.
For test automation.

Files:

Legend:

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

    r2004 r2039  
    1010    $config = "conf/basic-libxml2.conf" unless $config; 
    1111    $extra_options = "" unless $extra_options;  
    12     my $cmd = "/usr/local/bin/swish-e -c $config -i '$input' -f '$index' -v 1 $extra_options"; 
     12         
     13        # we assume swish-e is in the PATH! 
     14    my $cmd = "swish-e -c $config -i '$input' -f '$index' -v 1 $extra_options"; 
    1315    my $output = `$cmd`; 
    1416    print STDERR "$0: Running '$output'\n" if $ENV{TEST_VERBOSE}; 
     
    2426    $config = "conf/basic-libxml2.conf" unless $config; 
    2527    $extra_options = "" unless $extra_options;  
    26     my $cmd = "$external_program | /usr/local/bin/swish-e -c $config -i stdin -f '$index' -v 1 -S prog $extra_options"; 
     28    # WE ASSUME SWISH-E is in the PATH 
     29    my $cmd = "$external_program | swish-e -c $config -i stdin -f '$index' -v 1 -S prog $extra_options"; 
    2730        # -v 1 is important, we use it to test the indexer  
    2831    print STDERR "$0: Running '$cmd'\n" if $ENV{TEST_VERBOSE};