Obtaining Epic

Epic does not yet have a stable release candidate. For now, you should use Subversion to checkout the package:

svn co http://svn.epictest.org/trunk/epic epic

Epic can be downloaded anywhere on your system (as long as you can \import it from there).

Installing epic.sql

Simply execute/import the epic.sql file into the database you'd like to test:

psql mydb
mydb=# \i '~/epic/epic.sql'
CREATE FUNCTION
 assert_test_schema
--------------------
 t
(1 row)

DROP FUNCTION
CREATE FUNCTION
CREATE VIEW
CREATE FUNCTION
CREATE FUNCTION
...

Then, execute/import any tests you've written:

mydb=# \i '~/test_users.sql'
SET
CREATE FUNCTION
...