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.