4 # Create an object 'example1.gnucomo.test' in the database and
5 # parse a piece of a syslog file.
6 # This tests normal operation in which gcm_input reads a syslog file
12 if psql gnucomo_test -q <../src/database/create.sql >/dev/null
14 psql gnucomo_test -q -c "insert into object (objectname) values ('example1.gnucomo.test')"
15 ../src/gcm_input/gcm_input -c gnucomo_test -h example1.gnucomo.test -d 'sep 5 2002 20:30:45' <messages
16 psql gnucomo_test -q -t -c "select * from log" -o log.tbl
17 diff read_messages.log.expect log.tbl
19 psql gnucomo_test -f ../src/database/destroy.sql -q
23 echo Can not create test database