Test creating notifications
[gnucomo.git] / test / t0009.sh
diff --git a/test/t0009.sh b/test/t0009.sh
deleted file mode 100644 (file)
index 1435402..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/bin/sh
-
-#
-#  Test the service and log check notifications.
-#  Create a database with two objects and no services. After reading two
-#  log file fragments for these two objects, gcm_daemon should create
-#  several notifications, three for each object.
-#
-#  This tests problem report nr. 23
-
-LD_LIBRARY_PATH=/usr/local/pqxx/lib
-export LD_LIBRARY_PATH
-
-cd ..
-
-if psql gnucomo_test -q <src/database/create.sql >/dev/null
-then
-   #  Prepare the database
-
-   psql gnucomo_test -q -c "insert into object (objectname) values ('kithira.andromeda.nl')"
-   psql gnucomo_test -q -c "insert into object (objectname) values ('vd.wt.tno.nl')"
-   psql gnucomo_test -q -c "delete from service"
-
-   #  read logs for both objects
-
-   src/gcm_input/gcm_input -c gnucomo_test -h vd.wt.tno.nl -d 'sep 5 2002 20:30:45' <test/vd.messages
-   src/gcm_input/gcm_input -c gnucomo_test -h kithira.andromeda.nl -d 'sep 5 2002 20:30:45' <test/messages
-
-   # Make the notifications.
-   cd src/gcm_daemon; ./gcm_daemon.php -c gnucomo_test; cd ../..
-
-   # Check the notifications.
-
-   psql gnucomo_test -c "select notificationid,objectid,type_of_issueid from notification"
-
-   #  Clean up.
-
-   psql gnucomo_test -f src/database/destroy.sql -q
-
-   exit 0
-else
-   echo Can not create test database
-   exit 1
-fi