start adding pgTAP test cases
authorGalen Charlton <gmc@esilibrary.com>
Thu, 11 Apr 2013 00:18:10 +0000 (20:18 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 24 Jun 2013 19:34:34 +0000 (15:34 -0400)
commitf6cb400d8a2c06e3025ed51d6e166b3fc21cb6f0
treea2e1554c9d158a26bf3771a64c6795462429d96f
parent989581ee9e4bdbbdd715325ba63de863740ea769
start adding pgTAP test cases

pgTAP is a PostgreSQL unit testing framework; about which
more can be found at http://pgtap.org/

This commit introduces the first pgTAP test case, which exercises
the NACO normalization functions.

To run the tests, install pgTAP, create an Evergreen database that
contains (for now) just the seed data, and from the top of the
source tree run

pg_prove -vr -U evergreen Open-ILS/src/sql/Pg/t/*

Replace '-U evergreen' with the psql command-line switches
needed to access your database.

To install pgTAP on a Debian Wheezy system, you can do:

Then, to load the pgTAP extension into the database, run

psql> CREATE EXTENSION pgtap;

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/src/sql/Pg/t/naco_normalize.sql [new file with mode: 0644]