Intergrated test scripts with automake
[gnucomo.git] / test / t0008.sh
index cfb74f9..bdb3e48 100644 (file)
@@ -9,12 +9,12 @@
 
 cd ..
 
-if psql gnucomo_test -f test/create_v1.sql -q >/dev/null
+if psql gnucomo_test <test/create_v1.sql -q >/dev/null
 then
-   src/gcm_daemon/gcm_daemon.php -c gnucomo_test
+   cd src/gcm_daemon; ./gcm_daemon.php -c gnucomo_test ; cd ../..
    pg_dump gnucomo_test |grep -v '^--' | sort >test/dump.upgraded.sql
    psql gnucomo_test -f src/database/destroy.sql -q
-   psql gnucomo_test -f src/database/create.sql -q >/dev/null
+   psql gnucomo_test <src/database/create.sql -q >/dev/null
    pg_dump gnucomo_test |grep -v '^--' | sort >test/dump.latest.sql
    psql gnucomo_test -f src/database/destroy.sql -q