967745f81d0d15d124903f859c4cb513abe89a00
[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/database/create.sql
8 then
9    psql gnucomo_test -c 'select statuscode from status'
10    result=$?
11    psql gnucomo_test -f src/database/destroy.sql
12    exit $result
13 else
14    echo Can not create test database
15    exit 1
16 fi