b6c74e2ed1961cc894e5d5697aaa04d9eaea7370
[pazpar2-moved-to-github.git] / test / test_solr.sh
1 #!/bin/sh
2
3 # srcdir might be set by make
4 srcdir=${srcdir:-"."}
5
6 TEST=`basename $0 .sh`
7
8 #TODO set up solr target. For now use donut 
9 #F=../solr/client.sh 
10 #
11 #rm -f solr.pid
12 #$F -l solr.log -p ztest.pid -D @:9999
13 #sleep 1
14 #if test ! -f ztest.pid; then
15 #    echo "yaz-ztest could not be started"
16 #    exit 0
17 #fi
18
19 E=0
20 if test -x ../src/pazpar2; then
21     if ../src/pazpar2 -V |grep icu:enabled >/dev/null; then
22         ${srcdir}/run_pazpar2.sh $TEST
23         E=$?
24     fi
25 fi
26 exit $E
27
28 # Local Variables:
29 # mode:shell-script
30 # sh-indentation: 2
31 # sh-basic-offset: 4
32 # End: