From c0ef6d5f2c961c3cf9c2bc204b54bdaaf3082aec Mon Sep 17 00:00:00 2001 From: Heikki Levanto Date: Thu, 16 Jul 2015 13:40:52 +0200 Subject: [PATCH] First settings that actually get to the gw, and get records and facets back. --- doc/common | 2 +- test/paz_1009.cfg | 40 ++++++++++ test/paz_1009.sh | 46 ++++++++++++ test/paz_1009.urls | 6 ++ test/paz_1009.xsl | 174 ++++++++++++++++++++++++++++++++++++++++++++ test/paz_1009_settings.xml | 24 ++++++ 6 files changed, 291 insertions(+), 1 deletion(-) create mode 100644 test/paz_1009.cfg create mode 100755 test/paz_1009.sh create mode 100644 test/paz_1009.urls create mode 100644 test/paz_1009.xsl create mode 100644 test/paz_1009_settings.xml diff --git a/doc/common b/doc/common index 790930a..f6a5ec8 160000 --- a/doc/common +++ b/doc/common @@ -1 +1 @@ -Subproject commit 790930ae30e7d12e02a512a109fc40c82675df20 +Subproject commit f6a5ec8c243e2a6829a2917cb30c849612d6fd01 diff --git a/test/paz_1009.cfg b/test/paz_1009.cfg new file mode 100644 index 0000000..5eea2e5 --- /dev/null +++ b/test/paz_1009.cfg @@ -0,0 +1,40 @@ + + + + + + + + + [[:WhiteSpace:][,.!;]]* } [$] > ; + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/paz_1009.sh b/test/paz_1009.sh new file mode 100755 index 0000000..dd96029 --- /dev/null +++ b/test/paz_1009.sh @@ -0,0 +1,46 @@ +#!/bin/sh +# Test script for PAZ-1009 / AUT-258 + +# Start the aggw +AGDIR=../../ag-integration/gateway +AGGW=$AGDIR/aggw.pl + +if [ ! -x $AGGW ] +then + echo "AG Gateway $AGGW not found. Skipping test" + exit 0 +fi + +rm -f aggw.log aggw.pid apdu.log.* # -f to shut up if not there +LOG="-l aggw.log -a apdu.log" # uncomment to get the gw log in a file +AGPORT="@:9998" + +$AGGW $LOG -p aggw.pid $AGPORT & + +sleep 1 # let the listener start up +if [ ! -f aggw.pid ] +then + echo "Could not start the AG gateway " + exit 1 +fi +echo "Started the AG Gateway on $AGPORT. PID=" `cat aggw.pid` + +TEST=`basename $0 .sh` +# srcdir might be set by make +srcdir=${srcdir:-"."} + +#exec ${srcdir}/run_pazpar2.sh --icu $TEST +${srcdir}/run_pazpar2.sh --icu $TEST + + +# Kill the aggw +echo "Killing the aggw, pid " `cat aggw.pid` +kill `cat aggw.pid` +rm -f aggw.pid + + +# Local Variables: +# mode:shell-script +# sh-indentation: 2 +# sh-basic-offset: 4 +# End: diff --git a/test/paz_1009.urls b/test/paz_1009.urls new file mode 100644 index 0000000..18e58dc --- /dev/null +++ b/test/paz_1009.urls @@ -0,0 +1,6 @@ +http://localhost:9763/search.pz2?command=init&clear=1 +paz_1009_settings.xml http://localhost:9763/search.pz2?session=1&command=settings +http://localhost:9763/search.pz2?session=1&command=search&query=water +w http://localhost:9763/search.pz2?session=1&command=show&block=1 +http://localhost:9763/search.pz2?session=1&command=bytarget +http://localhost:9763/search.pz2?session=1&command=termlist&name=xtargets%2Csubject%2Cauthor%2Cdate%2Cmedium diff --git a/test/paz_1009.xsl b/test/paz_1009.xsl new file mode 100644 index 0000000..6ffdf42 --- /dev/null +++ b/test/paz_1009.xsl @@ -0,0 +1,174 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + Notated music + + + Manuscript notated music + + + Cartographic material + + + Manuscript cartographic material + + + Projected medium + + + Nonmusical sound recording + + + Musical sound recording + + + Two-dimensional nonprojectable graphic + + + Computer file + + + Kit + + + Mixed materials + + + Visual materials + + + Serial + + + + Book + + + + + xml records + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/test/paz_1009_settings.xml b/test/paz_1009_settings.xml new file mode 100644 index 0000000..6748070 --- /dev/null +++ b/test/paz_1009_settings.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + -- 1.7.10.4