Intergrated test scripts with automake
[gnucomo.git] / test / t0009.sh
index 29ddde0..1435402 100644 (file)
@@ -13,7 +13,7 @@ export LD_LIBRARY_PATH
 
 cd ..
 
-if psql gnucomo_test -f src/database/create.sql -q >/dev/null
+if psql gnucomo_test -q <src/database/create.sql >/dev/null
 then
    #  Prepare the database
 
@@ -27,7 +27,7 @@ then
    src/gcm_input/gcm_input -c gnucomo_test -h kithira.andromeda.nl -d 'sep 5 2002 20:30:45' <test/messages
 
    # Make the notifications.
-   src/gcm_daemon/gcm_daemon.php -c gnucomo_test
+   cd src/gcm_daemon; ./gcm_daemon.php -c gnucomo_test; cd ../..
 
    # Check the notifications.