--- /dev/null
+#!/bin/sh
+
+#
+# Create an object 'vd.wt.tno.nl' in the database and
+# parse a piece of a apache access file which may be mistaken for an rpm list
+#
+
+LD_LIBRARY_PATH=/usr/local/pqxx/lib
+export LD_LIBRARY_PATH
+
+cd ..
+
+if psql gnucomo_test -f src/database/create.sql -q >/dev/null
+then
+ psql gnucomo_test -q -c "insert into object (objectname) values ('vd.wt.tno.nl')"
+ psql gnucomo_test -c "select * from object"
+ src/gcm_input/gcm_input -c gnucomo_test -h vd.wt.tno.nl -d 'nov 16 2003 20:30:45' <test/access_log
+ psql gnucomo_test -c "select * from log"
+ psql gnucomo_test -c "select * from parameter"
+ psql gnucomo_test -q -f src/database/destroy.sql
+ exit $result
+else
+ echo Can not create test database
+ exit 1
+fi