From d5b0d2322022f164fd991dd3be2df8bb88dd91c2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Milo=C5=A1=20Mula=C4=8D?= Date: Mon, 6 Feb 2006 15:40:37 +0000 Subject: [PATCH] updated testing section --- org.glite.jp.index/doc/README | 51 +++++++++++++++++++++++++++++++------------ 1 file changed, 37 insertions(+), 14 deletions(-) diff --git a/org.glite.jp.index/doc/README b/org.glite.jp.index/doc/README index 5aaa1e9..1f72084 100644 --- a/org.glite.jp.index/doc/README +++ b/org.glite.jp.index/doc/README @@ -104,17 +104,40 @@ current hard-coded values are in org.glite.jp.index/src/conf.[ch] Testing ------- -For testing purposes, simple program is included. It is located in -examples/jpis-test.c and is installed in RPM. It works in three -steps: - -1) it simulates response from primary storage, making appropriate - changes in database. (inserts feedid). - -2) it calls updateJobs wsdl call, normally invoked by JP-PS, and - send some data to JP-IS which stores them im database. - -3) it calls queryJobs wsdl call, normally called by user program, - obtaining previously inserted data. - -Test query has form (status=Done OR status=Ready) AND (user!=God). +For testing purposes, several tests are done by shell script +located in test/run-test.sh and is also apcked in in RPM. It +includes following tests: + +* Simple query test +- this test starts testing index server, creates testing DB + and polutes it with sample data. Then simple query is given + to server, answer is checked with supposed return output and + cleanup is done. +- the query is in file test/simple_query.in and has followhing + form: (status=Ready) + +* Complex query test +- behaves as previous test, but query is more complicated. +- the query is in file test/complex_query.in and has followhing + form: (status=Done OR status=READY) AND (user!=God) + +* Feed & query test +- this test starts testing index server, feeds index server by + mimicing bahaviour of primary storage server by sending data + via soap call, than asks IS using some complex query, checks + the responce and does cleanup. +- detailed info: + 1) it simulates response from primary storage, making appropriate + changes in database. (inserts feedid). + + 2) it calls updateJobs wsdl call, normally invoked by JP-PS, and + send some data to JP-IS which stores them im database. + + 3) it calls queryJobs wsdl call, normally called by user program, + obtaining previously inserted data. + + Test query has form (status=Done OR status=Ready) AND (user!=God). + +The testing shell script is highly configurable via environmental varibles. +Please, run the script (run-test.sh) with '-?' option to get list of all +variables and their meaning, if you are not satisfied with default setting. -- 1.8.2.3