More experiments. Getting the right facets, but not reproducing the problem
[pazpar2-moved-to-github.git] / test / paz_1009.sh
1 #!/bin/sh
2 # Test script for PAZ-1009 / AUT-258
3
4 # Start the aggw
5 AGDIR=../../ag-integration/gateway
6 AGGW=$AGDIR/aggw.pl
7
8 if [ ! -x $AGGW ]
9 then
10   echo "AG Gateway $AGGW not found. Skipping test"
11   exit 0
12 fi
13
14 rm -f aggw.log aggw.pid apdu.log.* # -f to shut up if not there
15 LOG="-l aggw.log  -a apdu.log"  # uncomment to get the gw log in a file
16 AGPORT="@:9998"
17
18 $AGGW $LOG -p aggw.pid  $AGPORT &
19
20 sleep 1 # let the listener start up
21 if [ ! -f aggw.pid ]
22 then
23   echo "Could not start the AG gateway "
24   exit 1
25 fi
26 echo "Started the AG Gateway on $AGPORT. PID=" `cat aggw.pid`
27
28 TEST=`basename $0 .sh`
29 # srcdir might be set by make
30 srcdir=${srcdir:-"."}
31
32 #exec ${srcdir}/run_pazpar2.sh --icu $TEST
33 ${srcdir}/run_pazpar2.sh --icu $TEST
34
35
36 # Kill the aggw
37 echo "Killing the aggw, pid " `cat aggw.pid`
38 kill `cat aggw.pid`
39 rm -f aggw.pid
40
41
42 # Local Variables:
43 # mode:shell-script
44 # sh-indentation: 2
45 # sh-basic-offset: 4
46 # End: