2 # Test script for PAZ-1009 / AUT-258
5 AGDIR=../../ag-integration/gateway
10 echo "AG Gateway $AGGW not found. Skipping test"
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
18 $AGGW $LOG -p aggw.pid $AGPORT &
20 sleep 1 # let the listener start up
23 echo "Could not start the AG gateway "
26 echo "Started the AG Gateway on $AGPORT. PID=" `cat aggw.pid`
28 TEST=`basename $0 .sh`
29 # srcdir might be set by make
32 #exec ${srcdir}/run_pazpar2.sh --icu $TEST
33 ${srcdir}/run_pazpar2.sh --icu $TEST
37 echo "Killing the aggw, pid " `cat aggw.pid`