Rombobjörn

summaryrefslogtreecommitdiff
path: root/test/test_milter.adb
diff options
context:
space:
mode:
authorBjörn Persson <bjorn@rombobjörn.se>2013-01-21 13:10:21 +0100
committerBjörn Persson <bjorn@rombobjörn.se>2013-01-21 13:10:21 +0100
commitb098f5dc6a447df808ed755a1d6123f9ce7896dc (patch)
tree4080b60521a1ba5232083e523b6a86857e26ee00 /test/test_milter.adb
parent638f5166cce43f0d9421a72e3669b13fa0b47567 (diff)
Added an outline of a test milter.
Diffstat (limited to 'test/test_milter.adb')
-rw-r--r--test/test_milter.adb22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/test_milter.adb b/test/test_milter.adb
new file mode 100644
index 0000000..2cf2ed1
--- /dev/null
+++ b/test/test_milter.adb
@@ -0,0 +1,22 @@
+-- The Ada Milter API test milter
+-- Copyright 2012 - 2013 B. Persson, Bjorn@Rombobeorn.se
+--
+-- This program is free software: you can redistribute it and/or modify it
+-- under the terms of the GNU General Public License version 3, as published
+-- by the Free Software Foundation.
+
+
+with Test_Milter_Package;
+with Thread_Wrapping;
+with Ada.Command_Line;
+with System_Log; use System_Log;
+
+pragma Interrupt_State (Name => SIGSEGV, State => SYSTEM);
+
+procedure Test_Milter is
+begin
+ Open_Log("test_milter", Mail, Include_PID => True);
+ Set_Log_Threshold(Debug);
+ Ada.Command_Line.Set_Exit_Status(Test_Milter_Package.Run);
+ Log(Info, "Terminating.");
+end Test_Milter;