root/trunk/db-tests/plperl.sh

Revision 71, 0.6 kB (checked in by depesz, 4 years ago)

db-tests framework. Currently tests plperl if it works sanely

  • Property svn:executable set to *
Line 
1 #!/bin/bash
2
3 export PATH=/home/pgdba/work-8.4.1/bin:/usr/local/bin:/usr/bin:/bin
4 # DB Connection details, using PG* environment variables, as described http://www.postgresql.org/docs/current/interactive/libpq-envars.html
5 PGUSER=depesz
6 PGHOST=localhost
7 PGPORT=5840
8 PGDATABASE=depesz
9 # DB Connection details, using PG* environment variables, as described http://www.postgresql.org/docs/current/interactive/libpq-envars.html
10
11 # Make it stop on error, and print all commands before running
12
13 set -e
14 set -x
15
16 # Prepare test environment
17 psql -qAtX -f 00-prepare.sql
18
19 # Run the tests themselves
20 pg_prove plperl/*.sql
21
22 # Clean test environment
23 psql -qAtX -f 99-cleanup.sql
Note: See TracBrowser for help on using the browser.