projects
/
gnucomo.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Spam scanning investigation
[gnucomo.git]
/
test
/
createdb
1
#!/bin/sh
2
3
# First test. Create and destroy the database.
4
5
createdb gnucomo_test
6
7
if psql gnucomo_test -q <../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 -q
12
else
13
echo Can not create test database
14
result=1
15
fi
16
17
dropdb gnucomo_test
18
exit $result