#!/bin/bash # # Create an object 'kithira.andromeda.nl' in the database and # try to parse a piece of a syslog file without specifying the hostname. # The message should be rejected on account of an unknown host. rm -f gcm_input.log createdb gnucomo_test result=1 if psql gnucomo_test -q <../src/database/create.sql >/dev/null then psql gnucomo_test -q -c "insert into object (objectname) values ('kithira.andromeda.nl')" ../src/gcm_input/gcm_input -c gnucomo_test