Intergrated test scripts with automake
[gnucomo.git] / test / t0010.sh
index e701cd4..a4a2227 100644 (file)
@@ -11,7 +11,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
 
@@ -22,7 +22,7 @@ then
    src/gcm_input/gcm_input -c gnucomo_test -h schiza.andromeda.nl -d 'oct 26 2003 20:30:45' <test/log0010
 
    # Test gcm_daemon
-   src/gcm_daemon/gcm_daemon.php -c gnucomo_test
+   cd src/gcm_daemon; ./gcm_daemon.php -c gnucomo_test; cd ../..
 
    # Check the notifications.