From cb89d03743bdccc06f59be6c127f655c611750f1 Mon Sep 17 00:00:00 2001 From: Heikki Levanto Date: Fri, 24 Jul 2015 12:16:50 +0200 Subject: [PATCH] Paz-1017: Small test script to show the problem --- test/test_position.cfg | 43 +++++++++++++++++++++++++++++++++++++++ test/test_position.sh | 13 ++++++++++++ test/test_position.urls | 6 ++++++ test/test_position.xml | 6 ++++++ test/test_position_settings.xml | 15 ++++++++++++++ 5 files changed, 83 insertions(+) create mode 100644 test/test_position.cfg create mode 100755 test/test_position.sh create mode 100644 test/test_position.urls create mode 100644 test/test_position.xml create mode 100644 test/test_position_settings.xml 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 @@ + + + + + + + + + + + + + + + -- 1.7.10.4