4 # Create an object 'example1.gnucomo.test' in the database and
5 # parse a piece of a syslog file with bad, short and empty lines.
6 # There should be warnings printed on the log
14 if psql gnucomo_test -q <../src/database/create.sql >/dev/null
16 psql gnucomo_test -q -c "insert into object (objectname) values ('example1.gnucomo.test')"
17 ../src/gcm_input/gcm_input -c gnucomo_test -h example1.gnucomo.test -d 'Jun 9 2002 20:30:45' <messages.bad
18 psql gnucomo_test -q -t -c "select * from log" -o log.tbl
20 if grep "WARNING: Not a valid line: nearly empty line" gcm_input.log && grep "Can not insert log element" gcm_input.log
25 psql gnucomo_test -f ../src/database/destroy.sql -q
27 echo Can not create test database