Koha/C4/SIP/t
Jonathan Druart 3830d78d46 Bug 16011: $VERSION - remove use vars $VERSION
perl -p -i -e 's/^(use vars .*)\$VERSION\s?(.*)/$1$2/' **/*.pm

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>

Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
2016-03-24 17:20:26 +00:00
..
000_sc_config_auth.t Bug 7904 Change SIP modules to use standard LIB path 2015-02-05 14:44:54 -03:00
00sc_status.t Bug 7904 Change SIP modules to use standard LIB path 2015-02-05 14:44:54 -03:00
01patron_status.t Bug 7904 Change SIP modules to use standard LIB path 2015-02-05 14:44:54 -03:00
02patron_info.t Bug 7904 Change SIP modules to use standard LIB path 2015-02-05 14:44:54 -03:00
03checkout.t Bug 7904 Change SIP modules to use standard LIB path 2015-02-05 14:44:54 -03:00
04patron_status.t Bug 7904 Change SIP modules to use standard LIB path 2015-02-05 14:44:54 -03:00
05block_patron.t Bug 7904 Change SIP modules to use standard LIB path 2015-02-05 14:44:54 -03:00
06patron_enable.t Bug 7904 Change SIP modules to use standard LIB path 2015-02-05 14:44:54 -03:00
07hold.t Bug 7904 Change SIP modules to use standard LIB path 2015-02-05 14:44:54 -03:00
08checkin.t Bug 7904 Change SIP modules to use standard LIB path 2015-02-05 14:44:54 -03:00
09renew.t Bug 7904 Change SIP modules to use standard LIB path 2015-02-05 14:44:54 -03:00
10renew_all.t Bug 9848: SIP tests, fix in 10renew_all.t (additionnal checkin) 2015-03-05 11:47:31 +01:00
11item_info.t Bug 7904 Change SIP modules to use standard LIB path 2015-02-05 14:44:54 -03:00
Makefile
README
SIPtest.pm Bug 16011: $VERSION - remove use vars $VERSION 2016-03-24 17:20:26 +00:00

CONFIGURING THE TEST SUITE

Before you can run the test suite, you need to configure certain
information about the SIP server and the ILS data in the file
SIPtest.pm.

RUNNING THE TESTS

Every file tests a different protocol transaction.
Unfortunately, a lot of test cases are missing, but the basics
are tested, as are most of the simple error conditions (invalid
users, unknown items, checking in item that's not checked out).

To run a single test, just run

   perl -I.. <file>

If the test fails, the output should be pretty clear about what
went wrong (assuming you can read raw SIP packets).

To run all the tests, just type

   make test

Right now, that will run tests for functionality that isn't
supported in the Evergreen environment (the two main cases are
enable patron and hold management).  To run just the Evergreen tests, use

       make test-openils

which will run just the tests

	00sc_status.t
	01patron_status.t
	02patron_info.t
	03checkout.t
	06patron_enable.t
	08checkin.t
	09renew.t
	11item_info.t
	05block_patron.t

NOTE: the Block Patron tests are run last because "Patron Enable"
isn't supported.  Thus, after running the "Block Patron" test,
manual intervention is required to unblock the test patron.

The Renew All tests will fail when running the stub "ILS"
implementation unless there's only one ILS server running.  This
won't be a problem for any real backend implementation that
properly manages the database of users and items.