Removed line numbers from the SQL scripts output.
[gnucomo.git] / test / t0002a.sh
index fc5cef1..4c9e1d5 100644 (file)
@@ -6,15 +6,18 @@
 #  This tests normal operation in which gcm_input reads a syslog file
 #  directly.
 
+LD_LIBRARY_PATH=/usr/local/pqxx/lib
+export LD_LIBRARY_PATH
+
 cd ..
 
-if psql gnucomo_test -f src/create.sql
+if psql gnucomo_test -q <src/database/create.sql >/dev/null
 then
    psql gnucomo_test -q -c "insert into object (objectname) values ('kithira.andromeda.nl')"
    psql gnucomo_test -c "select * from object"
-   src/gcm_input -c gnucomo_test -h kithira.andromeda.nl -d 'sep 5 2002 20:30:45' <test/messages
+   src/gcm_input/gcm_input -c gnucomo_test -h kithira.andromeda.nl -d 'sep 5 2002 20:30:45' <test/messages
    psql gnucomo_test -c "select * from log"
-   psql gnucomo_test -f src/destroy.sql
+   psql gnucomo_test -f src/database/destroy.sql -q
    exit $result
 else
    echo Can not create test database