X-Git-Url: http://www.andromeda.nl/gitweb/?a=blobdiff_plain;f=test%2Fnotification_sendmail;fp=test%2Fnotification_sendmail;h=bc834951c3c6de715351b1750d2e7e984c00e3ac;hb=4a52cee10938e535569bce9e46f82d8e05977200;hp=0000000000000000000000000000000000000000;hpb=a85e804fd7f87a4d067ef31a634b54bd6106c0f5;p=gnucomo.git diff --git a/test/notification_sendmail b/test/notification_sendmail new file mode 100755 index 0000000..bc83495 --- /dev/null +++ b/test/notification_sendmail @@ -0,0 +1,47 @@ +#!/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'