Initial revision of test scripts
authorarjen <arjen>
Sat, 5 Oct 2002 10:24:26 +0000 (10:24 +0000)
committerarjen <arjen>
Sat, 5 Oct 2002 10:24:26 +0000 (10:24 +0000)
17 files changed:
test/access_log [new file with mode: 0644]
test/dump.mail [new file with mode: 0644]
test/encrytped_mail.dat [new file with mode: 0644]
test/error_log [new file with mode: 0644]
test/kithira.mail [new file with mode: 0644]
test/messages [new file with mode: 0644]
test/t0001.sh [new file with mode: 0644]
test/t0001a.sh [deleted file]
test/t0002.log [new file with mode: 0644]
test/t0002a.sh
test/t0003.err [new file with mode: 0644]
test/t0003.log [new file with mode: 0644]
test/t0003.sh [new file with mode: 0644]
test/t0003a.sh [deleted file]
test/t0004.sh [new file with mode: 0644]
test/t0005.sh [new file with mode: 0644]
test/vd.messages [new file with mode: 0644]

diff --git a/test/access_log b/test/access_log
new file mode 100644 (file)
index 0000000..53fade5
--- /dev/null
@@ -0,0 +1,79 @@
+64.246.28.92 - - [01/Sep/2002:04:11:29 +0200] "POST /backend.php HTTP/1.1" 200 1921 "-" "Syndic8/1.0 (http://www.syndic8.com/)"
+64.68.82.44 - - [01/Sep/2002:04:12:56 +0200] "GET /modules.php?name=Search&topic=3 HTTP/1.0" 200 15229 "-" "Googlebot/2.1 (+http://www.googlebot.com/bot.html)"
+205.145.1.40 - - [01/Sep/2002:04:13:22 +0200] "GET /scripts/root.exe?/c+dir HTTP/1.0" 404 286 "-" "-"
+205.145.1.40 - - [01/Sep/2002:04:13:22 +0200] "GET /MSADC/root.exe?/c+dir HTTP/1.0" 404 284 "-" "-"
+205.145.1.40 - - [01/Sep/2002:04:13:23 +0200] "GET /c/winnt/system32/cmd.exe?/c+dir HTTP/1.0" 404 294 "-" "-"
+205.145.1.40 - - [01/Sep/2002:04:13:23 +0200] "GET /d/winnt/system32/cmd.exe?/c+dir HTTP/1.0" 404 294 "-" "-"
+205.145.1.40 - - [01/Sep/2002:04:13:23 +0200] "GET /scripts/..%255c../winnt/system32/cmd.exe?/c+dir HTTP/1.0" 404 308 "-" "-"
+205.145.1.40 - - [01/Sep/2002:04:13:24 +0200] "GET /_vti_bin/..%255c../..%255c../..%255c../winnt/system32/cmd.exe?/c+dir HTTP/1.0" 404 325 "-" "-"
+205.145.1.40 - - [01/Sep/2002:04:13:24 +0200] "GET /_mem_bin/..%255c../..%255c../..%255c../winnt/system32/cmd.exe?/c+dir HTTP/1.0" 404 325 "-" "-"
+205.145.1.40 - - [01/Sep/2002:04:13:25 +0200] "GET /msadc/..%255c../..%255c../..%255c/..%c1%1c../..%c1%1c../..%c1%1c../winnt/system32/cmd.exe?/c+dir HTTP/1.0" 404 341 "-" "-"
+205.145.1.40 - - [01/Sep/2002:04:13:25 +0200] "GET /scripts/..%c1%1c../winnt/system32/cmd.exe?/c+dir HTTP/1.0" 404 307 "-" "-"
+205.145.1.40 - - [01/Sep/2002:04:13:25 +0200] "GET /scripts/..%c0%2f../winnt/system32/cmd.exe?/c+dir HTTP/1.0" 404 307 "-" "-"
+205.145.1.40 - - [01/Sep/2002:04:13:26 +0200] "GET /scripts/..%c0%af../winnt/system32/cmd.exe?/c+dir HTTP/1.0" 404 307 "-" "-"
+205.145.1.40 - - [01/Sep/2002:04:13:26 +0200] "GET /scripts/..%c1%9c../winnt/system32/cmd.exe?/c+dir HTTP/1.0" 404 307 "-" "-"
+205.145.1.40 - - [01/Sep/2002:04:13:26 +0200] "GET /scripts/..%%35%63../winnt/system32/cmd.exe?/c+dir HTTP/1.0" 400 291 "-" "-"
+205.145.1.40 - - [01/Sep/2002:04:13:27 +0200] "GET /scripts/..%%35c../winnt/system32/cmd.exe?/c+dir HTTP/1.0" 400 291 "-" "-"
+205.145.1.40 - - [01/Sep/2002:04:13:27 +0200] "GET /scripts/..%25%35%63../winnt/system32/cmd.exe?/c+dir HTTP/1.0" 404 308 "-" "-"
+205.145.1.40 - - [01/Sep/2002:04:13:27 +0200] "GET /scripts/..%252f../winnt/system32/cmd.exe?/c+dir HTTP/1.0" 404 308 "-" "-"
+64.68.82.41 - - [01/Sep/2002:04:14:39 +0200] "GET /modules.php?name=Downloads HTTP/1.0" 200 12685 "-" "Googlebot/2.1 (+http://www.googlebot.com/bot.html)"
+64.68.82.79 - - [01/Sep/2002:04:15:35 +0200] "GET /modules.php?name=News&new_topic=28 HTTP/1.0" 200 19537 "-" "Googlebot/2.1 (+http://www.googlebot.com/bot.html)"
+64.68.82.78 - - [01/Sep/2002:04:16:42 +0200] "GET /modules.php?name=Top HTTP/1.0" 200 17324 "-" "Googlebot/2.1 (+http://www.googlebot.com/bot.html)"
+64.68.82.34 - - [01/Sep/2002:04:19:33 +0200] "GET /modules.php?name=News&new_topic=14 HTTP/1.0" 200 26023 "-" "Googlebot/2.1 (+http://www.googlebot.com/bot.html)"
+64.246.28.92 - - [01/Sep/2002:04:21:25 +0200] "GET /plug/backend.php HTTP/1.1" 200 389 "-" "Syndic8/1.0 (http://www.syndic8.com/)"
+64.68.82.10 - - [01/Sep/2002:04:21:25 +0200] "GET /gnupg_howto/spanish/ HTTP/1.0" 304 - "-" "Googlebot/2.1 (+http://www.googlebot.com/bot.html)"
+64.68.82.30 - - [01/Sep/2002:04:22:05 +0200] "GET /modules.php?name=Sections HTTP/1.0" 200 12837 "-" "Googlebot/2.1 (+http://www.googlebot.com/bot.html)"
+64.68.82.10 - - [01/Sep/2002:04:22:55 +0200] "GET /modules.php?name=Statistics HTTP/1.0" 200 22389 "-" "Googlebot/2.1 (+http://www.googlebot.com/bot.html)"
+64.68.82.34 - - [01/Sep/2002:04:23:20 +0200] "GET /gnupg_howto/english/ HTTP/1.0" 200 2182 "-" "Googlebot/2.1 (+http://www.googlebot.com/bot.html)"
+64.68.82.34 - - [01/Sep/2002:04:24:00 +0200] "GET /gnupg_howto/english/GPGMiniHowto-2.html HTTP/1.0" 304 - "-" "Googlebot/2.1 (+http://www.googlebot.com/bot.html)"
+64.68.82.31 - - [01/Sep/2002:04:26:18 +0200] "GET /modules.php?name=News&new_topic=1 HTTP/1.0" 200 23467 "-" "Googlebot/2.1 (+http://www.googlebot.com/bot.html)"
+64.68.82.51 - - [01/Sep/2002:04:29:17 +0200] "GET /gnupg_howto/english/GPGMiniHowto-1.html HTTP/1.0" 304 - "-" "Googlebot/2.1 (+http://www.googlebot.com/bot.html)"
+64.68.82.43 - - [01/Sep/2002:04:30:07 +0200] "GET /gnupg_howto/english/GPGMiniHowto-3.html HTTP/1.0" 304 - "-" "Googlebot/2.1 (+http://www.googlebot.com/bot.html)"
+64.68.82.79 - - [01/Sep/2002:04:30:38 +0200] "GET /gnupg_howto/spanish/ HTTP/1.0" 304 - "-" "Googlebot/2.1 (+http://www.googlebot.com/bot.html)"
+64.68.82.4 - - [01/Sep/2002:04:31:15 +0200] "GET /modules.php?name=News&new_topic=1 HTTP/1.0" 200 22547 "-" "Googlebot/2.1 (+http://www.googlebot.com/bot.html)"
+64.68.82.30 - - [01/Sep/2002:04:31:54 +0200] "GET /modules.php?name=Downloads HTTP/1.0" 200 12685 "-" "Googlebot/2.1 (+http://www.googlebot.com/bot.html)"
+64.68.82.77 - - [01/Sep/2002:04:33:02 +0200] "GET /gnupg_howto/english/ HTTP/1.0" 200 2182 "-" "Googlebot/2.1 (+http://www.googlebot.com/bot.html)"
+64.68.82.6 - - [01/Sep/2002:04:36:09 +0200] "GET /gnupg_howto/english/GPGMiniHowto.html HTTP/1.0" 304 - "-" "Googlebot/2.1 (+http://www.googlebot.com/bot.html)"
+64.68.82.31 - - [01/Sep/2002:04:38:14 +0200] "GET /modules.php?name=Sections HTTP/1.0" 200 12838 "-" "Googlebot/2.1 (+http://www.googlebot.com/bot.html)"
+64.68.82.34 - - [01/Sep/2002:04:39:03 +0200] "GET /modules.php?name=Statistics HTTP/1.0" 200 22392 "-" "Googlebot/2.1 (+http://www.googlebot.com/bot.html)"
+64.68.82.4 - - [01/Sep/2002:04:39:38 +0200] "GET /modules.php?name=News&new_topic=30 HTTP/1.0" 200 27531 "-" "Googlebot/2.1 (+http://www.googlebot.com/bot.html)"
+64.68.82.48 - - [01/Sep/2002:04:40:13 +0200] "GET /gnupg_howto/english/GPGMiniHowto-2.html HTTP/1.0" 304 - "-" "Googlebot/2.1 (+http://www.googlebot.com/bot.html)"
+64.68.82.55 - - [01/Sep/2002:04:40:37 +0200] "GET /gnupg_howto/english/GPGMiniHowto.txt HTTP/1.0" 304 - "-" "Googlebot/2.1 (+http://www.googlebot.com/bot.html)"
+64.68.82.55 - - [01/Sep/2002:04:41:02 +0200] "GET /backend.php HTTP/1.0" 200 1909 "-" "Googlebot/2.1 (+http://www.googlebot.com/bot.html)"
+64.68.82.6 - - [01/Sep/2002:04:41:38 +0200] "GET /gnupg_howto/english/GPGMiniHowto-5.html HTTP/1.0" 304 - "-" "Googlebot/2.1 (+http://www.googlebot.com/bot.html)"
+64.68.82.26 - - [01/Sep/2002:04:42:06 +0200] "GET / HTTP/1.0" 200 35432 "-" "Googlebot/2.1 (+http://www.googlebot.com/bot.html)"
+64.68.82.30 - - [01/Sep/2002:04:43:54 +0200] "GET /gnupg_howto/english/Makefile HTTP/1.0" 304 - "-" "Googlebot/2.1 (+http://www.googlebot.com/bot.html)"
+64.68.82.78 - - [01/Sep/2002:04:46:36 +0200] "GET /gnupg_howto/english/GPGMiniHowto-6.html HTTP/1.0" 304 - "-" "Googlebot/2.1 (+http://www.googlebot.com/bot.html)"
+64.68.82.65 - - [01/Sep/2002:04:47:17 +0200] "GET /gnupg_howto/english/GPGMiniHowto-4.html HTTP/1.0" 304 - "-" "Googlebot/2.1 (+http://www.googlebot.com/bot.html)"
+64.68.82.65 - - [01/Sep/2002:04:47:50 +0200] "GET /gnupg_howto/english/GPGMiniHowto-8.html HTTP/1.0" 304 - "-" "Googlebot/2.1 (+http://www.googlebot.com/bot.html)"
+64.68.82.77 - - [01/Sep/2002:04:48:28 +0200] "GET /gnupg_howto/english/GPGMiniHowto-7.html HTTP/1.0" 304 - "-" "Googlebot/2.1 (+http://www.googlebot.com/bot.html)"
+64.68.82.10 - - [01/Sep/2002:04:49:07 +0200] "GET /ultramode.txt HTTP/1.0" 304 - "-" "Googlebot/2.1 (+http://www.googlebot.com/bot.html)"
+66.27.153.79 - - [01/Sep/2002:04:49:59 +0200] "GET /gnupg_howto/ HTTP/1.1" 200 1357 "http://www.gnupg.org/docs.html" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"
+66.27.153.79 - - [01/Sep/2002:04:50:01 +0200] "GET /gnupg_howto/english/GPGMiniHowto.html HTTP/1.1" 200 3338 "http://webber.dewinter.com/gnupg_howto/" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"
+66.27.153.79 - - [01/Sep/2002:04:50:06 +0200] "GET /gnupg_howto/english/GPGMiniHowto.sgml HTTP/1.1" 200 30243 "http://webber.dewinter.com/gnupg_howto/" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"
+66.27.153.79 - - [01/Sep/2002:04:50:09 +0200] "GET /gnupg_howto/ HTTP/1.1" 304 - "http://www.gnupg.org/docs.html" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"
+66.27.153.79 - - [01/Sep/2002:04:50:10 +0200] "GET /gnupg_howto/english/GPGMiniHowto.html HTTP/1.1" 304 - "http://webber.dewinter.com/gnupg_howto/" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"
+66.27.153.79 - - [01/Sep/2002:04:50:17 +0200] "GET /gnupg_howto/english/GPGMiniHowto-2.html HTTP/1.1" 200 5784 "http://webber.dewinter.com/gnupg_howto/english/GPGMiniHowto.html" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"
+64.68.82.34 - - [01/Sep/2002:04:51:54 +0200] "GET /index.php HTTP/1.0" 200 35448 "-" "Googlebot/2.1 (+http://www.googlebot.com/bot.html)"
+208.61.117.162 - - [01/Sep/2002:04:52:21 +0200] "GET /gnupg_howto/ HTTP/1.1" 200 1357 "http://freshmeat.net/projects/gnupgminihowto/?topic_id=905" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc3) Gecko/20020523"
+208.61.117.162 - - [01/Sep/2002:04:52:35 +0200] "GET /gnupg_howto/english/GPGMiniHowto.html HTTP/1.1" 200 3338 "http://www.dewinter.com/gnupg_howto/" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc3) Gecko/20020523"
+208.61.117.162 - - [01/Sep/2002:04:52:38 +0200] "GET /gnupg_howto/english/GPGMiniHowto-2.html HTTP/1.1" 200 5784 "http://www.dewinter.com/gnupg_howto/english/GPGMiniHowto.html" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc3) Gecko/20020523"
+64.68.82.43 - - [01/Sep/2002:04:54:35 +0200] "GET /modules.php?name=Web_Links HTTP/1.0" 200 22178 "-" "Googlebot/2.1 (+http://www.googlebot.com/bot.html)"
+207.254.14.183 - - [01/Sep/2002:04:56:22 +0200] "GET /gnupg_howto/ HTTP/1.1" 200 1357 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0rc2) Gecko/20020618 Netscape/7.0b1"
+207.254.14.183 - - [01/Sep/2002:04:56:23 +0200] "GET /favicon.ico HTTP/1.1" 404 293 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0rc2) Gecko/20020618 Netscape/7.0b1"
+207.254.14.183 - - [01/Sep/2002:04:56:31 +0200] "GET /gnupg_howto/english/GPGMiniHowto.txt HTTP/1.1" 200 30570 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0rc2) Gecko/20020618 Netscape/7.0b1"
+208.61.117.162 - - [01/Sep/2002:05:01:41 +0200] "GET /gnupg_howto/ HTTP/1.1" 200 1357 "http://www.gnupg.org/docs.html#howtos" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc3) Gecko/20020523"
+208.61.117.162 - - [01/Sep/2002:05:01:44 +0200] "GET /gnupg_howto/english/GPGMiniHowto.html HTTP/1.1" 200 3338 "http://webber.dewinter.com/gnupg_howto/" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc3) Gecko/20020523"
+208.61.117.162 - - [01/Sep/2002:05:01:51 +0200] "GET /gnupg_howto/english/GPGMiniHowto-3.html HTTP/1.1" 200 9476 "http://webber.dewinter.com/gnupg_howto/english/GPGMiniHowto.html" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc3) Gecko/20020523"
+137.189.4.4 - - [01/Sep/2002:05:18:10 +0200] "GET /gnupg_howto/english/GPGMiniHowto-2.html HTTP/1.1" 200 5784 "http://www.google.com/search?q=installation+of+GNU,+RedHat&hl=en&lr=&ie=UTF-8&oe=UTF-8&start=10&sa=N" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; Win 9x 4.90)"
+68.7.207.205 - - [01/Sep/2002:05:19:06 +0200] "GET /gnupg_howto/english/GPGMiniHowto-4.html HTTP/1.1" 200 2077 "http://webber.dewinter.com/gnupg_howto/english/GPGMiniHowto.html" "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)"
+24.69.127.23 - - [01/Sep/2002:05:27:00 +0200] "GET /gnupg_howto/ HTTP/1.1" 200 1357 "http://www.gnupg.org/docs.html#howtos" "Mozilla/5.0 Galeon/1.2.5 (X11; Linux i686; U;) Gecko/20020606"
+24.69.127.23 - - [01/Sep/2002:05:27:55 +0200] "GET /gnupg_howto/english/GPGMiniHowto.html HTTP/1.1" 200 3338 "http://webber.dewinter.com/gnupg_howto/" "Mozilla/5.0 Galeon/1.2.5 (X11; Linux i686; U;) Gecko/20020606"
+24.69.127.23 - - [01/Sep/2002:05:28:39 +0200] "GET /gnupg_howto/english/GPGMiniHowto-3.html HTTP/1.1" 200 9476 "http://webber.dewinter.com/gnupg_howto/english/GPGMiniHowto.html" "Mozilla/5.0 Galeon/1.2.5 (X11; Linux i686; U;) Gecko/20020606"
+195.92.95.18 - - [01/Sep/2002:05:30:07 +0200] "HEAD / HTTP/1.0" 200 0 "-" "-"
+209.53.157.131 - - [01/Sep/2002:05:33:17 +0200] "GET /gnupg_howto/ HTTP/1.0" 200 1357 "http://www.gnupg.org/docs.html" "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0; T312461)"
+209.53.157.131 - - [01/Sep/2002:05:33:20 +0200] "GET /gnupg_howto/english/GPGMiniHowto.html HTTP/1.0" 200 3338 "http://webber.dewinter.com/gnupg_howto/" "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0; T312461)"
+209.53.157.131 - - [01/Sep/2002:05:33:25 +0200] "GET /gnupg_howto/english/GPGMiniHowto.txt HTTP/1.0" 200 30570 "http://webber.dewinter.com/gnupg_howto/" "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0; T312461)"
+211.28.96.7 - - [01/Sep/2002:05:33:35 +0200] "GET /gnupg_howto/ HTTP/1.0" 200 1357 "http://www.gnupg.org/docs.html" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705)"
+209.53.157.131 - - [01/Sep/2002:05:33:37 +0200] "GET /gnupg_howto/english/GPGMiniHowto-1.html HTTP/1.0" 200 5676 "http://webber.dewinter.com/gnupg_howto/english/GPGMiniHowto.html" "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0; T312461)"
+211.28.96.7 - - [01/Sep/2002:05:33:44 +0200] "GET /gnupg_howto/english/GPGMiniHowto-4.html HTTP/1.0" 200 2077 "http://webber.dewinter.com/gnupg_howto/english/GPGMiniHowto.html" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705)"
diff --git a/test/dump.mail b/test/dump.mail
new file mode 100644 (file)
index 0000000..f57ece2
--- /dev/null
@@ -0,0 +1,131 @@
+From - Thu Sep 19 02:33:55 2002
+X-UIDL: 3d891b7300000001
+X-Mozilla-Status: 0001
+X-Mozilla-Status2: 00000000
+Return-Path: <root@kithira.andromeda.nl>
+Received: (from root@localhost)
+       by kithira.andromeda.nl (8.11.6/8.9.3) id g8J000407528
+       for root; Thu, 19 Sep 2002 02:00:00 +0200
+Date: Thu, 19 Sep 2002 02:00:00 +0200
+Message-Id: <200209190000.g8J000407528@kithira.andromeda.nl>
+From: root@kithira.andromeda.nl (Cron Daemon)
+To: root@kithira.andromeda.nl
+Subject: Cron <root@kithira> /usr/local/sbin/backup 9
+X-Cron-Env: <SHELL=/bin/sh>
+X-Cron-Env: <HOME=/root>
+X-Cron-Env: <PATH=/usr/bin:/bin>
+X-Cron-Env: <LOGNAME=root>
+Status:   
+
+  DUMP: Date of this level 9 dump: Thu Sep 19 02:00:00 2002
+  DUMP: Date of last level 5 dump: Sun Sep 15 02:00:00 2002
+  DUMP: Dumping /dev/hdc5 (/home) to standard output
+  DUMP: Added inode 8 to exclude list (journal inode)
+  DUMP: Added inode 7 to exclude list (resize inode)
+  DUMP: Label: none
+  DUMP: mapping (Pass I) [regular files]
+  DUMP: mapping (Pass II) [directories]
+  DUMP: estimated 237346 tape blocks.
+  DUMP: Volume 1 started with block 1 at: Thu Sep 19 02:00:18 2002
+  DUMP: dumping (Pass III) [directories]
+  DUMP: dumping (Pass IV) [regular files]
+  DUMP: 35.35% done at 277 kB/s, finished in 0:09
+  DUMP: 69.73% done at 274 kB/s, finished in 0:04
+  DUMP: 93.27% done at 244 kB/s, finished in 0:01
+  DUMP: Volume 1 completed at: Thu Sep 19 02:18:01 2002
+  DUMP: Volume 1 238720 tape blocks (233.12MB)
+  DUMP: Volume 1 took 0:17:43
+  DUMP: Volume 1 transfer rate: 224 kB/s
+  DUMP: 238720 tape blocks (233.12MB)
+  DUMP: finished in 1063 seconds, throughput 224 kBytes/sec
+  DUMP: Date of this level 9 dump: Thu Sep 19 02:00:00 2002
+  DUMP: Date this dump completed:  Thu Sep 19 02:18:01 2002
+  DUMP: Average transfer rate: 224 kB/s
+  DUMP: DUMP IS DONE
+  DUMP: Date of this level 9 dump: Thu Sep 19 02:18:02 2002
+  DUMP: Date of last level 5 dump: Sun Sep 15 02:59:46 2002
+  DUMP: Dumping /dev/hda5 (/src) to standard output
+  DUMP: Added inode 8 to exclude list (journal inode)
+  DUMP: Added inode 7 to exclude list (resize inode)
+  DUMP: Label: none
+  DUMP: mapping (Pass I) [regular files]
+  DUMP: mapping (Pass II) [directories]
+  DUMP: estimated 5621 tape blocks.
+  DUMP: Volume 1 started with block 1 at: Thu Sep 19 02:19:26 2002
+  DUMP: dumping (Pass III) [directories]
+  DUMP: dumping (Pass IV) [regular files]
+  DUMP: Volume 1 completed at: Thu Sep 19 02:19:41 2002
+  DUMP: Volume 1 5660 tape blocks (5.53MB)
+  DUMP: Volume 1 took 0:00:15
+  DUMP: Volume 1 transfer rate: 377 kB/s
+  DUMP: 5660 tape blocks (5.53MB)
+  DUMP: finished in 15 seconds, throughput 377 kBytes/sec
+  DUMP: Date of this level 9 dump: Thu Sep 19 02:18:02 2002
+  DUMP: Date this dump completed:  Thu Sep 19 02:19:41 2002
+  DUMP: Average transfer rate: 377 kB/s
+  DUMP: DUMP IS DONE
+  DUMP: Date of this level 9 dump: Thu Sep 19 02:19:42 2002
+  DUMP: Date of last level 5 dump: Sun Sep 15 04:16:44 2002
+  DUMP: Dumping /dev/hdc1 (/doc) to standard output
+  DUMP: Added inode 8 to exclude list (journal inode)
+  DUMP: Added inode 7 to exclude list (resize inode)
+  DUMP: Label: none
+  DUMP: mapping (Pass I) [regular files]
+  DUMP: mapping (Pass II) [directories]
+  DUMP: estimated 9565 tape blocks.
+  DUMP: Volume 1 started with block 1 at: Thu Sep 19 02:19:56 2002
+  DUMP: dumping (Pass III) [directories]
+  DUMP: dumping (Pass IV) [regular files]
+  DUMP: Volume 1 completed at: Thu Sep 19 02:20:35 2002
+  DUMP: Volume 1 9580 tape blocks (9.36MB)
+  DUMP: Volume 1 took 0:00:39
+  DUMP: Volume 1 transfer rate: 245 kB/s
+  DUMP: 9580 tape blocks (9.36MB)
+  DUMP: finished in 39 seconds, throughput 245 kBytes/sec
+  DUMP: Date of this level 9 dump: Thu Sep 19 02:19:42 2002
+  DUMP: Date this dump completed:  Thu Sep 19 02:20:35 2002
+  DUMP: Average transfer rate: 245 kB/s
+  DUMP: DUMP IS DONE
+  DUMP: Date of this level 9 dump: Thu Sep 19 02:20:37 2002
+  DUMP: Date of last level 5 dump: Sun Sep 15 07:13:13 2002
+  DUMP: Dumping /dev/hdc7 (/var) to standard output
+  DUMP: Added inode 8 to exclude list (journal inode)
+  DUMP: Added inode 7 to exclude list (resize inode)
+  DUMP: Label: none
+  DUMP: mapping (Pass I) [regular files]
+  DUMP: mapping (Pass II) [directories]
+  DUMP: estimated 71360 tape blocks.
+  DUMP: Volume 1 started with block 1 at: Thu Sep 19 02:20:47 2002
+  DUMP: dumping (Pass III) [directories]
+  DUMP: dumping (Pass IV) [regular files]
+  DUMP: Volume 1 completed at: Thu Sep 19 02:24:58 2002
+  DUMP: Volume 1 70950 tape blocks (69.29MB)
+  DUMP: Volume 1 took 0:04:11
+  DUMP: Volume 1 transfer rate: 282 kB/s
+  DUMP: 70950 tape blocks (69.29MB)
+  DUMP: finished in 251 seconds, throughput 282 kBytes/sec
+  DUMP: Date of this level 9 dump: Thu Sep 19 02:20:37 2002
+  DUMP: Date this dump completed:  Thu Sep 19 02:24:58 2002
+  DUMP: Average transfer rate: 282 kB/s
+  DUMP: DUMP IS DONE
+  DUMP: Date of this level 9 dump: Thu Sep 19 02:25:01 2002
+  DUMP: Date of last level 5 dump: Sun Sep 15 07:57:09 2002
+  DUMP: Dumping /dev/hda1 (/) to standard output
+  DUMP: Added inode 56 to exclude list (journal inode)
+  DUMP: Added inode 7 to exclude list (resize inode)
+  DUMP: Label: none
+  DUMP: mapping (Pass I) [regular files]
+  DUMP: mapping (Pass II) [directories]
+  DUMP: estimated 159 tape blocks.
+  DUMP: Volume 1 started with block 1 at: Thu Sep 19 02:25:04 2002
+  DUMP: dumping (Pass III) [directories]
+  DUMP: dumping (Pass IV) [regular files]
+  DUMP: Volume 1 completed at: Thu Sep 19 02:25:04 2002
+  DUMP: Volume 1 250 tape blocks (0.24MB)
+  DUMP: 250 tape blocks (0.24MB)
+  DUMP: finished in less than a second
+  DUMP: Date of this level 9 dump: Thu Sep 19 02:25:01 2002
+  DUMP: Date this dump completed:  Thu Sep 19 02:25:04 2002
+  DUMP: Average transfer rate: 0 kB/s
+  DUMP: DUMP IS DONE
+
diff --git a/test/encrytped_mail.dat b/test/encrytped_mail.dat
new file mode 100644 (file)
index 0000000..17b75d4
--- /dev/null
@@ -0,0 +1,64 @@
+From - Sun Sep  8 07:35:23 2002
+X-UIDL: 3d7ae1980000001d
+X-Mozilla-Status: 0001
+X-Mozilla-Status2: 00000000
+Return-Path: <vd.wt.tno.nl!root@auucp0.ams.ops.eu.uu.net>
+Received: from auucp0.ams.ops.eu.uu.net (uucp@localhost)
+       by kithira.andromeda.nl (8.11.6/8.9.3) with UUCP id g885S1t14882
+       for andromeda.nl!arjen; Sun, 8 Sep 2002 07:28:01 +0200
+Received: from vd.wt.tno.nl ([192.87.96.29]:2097 "EHLO vd.wt.tno.nl")
+       by uucp.nl.uu.net with ESMTP id <S680268AbSIHCf0>;
+       Sun, 8 Sep 2002 02:35:26 +0000
+Received: (from root@localhost)
+       by vd.wt.tno.nl (8.11.6/8.11.6) id g882U2N25018
+       for arjen@andromeda.nl; Sun, 8 Sep 2002 04:30:02 +0200
+Date:  Sun, 8 Sep 2002 04:30:02 +0200
+From: root <root@vd.wt.tno.nl>
+Message-Id: <200209080230.g882U2N25018@vd.wt.tno.nl>
+To: arjen@andromeda.nl
+Subject: vd.wt.tno.nl maillog
+Status:   
+
+-----BEGIN PGP MESSAGE-----
+Version: GnuPG v1.0.6 (GNU/Linux)
+Comment: For info see http://www.gnupg.org
+
+hQEOA77QtY8icnqZEAQA2HQHxwg8uI0uyOjYgIOfEhpYYoUEGBbfWwA7CBbyhV19
+fOWdOo0XNySMr2+SW5UGnUnMML8MMSwi2YAzVpRZdLQMralZ+qlnIKZY7w6NbrS9
+xTCS8AG+P+XoPlN+eZ6iDPKNQj8GM3AHcz1AzSbl1TVvKwR5VHoHbFEW+IDLJCcD
+/RQQTt5BiBFo3FU3+++TNwNXJgRjLqySPKmwFODDgWlcemKoxkArrA6E+YYvOY4y
+szJ+sWvAgdpBtLSwMex1H8FiM/96Ucc54L1sxg8gJnO/OIxRw53e/loBQY5CgCEA
+cIDTGu0zjNRKVltI3H7CkCwtt0tRR6Lo0/76e3Lbxc7D0uoBENaBcugDDnZIL9hs
+WLRtIDzxkABenJ54Zr0nHPpdMcNWQMhBKfLntqWzkuCM09itBSdk8wi8C55fbPq6
+tYRYV0ScwCUs0ENSY9emA9wONmpcvxLkBngsdGh5I8DyiSVw/7TeBPy1ZVnfRnVX
+ib2uv0AjExTQ8V39wvuMRQfspvVYUZILbNhDQlRDv+6tMepj+BqemB5lZbVxtAbz
+15N65KiUIqtzvwY2uQmYcH4OnmAf9FFR+pVHGgstuFUmMBgDvxciaW+1FA59/+e6
+QVfrR92FLIz8hDQRLnITCxaDUt8uKs1hk0eBxeMlQ9qGkTKavst7lOO8HXQqnk11
+iJ9ogzTp9fGNtR1xiI5tmrM750n5qaC8QLfBEa/lyjyan8xZkGS8o+3kXX6G/zD9
+OCzu5VL18kfN8aYyf+6X2heWZCxlOosP1b/CV3srMt0E/cUc5v1tOZ7QCUZxQbeA
+Bx2oMBpri9aFZFZgBME5EmP8ehLF8qnkgLasxkekIQLGIui+tpddMm7nDsGvd2Le
+CtV6XIHyqlwtiL6RJ8kOqhtCxFHo4PonVwT0IP9DhHkfBiMs3Q6j6q9oxZK2Ibt1
+WkU43NX3swvKY3uj6/sYDMO/8JiUzcEbww/pLeKNjmRaMDAyNcAhl3CTWXlkFRSW
+O2+vogjGoKld/PvGPuEqQFkck7ZlgZvsiCrHuXgPgp+zV8WLhreCbyjpG9YOklxf
+J23ZKNNHLYISDt+vo3N26XSK8LWnQqbVX3xPRG+nqeDVGmbruBo/Wn67qtdkTvWE
+61GOkwfDjyJG4V2Vbjni4jU4jVHBmRY63T+c2OMfSsPPh0qIX5UYKlKgjahUpwZ9
+qrMwwpj2Rf1f2BcjTMLDmC2gkPYwVHeKxheY1tIPrOJtxy1OwJjNoE0uOKzGVre9
+zK2fOp1dAZLksgNg0QZVdJIAl5Fo/HV5DxuhVyM3OAx/hnkx8p0kgwopXcq2tipc
+ZeAue2GJRRryKdTnxq9DlOZ2XZgSMJvSYDUZAgTs7IEqGVJbmSs9TUHFyee5zQYF
+T/9BYjon9+txSrd77zc95ll/V9hSj7Q8iMERmdDvBP9gtlGkwYWQpgi71i61buTG
+0sTyzncShfL89XpnbqekPOxa/hvQ7DmT5LGndnW8H2atpdh3PZ4yVq+XUBi+9BgM
+hZmyBFKrXiML3y4kSEjuJbDfYcCUy8ivqwJJ9bTKabZMOW1pYcr6txw+DPR8Hdmx
+CD6SfffF5k/i+keZKvIO0/3++GpUnd9S5EVTcx0vV13oWg8p+2wkcnzcKnmQq/Tm
+RwsSGbL0Zr5mUDdF0zCdw56P3IA4toKS5EzJ0HoH/XPvtCGWf9uKEDNWz2A8Xlr4
+uYWGwNjTmQqlROck9XGiCaH7qQjT+DCF1ivUpMT/W7l/abN8SqhlLgQEDiIVsMn7
+REzGk5sUI/Zi8ARScWO4zYOfMMuACWXENioA6M1SylO225KVxxGfDRb0HsFunJuc
+EPD99cmuQLY6MYCHlTwG6lXbrLUv3K64G+jba94j8MkIr2RCul+ClQ310HFobRpZ
+uBJi2nAcXscziPO9KQG9sJWaqiD5GVDM7F4EB//o89vnr3SHb69BGBZd+Hd3gsXi
+dSbgrvtAqynSjl5/y6mbcQCrrlqBg3wjEpO3C/st69pB6I7dgc5S4BCh12IX6qKA
+WCHS5k7rd/zyx4ks5MzY1uz/dIsIMxr3IST98B+9k86quHC37W12KSsFO3v8Yw57
+oEhoXRe+ggtJAFiyt33IMdo0OTFIF6waV11bS+pQU2hrqEh/Bu5X+WluJ4HSys6u
+7BEhSBXRgdRwcnWi9xh+PijxiQP7uw0SPzPVGjODXIzPvxs/NzdoZPMQ2fhwWnb+
+NYMxsTiIYdN7YHzP8aZU1DnLc5NwxCzMaZAskqc=
+=7bSa
+-----END PGP MESSAGE-----
+
diff --git a/test/error_log b/test/error_log
new file mode 100644 (file)
index 0000000..241eaa8
--- /dev/null
@@ -0,0 +1,87 @@
+[Sun Sep  1 04:08:19 2002] [notice] Apache/1.3.23 (Unix)  (Red-Hat/Linux) mod_ssl/2.8.7 OpenSSL/0.9.6b PHP/4.1.2 configured -- resuming normal operations
+[Sun Sep  1 04:08:19 2002] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
+[Sun Sep  1 04:08:19 2002] [notice] Accept mutex: sysvsem (Default: sysvsem)
+[Sun Sep  1 04:13:22 2002] [error] [client 205.145.1.40] File does not exist: /var/www/html/scripts/root.exe
+[Sun Sep  1 04:13:22 2002] [error] [client 205.145.1.40] File does not exist: /var/www/html/MSADC/root.exe
+[Sun Sep  1 04:13:23 2002] [error] [client 205.145.1.40] File does not exist: /var/www/html/c/winnt/system32/cmd.exe
+[Sun Sep  1 04:13:23 2002] [error] [client 205.145.1.40] File does not exist: /var/www/html/d/winnt/system32/cmd.exe
+[Sun Sep  1 04:13:23 2002] [error] [client 205.145.1.40] File does not exist: /var/www/html/scripts/..%5c../winnt/system32/cmd.exe
+[Sun Sep  1 04:13:24 2002] [error] [client 205.145.1.40] File does not exist: /var/www/html/_vti_bin/..%5c../..%5c../..%5c../winnt/system32/cmd.exe
+[Sun Sep  1 04:13:24 2002] [error] [client 205.145.1.40] File does not exist: /var/www/html/_mem_bin/..%5c../..%5c../..%5c../winnt/system32/cmd.exe
+[Sun Sep  1 04:13:25 2002] [error] [client 205.145.1.40] File does not exist: /var/www/html/msadc/..%5c../..%5c../..%5c/..Á\1c../..Á\1c../..Á\1c../winnt/system32/cmd.exe
+[Sun Sep  1 04:13:25 2002] [error] [client 205.145.1.40] File does not exist: /var/www/html/scripts/..Á\1c../winnt/system32/cmd.exe
+[Sun Sep  1 04:13:26 2002] [error] [client 205.145.1.40] File does not exist: /var/www/html/scripts/..À¯../winnt/system32/cmd.exe
+[Sun Sep  1 04:13:26 2002] [error] [client 205.145.1.40] File does not exist: /var/www/html/scripts/..Á\9c../winnt/system32/cmd.exe
+[Sun Sep  1 04:13:27 2002] [error] [client 205.145.1.40] File does not exist: /var/www/html/scripts/..%5c../winnt/system32/cmd.exe
+[Sun Sep  1 04:13:27 2002] [error] [client 205.145.1.40] File does not exist: /var/www/html/scripts/..%2f../winnt/system32/cmd.exe
+[Sun Sep  1 04:21:25 2002] [error] PHP Warning:  Access denied for user: 'root@localhost' (Using password: NO) in /var/www/html/plug/includes/sql_layer.php on line 83
+[Sun Sep  1 04:21:25 2002] [error] PHP Warning:  MySQL Connection Failed: Access denied for user: 'root@localhost' (Using password: NO)
+ in /var/www/html/plug/includes/sql_layer.php on line 83
+[Sun Sep  1 04:56:23 2002] [error] [client 207.254.14.183] File does not exist: /var/www/html/favicon.ico
+[Sun Sep  1 05:41:36 2002] [error] [client 142.179.151.185] File does not exist: /var/www/html/favicon.ico
+[Sun Sep  1 06:40:46 2002] [error] [client 64.68.82.31] File does not exist: /var/www/html/defcon9/
+[Sun Sep  1 07:31:36 2002] [error] [client 64.68.82.6] File does not exist: /var/www/html/presentations/postgres_b2b/Postgres.htm
+[Sun Sep  1 08:10:56 2002] [error] [client 67.40.130.161] File does not exist: /var/www/html/favicon.ico
+[Sun Sep  1 09:45:11 2002] [error] [client 62.99.193.236] File does not exist: /var/www/html/favicon.ico
+[Sun Sep  1 10:23:38 2002] [error] PHP Warning:  Access denied for user: 'root@localhost' (Using password: NO) in /var/www/html/plug/includes/sql_layer.php on line 83
+[Sun Sep  1 10:23:38 2002] [error] PHP Warning:  MySQL Connection Failed: Access denied for user: 'root@localhost' (Using password: NO)
+ in /var/www/html/plug/includes/sql_layer.php on line 83
+[Sun Sep  1 10:26:19 2002] [error] [client 130.95.39.196] File does not exist: /var/www/html/favicon.ico
+[Sun Sep  1 10:32:32 2002] [error] [client 213.150.47.66] Invalid URI in request GET  HTTP/1.0
+[Sun Sep  1 10:32:32 2002] [error] [client 213.150.47.66] Invalid URI in request GET  HTTP/1.0
+[Sun Sep  1 13:07:51 2002] [error] PHP Warning:  Access denied for user: 'root@localhost' (Using password: NO) in /var/www/html/plug/includes/sql_layer.php on line 83
+[Sun Sep  1 13:07:51 2002] [error] PHP Warning:  MySQL Connection Failed: Access denied for user: 'root@localhost' (Using password: NO)
+ in /var/www/html/plug/includes/sql_layer.php on line 83
+[Sun Sep  1 14:28:02 2002] [error] [client 66.20.178.161] File does not exist: /var/www/html/scripts/root.exe
+[Sun Sep  1 14:28:02 2002] [error] [client 66.20.178.161] File does not exist: /var/www/html/MSADC/root.exe
+[Sun Sep  1 14:28:02 2002] [error] [client 66.20.178.161] File does not exist: /var/www/html/c/winnt/system32/cmd.exe
+[Sun Sep  1 14:28:02 2002] [error] [client 66.20.178.161] File does not exist: /var/www/html/d/winnt/system32/cmd.exe
+[Sun Sep  1 14:28:03 2002] [error] [client 66.20.178.161] File does not exist: /var/www/html/scripts/..%5c../winnt/system32/cmd.exe
+[Sun Sep  1 14:28:03 2002] [error] [client 66.20.178.161] File does not exist: /var/www/html/_vti_bin/..%5c../..%5c../..%5c../winnt/system32/cmd.exe
+[Sun Sep  1 14:28:03 2002] [error] [client 66.20.178.161] File does not exist: /var/www/html/_mem_bin/..%5c../..%5c../..%5c../winnt/system32/cmd.exe
+[Sun Sep  1 14:28:03 2002] [error] [client 66.20.178.161] File does not exist: /var/www/html/msadc/..%5c../..%5c../..%5c/..Á\1c../..Á\1c../..Á\1c../winnt/system32/cmd.exe
+[Sun Sep  1 14:28:03 2002] [error] [client 66.20.178.161] File does not exist: /var/www/html/scripts/..Á\1c../winnt/system32/cmd.exe
+[Sun Sep  1 14:28:04 2002] [error] [client 66.20.178.161] File does not exist: /var/www/html/scripts/..À¯../winnt/system32/cmd.exe
+[Sun Sep  1 14:28:04 2002] [error] [client 66.20.178.161] File does not exist: /var/www/html/scripts/..Á\9c../winnt/system32/cmd.exe
+[Sun Sep  1 14:28:05 2002] [error] [client 66.20.178.161] File does not exist: /var/www/html/scripts/..%5c../winnt/system32/cmd.exe
+[Sun Sep  1 14:28:05 2002] [error] [client 66.20.178.161] File does not exist: /var/www/html/scripts/..%2f../winnt/system32/cmd.exe
+[Sun Sep  1 15:59:37 2002] [error] [client 212.91.100.14] File does not exist: /var/www/html/favicon.ico
+[Sun Sep  1 16:22:48 2002] [error] PHP Warning:  Access denied for user: 'root@localhost' (Using password: NO) in /var/www/html/plug/includes/sql_layer.php on line 83
+[Sun Sep  1 16:22:48 2002] [error] PHP Warning:  MySQL Connection Failed: Access denied for user: 'root@localhost' (Using password: NO)
+ in /var/www/html/plug/includes/sql_layer.php on line 83
+[Sun Sep  1 16:49:59 2002] [error] [client 80.128.75.172] File does not exist: /var/www/html/favicon.ico
+[Sun Sep  1 17:13:49 2002] [error] [client 217.127.202.32] File does not exist: /var/www/html/gnupg_howto/spanish/gpgminicomo.html
+[Sun Sep  1 18:40:02 2002] [error] PHP Warning:  Access denied for user: 'root@localhost' (Using password: NO) in /var/www/html/plug/includes/sql_layer.php on line 83
+[Sun Sep  1 18:40:02 2002] [error] PHP Warning:  MySQL Connection Failed: Access denied for user: 'root@localhost' (Using password: NO)
+ in /var/www/html/plug/includes/sql_layer.php on line 83
+[Sun Sep  1 19:24:53 2002] [error] [client 216.239.46.171] File does not exist: /var/www/html/gnupg_howto/english/GPGPMiniHowto-2.html
+[Sun Sep  1 19:26:40 2002] [error] [client 194.211.3.9] File does not exist: /var/www/html/scripts/..%5c%5c../winnt/system32/cmd.exe
+[Sun Sep  1 19:29:24 2002] [error] [client 80.33.52.123] File does not exist: /var/www/html/favicon.ico
+[Sun Sep  1 19:50:03 2002] [error] [client 216.41.32.1] File does not exist: /var/www/html/favicon.ico
+[Sun Sep  1 20:00:40 2002] [error] [client 80.25.151.151] File does not exist: /var/www/html/gnupg_howto/spanish/gpgminicomo.html
+[Sun Sep  1 20:00:46 2002] [error] [client 80.25.151.151] File does not exist: /var/www/html/gnupg_howto/spanish/gpgminicomo.txt
+[Sun Sep  1 20:30:58 2002] [error] [client 212.179.181.181] File does not exist: /var/www/html/favicon.ico
+[Sun Sep  1 20:41:07 2002] [error] [client 80.15.52.224] File does not exist: /var/www/html/favicon.ico
+[Sun Sep  1 20:41:08 2002] [error] [client 80.15.52.224] File does not exist: /var/www/html/favicon.ico
+[Sun Sep  1 21:53:41 2002] [error] [client 129.21.110.22] File does not exist: /var/www/html/favicon.ico
+[Sun Sep  1 22:22:31 2002] [error] PHP Warning:  Access denied for user: 'root@localhost' (Using password: NO) in /var/www/html/plug/includes/sql_layer.php on line 83
+[Sun Sep  1 22:22:31 2002] [error] PHP Warning:  MySQL Connection Failed: Access denied for user: 'root@localhost' (Using password: NO)
+ in /var/www/html/plug/includes/sql_layer.php on line 83
+[Sun Sep  1 23:31:56 2002] [error] [client 66.68.137.58] File does not exist: /var/www/html/favicon.ico
+[Mon Sep  2 00:20:58 2002] [error] [client 213.84.201.130] File does not exist: /var/www/html/favicon.ico
+[Mon Sep  2 00:42:09 2002] [error] [client 213.84.201.130] File does not exist: /var/www/html/favicon.ico
+[Mon Sep  2 00:42:19 2002] [error] [client 213.84.201.130] File does not exist: /var/www/html/favicon.ico
+[Mon Sep  2 00:43:47 2002] [error] [client 172.176.137.109] File does not exist: /var/www/html/scripts/..À¯../winnt/system32/cmd.exe
+[Mon Sep  2 00:43:47 2002] [error] [client 172.176.137.109] File does not exist: /var/www/html/scripts/..À¯../winnt/system32/cmd.exe
+[Mon Sep  2 00:43:48 2002] [error] [client 172.176.137.109] File does not exist: /var/www/html/scripts/..À¯../winnt/system32/cmd.exe
+[Mon Sep  2 00:43:49 2002] [error] [client 172.176.137.109] File does not exist: /var/www/html/scripts/..À¯../winnt/system32/cmd.exe
+[Mon Sep  2 00:43:51 2002] [error] [client 172.176.137.109] File does not exist: /var/www/html/scripts/.%2e/.%2e/winnt/system32/cmd.exe
+[Mon Sep  2 00:43:54 2002] [error] [client 172.176.137.109] File does not exist: /var/www/html/scripts/.%2e/.%2e/winnt/system32/cmd.exe
+[Mon Sep  2 00:43:57 2002] [error] [client 172.176.137.109] File does not exist: /var/www/html/scripts/.%2e/.%2e/winnt/system32/cmd.exe
+[Mon Sep  2 00:44:01 2002] [error] [client 172.176.137.109] File does not exist: /var/www/html/scripts/.%2e/.%2e/winnt/system32/cmd.exe
+[Mon Sep  2 00:44:09 2002] [error] [client 172.176.137.109] File does not exist: /var/www/html/scripts/..À¯../winnt/system32/cmd.exe
+[Mon Sep  2 00:44:13 2002] [error] [client 172.176.137.109] File does not exist: /var/www/html/scripts/.%2e/.%2e/winnt/system32/cmd.exe
+[Mon Sep  2 00:53:28 2002] [error] [client 68.20.177.68] File does not exist: /var/www/html/favicon.ico
+[Mon Sep  2 00:59:31 2002] [error] [client 65.103.180.175] File does not exist: /var/www/html/favicon.ico
+[Mon Sep  2 01:39:54 2002] [error] [client 66.167.65.241] File does not exist: /var/www/html/favicon.ico
+[Mon Sep  2 03:39:39 2002] [error] [client 68.50.4.25] File does not exist: /var/www/html/favicon.ico
diff --git a/test/kithira.mail b/test/kithira.mail
new file mode 100644 (file)
index 0000000..7da4625
--- /dev/null
@@ -0,0 +1,43 @@
+From - Sat Sep 14 15:01:15 2002
+X-UIDL: 3d83331b00000002
+X-Mozilla-Status: 0001
+X-Mozilla-Status2: 00000000
+Return-Path: <root@kithira.andromeda.nl>
+Received: (from root@localhost)
+       by kithira.andromeda.nl (8.11.6/8.9.3) id g8ECjxQ23224
+       for arjen; Sat, 14 Sep 2002 14:45:59 +0200
+Date: Sat, 14 Sep 2002 14:45:59 +0200
+From: root <root@kithira.andromeda.nl>
+Message-Id: <200209141245.g8ECjxQ23224@kithira.andromeda.nl>
+To: arjen@kithira.andromeda.nl
+Subject: kithira messages
+Status:   
+
+Sep  1 04:02:51 kithira syslogd 1.4.1: restart.
+Sep  1 04:10:00 kithira CROND[17405]: (root) CMD (   /sbin/lsmod >/var/log/lsmod.log; /sbin/rmmod -as) 
+Sep  1 04:11:07 kithira kernel: isdn_net: local hangup ippp0
+Sep  1 04:11:07 kithira kernel: ippp0: Chargesum is 0
+Sep  1 04:11:07 kithira ipppd[1513]: Modem hangup
+Sep  1 04:11:07 kithira ipppd[1513]: Connection terminated.
+Sep  1 04:11:07 kithira ipppd[1513]: taking down PHASE_DEAD link 0, linkunit: 0
+Sep  1 04:11:07 kithira ipppd[1513]: closing fd 7 from unit 0
+Sep  1 04:11:07 kithira ipppd[1513]: link 0 closed , linkunit: 0
+Sep  1 04:11:07 kithira ipppd[1513]: reinit_unit: 0 
+Sep  1 04:11:07 kithira ipppd[1513]: Connect[0]: /dev/ippp0, fd: 7
+Sep  1 04:15:00 kithira CROND[17423]: (uucp) CMD (/usr/sbin/uucico -r1) 
+Sep  1 04:20:00 kithira CROND[17581]: (root) CMD (   /sbin/lsmod >/var/log/lsmod.log; /sbin/rmmod -as) 
+Sep  1 04:20:00 kithira kernel: solo1: unloading
+Sep  1 04:20:00 kithira kernel: Uniform CD-ROM driver unloaded
+Sep  1 04:20:01 kithira kernel: ide-floppy driver 0.99.newide
+Sep  1 04:20:02 kithira kernel: hdb: ATAPI 40X CD-ROM drive, 128kB Cache, DMA
+Sep  1 04:20:02 kithira kernel: Uniform CD-ROM driver Revision: 3.12
+Sep  1 04:20:02 kithira kernel: Attached scsi CD-ROM sr0 at scsi0, channel 0, id 4, lun 0
+Sep  1 04:20:02 kithira kernel: sr0: scsi3-mmc drive: 20x/20x writer cd/rw xa/form2 cdda tray
+Sep  1 04:22:00 kithira CROND[17587]: (root) CMD (run-parts /etc/cron.weekly) 
+Sep  1 04:22:00 kithira anacron[17591]: Error opening /etc/anacrontab: No such file or directory
+Sep  1 04:22:00 kithira anacron[17591]: Aborted
+Sep  1 04:30:00 kithira CROND[27975]: (root) CMD (   /sbin/lsmod >/var/log/lsmod.log; /sbin/rmmod -as) 
+Sep  1 04:30:51 kithira su(pam_unix)[27979]: session opened for user news by (uid=0)
+Sep  1 04:30:51 kithira su(pam_unix)[27979]: session closed for user news
+Sep  1 04:31:03 kithira named[996]: listening on IPv4 interface ippp0, 195.121.198.124#53
+Sep  1 04:31:03 kithira named[996]: no longer listening on 195.121.198.217#53
diff --git a/test/messages b/test/messages
new file mode 100644 (file)
index 0000000..42a23b3
--- /dev/null
@@ -0,0 +1,28 @@
+Sep  1 04:02:51 kithira syslogd 1.4.1: restart.
+Sep  1 04:10:00 kithira CROND[17405]: (root) CMD (   /sbin/lsmod >/var/log/lsmod.log; /sbin/rmmod -as) 
+Sep  1 04:11:07 kithira kernel: isdn_net: local hangup ippp0
+Sep  1 04:11:07 kithira kernel: ippp0: Chargesum is 0
+Sep  1 04:11:07 kithira ipppd[1513]: Modem hangup
+Sep  1 04:11:07 kithira ipppd[1513]: Connection terminated.
+Sep  1 04:11:07 kithira ipppd[1513]: taking down PHASE_DEAD link 0, linkunit: 0
+Sep  1 04:11:07 kithira ipppd[1513]: closing fd 7 from unit 0
+Sep  1 04:11:07 kithira ipppd[1513]: link 0 closed , linkunit: 0
+Sep  1 04:11:07 kithira ipppd[1513]: reinit_unit: 0 
+Sep  1 04:11:07 kithira ipppd[1513]: Connect[0]: /dev/ippp0, fd: 7
+Sep  1 04:15:00 kithira CROND[17423]: (uucp) CMD (/usr/sbin/uucico -r1) 
+Sep  1 04:20:00 kithira CROND[17581]: (root) CMD (   /sbin/lsmod >/var/log/lsmod.log; /sbin/rmmod -as) 
+Sep  1 04:20:00 kithira kernel: solo1: unloading
+Sep  1 04:20:00 kithira kernel: Uniform CD-ROM driver unloaded
+Sep  1 04:20:01 kithira kernel: ide-floppy driver 0.99.newide
+Sep  1 04:20:02 kithira kernel: hdb: ATAPI 40X CD-ROM drive, 128kB Cache, DMA
+Sep  1 04:20:02 kithira kernel: Uniform CD-ROM driver Revision: 3.12
+Sep  1 04:20:02 kithira kernel: Attached scsi CD-ROM sr0 at scsi0, channel 0, id 4, lun 0
+Sep  1 04:20:02 kithira kernel: sr0: scsi3-mmc drive: 20x/20x writer cd/rw xa/form2 cdda tray
+Sep  1 04:22:00 kithira CROND[17587]: (root) CMD (run-parts /etc/cron.weekly) 
+Sep  1 04:22:00 kithira anacron[17591]: Error opening /etc/anacrontab: No such file or directory
+Sep  1 04:22:00 kithira anacron[17591]: Aborted
+Sep  1 04:30:00 kithira CROND[27975]: (root) CMD (   /sbin/lsmod >/var/log/lsmod.log; /sbin/rmmod -as) 
+Sep  1 04:30:51 kithira su(pam_unix)[27979]: session opened for user news by (uid=0)
+Sep  1 04:30:51 kithira su(pam_unix)[27979]: session closed for user news
+Sep  1 04:31:03 kithira named[996]: listening on IPv4 interface ippp0, 195.121.198.124#53
+Sep  1 04:31:03 kithira named[996]: no longer listening on 195.121.198.217#53
diff --git a/test/t0001.sh b/test/t0001.sh
new file mode 100644 (file)
index 0000000..74cc218
--- /dev/null
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+# First test. Create and destroy the database.
+
+cd ..
+
+if psql gnucomo_test -f src/create.sql
+then
+   psql gnucomo_test -c 'select statuscode from status'
+   result=$?
+   psql gnucomo_test -f src/destroy.sql
+   exit $result
+else
+   echo Can not create test database
+   exit 1
+fi
diff --git a/test/t0001a.sh b/test/t0001a.sh
deleted file mode 100644 (file)
index bf5adfe..0000000
+++ /dev/null
@@ -1 +0,0 @@
-xmllint --noout --valid doc/manifest.xml
diff --git a/test/t0002.log b/test/t0002.log
new file mode 100644 (file)
index 0000000..b72ea22
--- /dev/null
@@ -0,0 +1,194 @@
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+ setval 
+--------
+     19
+(1 row)
+
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+ setval 
+--------
+      1
+(1 row)
+
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+ setval 
+--------
+      1
+(1 row)
+
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+ setval 
+--------
+      1
+(1 row)
+
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+ setval 
+--------
+      1
+(1 row)
+
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+ setval 
+--------
+      1
+(1 row)
+
+CREATE
+CREATE
+CREATE
+ setval 
+--------
+      1
+(1 row)
+
+CREATE
+CREATE
+CREATE
+ objectid |      objectname      | objectcode | scp_enabled | scp_inet | mail_enabled | mail_from | sms_enabled | sms_number | fax_enabled | fax_number | object_description | object_owner | physical_location | timezone | remark 
+----------+----------------------+------------+-------------+----------+--------------+-----------+-------------+------------+-------------+------------+--------------------+--------------+-------------------+----------+--------
+        1 | kithira.andromeda.nl |            |             |          |              |           |             |            |             |            |                    |              |                   |          | 
+(1 row)
+
+ logid | objectid | original_filename | servicecode |    object_timestamp    |       timestamp        |                                                 rawdata                                                 
+-------+----------+-------------------+-------------+------------------------+------------------------+---------------------------------------------------------------------------------------------------------
+     1 |        1 |                   | syslogd     | 2002-09-01 04:02:51+02 | 2002-09-05 20:30:45+02 | Sep  1 04:02:51 kithira syslogd 1.4.1: restart.
+     2 |        1 |                   | CROND       | 2002-09-01 04:10:00+02 | 2002-09-05 20:30:45+02 | Sep  1 04:10:00 kithira CROND[17405]: (root) CMD (   /sbin/lsmod >/var/log/lsmod.log; /sbin/rmmod -as) 
+     3 |        1 |                   | kernel      | 2002-09-01 04:11:07+02 | 2002-09-05 20:30:45+02 | Sep  1 04:11:07 kithira kernel: isdn_net: local hangup ippp0
+     4 |        1 |                   | kernel      | 2002-09-01 04:11:07+02 | 2002-09-05 20:30:45+02 | Sep  1 04:11:07 kithira kernel: ippp0: Chargesum is 0
+     5 |        1 |                   | ipppd       | 2002-09-01 04:11:07+02 | 2002-09-05 20:30:45+02 | Sep  1 04:11:07 kithira ipppd[1513]: Modem hangup
+     6 |        1 |                   | ipppd       | 2002-09-01 04:11:07+02 | 2002-09-05 20:30:45+02 | Sep  1 04:11:07 kithira ipppd[1513]: Connection terminated.
+     7 |        1 |                   | ipppd       | 2002-09-01 04:11:07+02 | 2002-09-05 20:30:45+02 | Sep  1 04:11:07 kithira ipppd[1513]: taking down PHASE_DEAD link 0, linkunit: 0
+     8 |        1 |                   | ipppd       | 2002-09-01 04:11:07+02 | 2002-09-05 20:30:45+02 | Sep  1 04:11:07 kithira ipppd[1513]: closing fd 7 from unit 0
+     9 |        1 |                   | ipppd       | 2002-09-01 04:11:07+02 | 2002-09-05 20:30:45+02 | Sep  1 04:11:07 kithira ipppd[1513]: link 0 closed , linkunit: 0
+    10 |        1 |                   | ipppd       | 2002-09-01 04:11:07+02 | 2002-09-05 20:30:45+02 | Sep  1 04:11:07 kithira ipppd[1513]: reinit_unit: 0 
+    11 |        1 |                   | ipppd       | 2002-09-01 04:11:07+02 | 2002-09-05 20:30:45+02 | Sep  1 04:11:07 kithira ipppd[1513]: Connect[0]: /dev/ippp0, fd: 7
+    12 |        1 |                   | CROND       | 2002-09-01 04:15:00+02 | 2002-09-05 20:30:45+02 | Sep  1 04:15:00 kithira CROND[17423]: (uucp) CMD (/usr/sbin/uucico -r1) 
+    13 |        1 |                   | CROND       | 2002-09-01 04:20:00+02 | 2002-09-05 20:30:45+02 | Sep  1 04:20:00 kithira CROND[17581]: (root) CMD (   /sbin/lsmod >/var/log/lsmod.log; /sbin/rmmod -as) 
+    14 |        1 |                   | kernel      | 2002-09-01 04:20:00+02 | 2002-09-05 20:30:45+02 | Sep  1 04:20:00 kithira kernel: solo1: unloading
+    15 |        1 |                   | kernel      | 2002-09-01 04:20:00+02 | 2002-09-05 20:30:45+02 | Sep  1 04:20:00 kithira kernel: Uniform CD-ROM driver unloaded
+    16 |        1 |                   | kernel      | 2002-09-01 04:20:01+02 | 2002-09-05 20:30:45+02 | Sep  1 04:20:01 kithira kernel: ide-floppy driver 0.99.newide
+    17 |        1 |                   | kernel      | 2002-09-01 04:20:02+02 | 2002-09-05 20:30:45+02 | Sep  1 04:20:02 kithira kernel: hdb: ATAPI 40X CD-ROM drive, 128kB Cache, DMA
+    18 |        1 |                   | kernel      | 2002-09-01 04:20:02+02 | 2002-09-05 20:30:45+02 | Sep  1 04:20:02 kithira kernel: Uniform CD-ROM driver Revision: 3.12
+    19 |        1 |                   | kernel      | 2002-09-01 04:20:02+02 | 2002-09-05 20:30:45+02 | Sep  1 04:20:02 kithira kernel: Attached scsi CD-ROM sr0 at scsi0, channel 0, id 4, lun 0
+    20 |        1 |                   | kernel      | 2002-09-01 04:20:02+02 | 2002-09-05 20:30:45+02 | Sep  1 04:20:02 kithira kernel: sr0: scsi3-mmc drive: 20x/20x writer cd/rw xa/form2 cdda tray
+    21 |        1 |                   | CROND       | 2002-09-01 04:22:00+02 | 2002-09-05 20:30:45+02 | Sep  1 04:22:00 kithira CROND[17587]: (root) CMD (run-parts /etc/cron.weekly) 
+    22 |        1 |                   | anacron     | 2002-09-01 04:22:00+02 | 2002-09-05 20:30:45+02 | Sep  1 04:22:00 kithira anacron[17591]: Error opening /etc/anacrontab: No such file or directory
+    23 |        1 |                   | anacron     | 2002-09-01 04:22:00+02 | 2002-09-05 20:30:45+02 | Sep  1 04:22:00 kithira anacron[17591]: Aborted
+    24 |        1 |                   | CROND       | 2002-09-01 04:30:00+02 | 2002-09-05 20:30:45+02 | Sep  1 04:30:00 kithira CROND[27975]: (root) CMD (   /sbin/lsmod >/var/log/lsmod.log; /sbin/rmmod -as) 
+    25 |        1 |                   | su          | 2002-09-01 04:30:51+02 | 2002-09-05 20:30:45+02 | Sep  1 04:30:51 kithira su(pam_unix)[27979]: session opened for user news by (uid=0)
+    26 |        1 |                   | su          | 2002-09-01 04:30:51+02 | 2002-09-05 20:30:45+02 | Sep  1 04:30:51 kithira su(pam_unix)[27979]: session closed for user news
+    27 |        1 |                   | named       | 2002-09-01 04:31:03+02 | 2002-09-05 20:30:45+02 | Sep  1 04:31:03 kithira named[996]: listening on IPv4 interface ippp0, 195.121.198.124#53
+    28 |        1 |                   | named       | 2002-09-01 04:31:03+02 | 2002-09-05 20:30:45+02 | Sep  1 04:31:03 kithira named[996]: no longer listening on 195.121.198.217#53
+(28 rows)
+
+DROP
+DROP
+DROP
+DROP
+DROP
+DROP
+DROP
+DROP
+DROP
+DROP
+DROP
+DROP
+DROP
+DROP
+DROP
+DROP
+DROP
+DROP
+DROP
+DROP
+DROP
+DROP
+DROP
+DROP
+DROP
index 7ccb431..fc5cef1 100644 (file)
@@ -1,9 +1,19 @@
 #!/bin/sh
 
+#
+#  Create an object 'kithira.andromeda.nl' in the database and
+#  parse a piece of a syslog file.
+#  This tests normal operation in which gcm_input reads a syslog file
+#  directly.
+
+cd ..
+
 if psql gnucomo_test -f src/create.sql
 then
-   psql gnucomo_test -c 'select statuscode from status'
-   result=$?
+   psql gnucomo_test -q -c "insert into object (objectname) values ('kithira.andromeda.nl')"
+   psql gnucomo_test -c "select * from object"
+   src/gcm_input -c gnucomo_test -h kithira.andromeda.nl -d 'sep 5 2002 20:30:45' <test/messages
+   psql gnucomo_test -c "select * from log"
    psql gnucomo_test -f src/destroy.sql
    exit $result
 else
diff --git a/test/t0003.err b/test/t0003.err
new file mode 100644 (file)
index 0000000..daf0555
--- /dev/null
@@ -0,0 +1,3 @@
+gcm_input WARNING: Short line on input: nearly empty line
+gcm_input WARNING: Short line on input: Jun  5 04:02:16 vd 
+gcm_input WARNING: Short line on input: 
diff --git a/test/t0003.log b/test/t0003.log
new file mode 100644 (file)
index 0000000..e85f159
--- /dev/null
@@ -0,0 +1,193 @@
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+ setval 
+--------
+     19
+(1 row)
+
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+ setval 
+--------
+      1
+(1 row)
+
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+ setval 
+--------
+      1
+(1 row)
+
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+ setval 
+--------
+      1
+(1 row)
+
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+ setval 
+--------
+      1
+(1 row)
+
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+CREATE
+ setval 
+--------
+      1
+(1 row)
+
+CREATE
+CREATE
+CREATE
+ setval 
+--------
+      1
+(1 row)
+
+CREATE
+CREATE
+CREATE
+ objectid |  objectname  | objectcode | scp_enabled | scp_inet | mail_enabled | mail_from | sms_enabled | sms_number | fax_enabled | fax_number | object_description | object_owner | physical_location | timezone | remark 
+----------+--------------+------------+-------------+----------+--------------+-----------+-------------+------------+-------------+------------+--------------------+--------------+-------------------+----------+--------
+        1 | vd.wt.tno.nl |            |             |          |              |           |             |            |             |            |                    |              |                   |          | 
+(1 row)
+
+ logid | objectid | original_filename | servicecode |    object_timestamp    |       timestamp        |                                                                     rawdata                                                                      
+-------+----------+-------------------+-------------+------------------------+------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------
+     1 |        1 |                   | syslogd     | 2002-06-02 04:02:17+02 | 2002-09-05 20:30:45+02 | Jun  2 04:02:17 vd syslogd 1.4.1: restart.
+     2 |        1 |                   | syslogd     | 2002-06-03 04:02:03+02 | 2002-09-05 20:30:45+02 | Jun  3 04:02:03 vd syslogd 1.4.1: restart.
+     3 |        1 |                   | syslogd     | 2002-06-04 04:02:08+02 | 2002-09-05 20:30:45+02 | Jun  4 04:02:08 vd syslogd 1.4.1: restart.
+     4 |        1 |                   | sshd        | 2002-06-04 08:30:28+02 | 2002-09-05 20:30:45+02 | Jun  4 08:30:28 vd sshd(pam_unix)[9380]: session opened for user ebusp by (uid=0)
+     5 |        1 |                   | sshd        | 2002-06-04 08:32:57+02 | 2002-09-05 20:30:45+02 | Jun  4 08:32:57 vd sshd(pam_unix)[9380]: session closed for user ebusp
+     6 |        1 |                   | sshd        | 2002-06-04 12:39:58+02 | 2002-09-05 20:30:45+02 | Jun  4 12:39:58 vd sshd(pam_unix)[9644]: session opened for user victorsd by (uid=0)
+     7 |        1 |                   | sshd        | 2002-06-04 12:43:39+02 | 2002-09-05 20:30:45+02 | Jun  4 12:43:39 vd sshd(pam_unix)[9689]: session opened for user victorsd by (uid=0)
+     8 |        1 |                   | sshd        | 2002-06-04 12:44:51+02 | 2002-09-05 20:30:45+02 | Jun  4 12:44:51 vd sshd(pam_unix)[9689]: session closed for user victorsd
+     9 |        1 |                   | sshd        | 2002-06-04 12:45:47+02 | 2002-09-05 20:30:45+02 | Jun  4 12:45:47 vd sshd(pam_unix)[9722]: session opened for user victorsd by (uid=0)
+    10 |        1 |                   | sshd        | 2002-06-04 12:58:26+02 | 2002-09-05 20:30:45+02 | Jun  4 12:58:26 vd sshd(pam_unix)[9722]: session closed for user victorsd
+    11 |        1 |                   | sshd        | 2002-06-04 14:09:04+02 | 2002-09-05 20:30:45+02 | Jun  4 14:09:04 vd sshd(pam_unix)[9874]: authentication failure; logname= uid=0 euid=0 tty=NODEVssh ruser= rhost=wt4050.wt.tno.nl  user=victorsd
+    12 |        1 |                   | sshd        | 2002-06-04 14:09:10+02 | 2002-09-05 20:30:45+02 | Jun  4 14:09:10 vd sshd(pam_unix)[9874]: session opened for user victorsd by (uid=0)
+    13 |        1 |                   | sshd        | 2002-06-04 14:25:08+02 | 2002-09-05 20:30:45+02 | Jun  4 14:25:08 vd sshd(pam_unix)[9644]: session closed for user victorsd
+    14 |        1 |                   | sshd        | 2002-06-04 15:10:25+02 | 2002-09-05 20:30:45+02 | Jun  4 15:10:25 vd sshd(pam_unix)[9874]: session closed for user victorsd
+    15 |        1 |                   | sshd        | 2002-06-04 16:40:52+02 | 2002-09-05 20:30:45+02 | Jun  4 16:40:52 vd sshd(pam_unix)[10056]: session opened for user arjen by (uid=0)
+    16 |        1 |                   | sshd        | 2002-06-04 16:40:53+02 | 2002-09-05 20:30:45+02 | Jun  4 16:40:53 vd sshd(pam_unix)[10056]: session closed for user arjen
+    17 |        1 |                   | sshd        | 2002-06-04 16:41:04+02 | 2002-09-05 20:30:45+02 | Jun  4 16:41:04 vd sshd(pam_unix)[10058]: session opened for user arjen by (uid=0)
+    18 |        1 |                   | su          | 2002-06-04 16:42:01+02 | 2002-09-05 20:30:45+02 | Jun  4 16:42:01 vd su(pam_unix)[10090]: session opened for user root by arjen(uid=504)
+    19 |        1 |                   | su          | 2002-06-04 16:42:42+02 | 2002-09-05 20:30:45+02 | Jun  4 16:42:42 vd su(pam_unix)[10090]: session closed for user root
+    20 |        1 |                   | sshd        | 2002-06-04 16:42:44+02 | 2002-09-05 20:30:45+02 | Jun  4 16:42:44 vd sshd(pam_unix)[10058]: session closed for user arjen
+    21 |        1 |                   | syslogd     | 2002-06-06 04:02:05+02 | 2002-09-05 20:30:45+02 | Jun  6 04:02:05 vd syslogd 1.4.1: restart.
+    22 |        1 |                   | sshd        | 2002-06-06 09:22:44+02 | 2002-09-05 20:30:45+02 | Jun  6 09:22:44 vd sshd(pam_unix)[13090]: session opened for user ebusp by (uid=0)
+    23 |        1 |                   | sshd        | 2002-06-06 09:25:32+02 | 2002-09-05 20:30:45+02 | Jun  6 09:25:32 vd sshd(pam_unix)[13090]: session closed for user ebusp
+    24 |        1 |                   | sshd        | 2002-06-06 11:20:31+02 | 2002-09-05 20:30:45+02 | Jun  6 11:20:31 vd sshd(pam_unix)[13242]: session opened for user verhoeff by (uid=0)
+    25 |        1 |                   | sshd        | 2002-06-06 11:26:09+02 | 2002-09-05 20:30:45+02 | Jun  6 11:26:09 vd sshd(pam_unix)[13242]: session closed for user verhoeff
+    26 |        1 |                   | syslogd     | 2002-06-07 04:02:08+02 | 2002-09-05 20:30:45+02 | Jun  7 04:02:08 vd syslogd 1.4.1: restart.
+    27 |        1 |                   | syslogd     | 2002-06-08 04:02:09+02 | 2002-09-05 20:30:45+02 | Jun  8 04:02:09 vd syslogd 1.4.1: restart.
+(27 rows)
+
+DROP
+DROP
+DROP
+DROP
+DROP
+DROP
+DROP
+DROP
+DROP
+DROP
+DROP
+DROP
+DROP
+DROP
+DROP
+DROP
+DROP
+DROP
+DROP
+DROP
+DROP
+DROP
+DROP
+DROP
+DROP
diff --git a/test/t0003.sh b/test/t0003.sh
new file mode 100644 (file)
index 0000000..957a536
--- /dev/null
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+#
+#  Create an object 'vd.wt.tno.nl' in the database and
+#  parse a piece of a syslog file with short and even empty lines.
+#  There should be warnings printed on stderr.
+#
+
+cd ..
+
+if psql gnucomo_test -f src/create.sql
+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 -c gnucomo_test -h vd.wt.tno.nl -d 'sep 5 2002 20:30:45' <test/vd.messages
+   psql gnucomo_test -c "select * from log"
+   psql gnucomo_test -f src/destroy.sql
+   exit $result
+else
+   echo Can not create test database
+   exit 1
+fi
diff --git a/test/t0003a.sh b/test/t0003a.sh
deleted file mode 100644 (file)
index ef44ed0..0000000
+++ /dev/null
@@ -1 +0,0 @@
-xmllint --noout --valid doc/design.xml
diff --git a/test/t0004.sh b/test/t0004.sh
new file mode 100644 (file)
index 0000000..adbd0c6
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+#
+#  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.
+
+cd ..
+
+if psql gnucomo_test -f src/create.sql
+then
+   psql gnucomo_test -q -c "insert into object (objectname) values ('kithira.andromeda.nl')"
+   psql gnucomo_test -c "select * from object"
+   src/gcm_input -c gnucomo_test  <test/messages
+   psql gnucomo_test -c "select * from log"
+   psql gnucomo_test -f src/destroy.sql
+   exit $result
+else
+   echo Can not create test database
+   exit 1
+fi
diff --git a/test/t0005.sh b/test/t0005.sh
new file mode 100644 (file)
index 0000000..97eee81
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+#
+#  Create an object 'kithira.andromeda.nl' in the database and
+#  parse a piece of a syslog file without specifying a time.
+#  This tests wether an improper time still creates valid data.
+
+cd ..
+
+if psql gnucomo_test -f src/create.sql
+then
+   psql gnucomo_test -q -c "insert into object (objectname) values ('kithira.andromeda.nl')"
+   psql gnucomo_test -c "select * from object"
+   src/gcm_input -c gnucomo_test -h kithira.andromeda.nl -d 'sep 5 2002' <test/messages
+   psql gnucomo_test -c "select * from log"
+   psql gnucomo_test -f src/destroy.sql
+   exit $result
+else
+   echo Can not create test database
+   exit 1
+fi
diff --git a/test/vd.messages b/test/vd.messages
new file mode 100644 (file)
index 0000000..5f56296
--- /dev/null
@@ -0,0 +1,30 @@
+Jun  2 04:02:17 vd syslogd 1.4.1: restart.
+Jun  3 04:02:03 vd syslogd 1.4.1: restart.
+Jun  4 04:02:08 vd syslogd 1.4.1: restart.
+Jun  4 08:30:28 vd sshd(pam_unix)[9380]: session opened for user ebusp by (uid=0)
+Jun  4 08:32:57 vd sshd(pam_unix)[9380]: session closed for user ebusp
+Jun  4 12:39:58 vd sshd(pam_unix)[9644]: session opened for user victorsd by (uid=0)
+Jun  4 12:43:39 vd sshd(pam_unix)[9689]: session opened for user victorsd by (uid=0)
+Jun  4 12:44:51 vd sshd(pam_unix)[9689]: session closed for user victorsd
+Jun  4 12:45:47 vd sshd(pam_unix)[9722]: session opened for user victorsd by (uid=0)
+Jun  4 12:58:26 vd sshd(pam_unix)[9722]: session closed for user victorsd
+Jun  4 14:09:04 vd sshd(pam_unix)[9874]: authentication failure; logname= uid=0 euid=0 tty=NODEVssh ruser= rhost=wt4050.wt.tno.nl  user=victorsd
+Jun  4 14:09:10 vd sshd(pam_unix)[9874]: session opened for user victorsd by (uid=0)
+Jun  4 14:25:08 vd sshd(pam_unix)[9644]: session closed for user victorsd
+Jun  4 15:10:25 vd sshd(pam_unix)[9874]: session closed for user victorsd
+Jun  4 16:40:52 vd sshd(pam_unix)[10056]: session opened for user arjen by (uid=0)
+Jun  4 16:40:53 vd sshd(pam_unix)[10056]: session closed for user arjen
+Jun  4 16:41:04 vd sshd(pam_unix)[10058]: session opened for user arjen by (uid=0)
+nearly empty line
+Jun  4 16:42:01 vd su(pam_unix)[10090]: session opened for user root by arjen(uid=504)
+Jun  4 16:42:42 vd su(pam_unix)[10090]: session closed for user root
+Jun  4 16:42:44 vd sshd(pam_unix)[10058]: session closed for user arjen
+Jun  5 04:02:16 vd 
+Jun  6 04:02:05 vd syslogd 1.4.1: restart.
+Jun  6 09:22:44 vd sshd(pam_unix)[13090]: session opened for user ebusp by (uid=0)
+Jun  6 09:25:32 vd sshd(pam_unix)[13090]: session closed for user ebusp
+Jun  6 11:20:31 vd sshd(pam_unix)[13242]: session opened for user verhoeff by (uid=0)
+Jun  6 11:26:09 vd sshd(pam_unix)[13242]: session closed for user verhoeff
+Jun  7 04:02:08 vd syslogd 1.4.1: restart.
+Jun  8 04:02:09 vd syslogd 1.4.1: restart.
+