#!/bin/bash # # Test the log processing of gcm_daemon # Create a database with one object and read a piece of sendmail log # # This tests problem report nrs. 14 through 17 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 ('schiza.andromeda.nl')" # read logs for both objects ../src/gcm_input/gcm_input -c gnucomo_test -h schiza.andromeda.nl -d 'oct 26 2003 20:30:45'