Initial revision of test scripts
[gnucomo.git] / test / t0001.sh
1 #!/bin/sh
2
3 # First test. Create and destroy the database.
4
5 cd ..
6
7 if psql gnucomo_test -f src/create.sql
8 then
9    psql gnucomo_test -c 'select statuscode from status'
10    result=$?
11    psql gnucomo_test -f src/destroy.sql
12    exit $result
13 else
14    echo Can not create test database
15    exit 1
16 fi