The pgTAP tests can be found in subdirectories of Open-ILS/src/sql/Pg/
as follows:
t
: contains pgTAP unit tests that can be run on a freshly installed
Evergreen database
live_t
: contains pgTAP unit tests meant to be run on an Evergreen
database that also has had the "concerto" sample data loaded on it
To run the pgTAP unit and regression tests, use the pg_prove
command.
For example, from the Evergreen source directory, you can issue the
command:
pg_prove -U evergreen Open-ILS/src/sql/Pg/t Open-ILS/src/sql/Pg/t/regress