From 7895ed928aac63bc69f3ee778d80335fb3c605ed Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 16 Dec 2013 22:07:24 +0100 Subject: [PATCH] Cluster test --- test/pz.1.xml | 14 ++++++++++++++ test/pz.2.xml | 14 ++++++++++++++ test/pz.3.xml | 6 ++++++ test/pz.4.xml | 14 ++++++++++++++ test/run_pazpar2.sh | 3 +++ test/test_cluster.sh | 13 +++++++++++++ test/test_cluster.urls | 3 +++ test/test_cluster_1.res | 3 +++ test/test_cluster_2.res | 2 ++ test/test_cluster_3.res | 45 +++++++++++++++++++++++++++++++++++++++++++++ 10 files changed, 117 insertions(+) create mode 100644 test/pz.1.xml create mode 100644 test/pz.2.xml create mode 100644 test/pz.3.xml create mode 100644 test/pz.4.xml create mode 100755 test/test_cluster.sh create mode 100755 test/test_cluster.urls create mode 100644 test/test_cluster_1.res create mode 100644 test/test_cluster_2.res create mode 100644 test/test_cluster_3.res diff --git a/test/pz.1.xml b/test/pz.1.xml new file mode 100644 index 0000000..a59aaa0 --- /dev/null +++ b/test/pz.1.xml @@ -0,0 +1,14 @@ + + + Jack Collins + book + 1995 + How to program a computer vol1 + + + Jack Collins + book + 1995 + How to program a computer vol2 + + diff --git a/test/pz.2.xml b/test/pz.2.xml new file mode 100644 index 0000000..f899c96 --- /dev/null +++ b/test/pz.2.xml @@ -0,0 +1,14 @@ + + + Jack Collins + book + 1995 + How to program a computer vol3 + + + Jack Collins + book + 1995 + How to program a computer vol2 + + diff --git a/test/pz.3.xml b/test/pz.3.xml new file mode 100644 index 0000000..ffdf34e --- /dev/null +++ b/test/pz.3.xml @@ -0,0 +1,6 @@ + + Jack Collins + book + 1995 + How to program a computer vol1 + diff --git a/test/pz.4.xml b/test/pz.4.xml new file mode 100644 index 0000000..f87b885 --- /dev/null +++ b/test/pz.4.xml @@ -0,0 +1,14 @@ + + + Jack Collins + book + 1995 + How to program a computer vol1 + + + Jack Collins + book + 1995 + How to program a computer vol4 + + diff --git a/test/run_pazpar2.sh b/test/run_pazpar2.sh index dd23b33..de6c021 100755 --- a/test/run_pazpar2.sh +++ b/test/run_pazpar2.sh @@ -9,6 +9,9 @@ # srcdir might be set by make srcdir=${srcdir:-"."} +YAZ_ZTEST_XML_FETCH=${srcdir}/ +export YAZ_ZTEST_XML_FETCH + # terminate pazpar2 if test takes more than this (in seconds) WAIT=120 diff --git a/test/test_cluster.sh b/test/test_cluster.sh new file mode 100755 index 0000000..e64b961 --- /dev/null +++ b/test/test_cluster.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_cluster.urls b/test/test_cluster.urls new file mode 100755 index 0000000..13fc5cf --- /dev/null +++ b/test/test_cluster.urls @@ -0,0 +1,3 @@ +http://localhost:9763/search.pz2?command=init +http://localhost:9763/search.pz2?session=1&command=search&query=4 +1 http://localhost:9763/search.pz2?session=1&command=show&block=1 diff --git a/test/test_cluster_1.res b/test/test_cluster_1.res new file mode 100644 index 0000000..c09ee34 --- /dev/null +++ b/test/test_cluster_1.res @@ -0,0 +1,3 @@ + +OK1150000 + \ No newline at end of file diff --git a/test/test_cluster_2.res b/test/test_cluster_2.res new file mode 100644 index 0000000..ab63fe6 --- /dev/null +++ b/test/test_cluster_2.res @@ -0,0 +1,2 @@ + +OK \ No newline at end of file diff --git a/test/test_cluster_3.res b/test/test_cluster_3.res new file mode 100644 index 0000000..80cf35c --- /dev/null +++ b/test/test_cluster_3.res @@ -0,0 +1,45 @@ + +OK +0 +1 +23 +0 +1 + + Jack Collins + book + 1995 + How to program a computer vol3 + + Jack Collins + book + 1995 + How to program a computer vol3 + + + Jack Collins + book + 1995 + How to program a computer vol2 + + + Jack Collins + book + 1995 + How to program a computer vol1 + + + Jack Collins + book + 1995 + How to program a computer vol4 + + 4 + 89257 + content: author jack collins medium book title how to program a computer vol + + \ No newline at end of file -- 1.7.10.4