#!/bin/bash # # 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 rm -f gcm_input.log createdb gnucomo_test result=0 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 ('example1.gnucomo.test')" psql gnucomo_test -q -c "insert into object (objectname) values ('example2.gnucomo.test')" psql gnucomo_test -q -c "delete from service" # read logs for both objects ../src/gcm_input/gcm_input -c gnucomo_test -h example1.gnucomo.test -d 'sep 5 2002 20:30:45'