From: Heikki Levanto Date: Fri, 24 Jul 2015 10:16:50 +0000 (+0200) Subject: Paz-1017: Small test script to show the problem X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=cb89d03743bdccc06f59be6c127f655c611750f1;p=pazpar2-moved-to-github.git Paz-1017: Small test script to show the problem --- diff --git a/test/test_position.cfg b/test/test_position.cfg new file mode 100644 index 0000000..f95cb9e --- /dev/null +++ b/test/test_position.cfg @@ -0,0 +1,43 @@ + + + + + + + + + [[:WhiteSpace:][,.-]]* } [$] > ; + + + + [[:WhiteSpace:][,.!;]]* } [$] > ; + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/test_position.sh b/test/test_position.sh new file mode 100755 index 0000000..e64b961 --- /dev/null +++ b/test/test_position.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +TEST=`basename $0 .sh` +# srcdir might be set by make +srcdir=${srcdir:-"."} + +exec ${srcdir}/run_pazpar2.sh --ztest --icu $TEST + +# Local Variables: +# mode:shell-script +# sh-indentation: 2 +# sh-basic-offset: 4 +# End: diff --git a/test/test_position.urls b/test/test_position.urls new file mode 100644 index 0000000..0fce997 --- /dev/null +++ b/test/test_position.urls @@ -0,0 +1,6 @@ +http://localhost:9763/search.pz2?command=init&clear=1 +test_position_settings.xml http://localhost:9763/search.pz2?session=1&command=settings +http://localhost:9763/search.pz2?session=1&command=search&query=22 +http://localhost:9763/search.pz2?session=1&command=show&block=1&start=0&num=3&sort=title:1&mergekey=position +http://localhost:9763/search.pz2?session=1&command=show&block=1&start=0&num=19&sort=title:1&mergekey=position +http://localhost:9763/search.pz2?session=1&command=show&block=1&start=0&num=3&sort=title:1&mergekey=position diff --git a/test/test_position.xml b/test/test_position.xml new file mode 100644 index 0000000..9ce9297 --- /dev/null +++ b/test/test_position.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/test/test_position_settings.xml b/test/test_position_settings.xml new file mode 100644 index 0000000..8af4e92 --- /dev/null +++ b/test/test_position_settings.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + +