summaryrefslogtreecommitdiff
path: root/test/scripts/5200-queryprogram
diff options
context:
space:
mode:
authorPhilip Hazel <ph10@hermes.cam.ac.uk>2006-02-07 10:54:33 +0000
committerPhilip Hazel <ph10@hermes.cam.ac.uk>2006-02-07 10:54:33 +0000
commit59371ea735c941334861aa5b8e1e9a06facf044f (patch)
tree79168561a70a94a3994fbe362b904ff9aab86136 /test/scripts/5200-queryprogram
parent54c5ebb14ead7439af300e9d7d9d7d2ba29ff32e (diff)
Hopefully the final lot of test files.
Diffstat (limited to 'test/scripts/5200-queryprogram')
-rw-r--r--test/scripts/5200-queryprogram/52004
-rw-r--r--test/scripts/5200-queryprogram/520116
-rw-r--r--test/scripts/5200-queryprogram/52029
-rw-r--r--test/scripts/5200-queryprogram/52035
-rw-r--r--test/scripts/5200-queryprogram/520428
-rw-r--r--test/scripts/5200-queryprogram/52054
-rw-r--r--test/scripts/5200-queryprogram/52064
-rw-r--r--test/scripts/5200-queryprogram/52074
-rw-r--r--test/scripts/5200-queryprogram/52083
-rw-r--r--test/scripts/5200-queryprogram/52094
-rw-r--r--test/scripts/5200-queryprogram/REQUIRES1
11 files changed, 82 insertions, 0 deletions
diff --git a/test/scripts/5200-queryprogram/5200 b/test/scripts/5200-queryprogram/5200
new file mode 100644
index 000000000..457bb958a
--- /dev/null
+++ b/test/scripts/5200-queryprogram/5200
@@ -0,0 +1,4 @@
+# top-level freezing mechanisms
+exim -odi userx@test.ex
+Text.
+****
diff --git a/test/scripts/5200-queryprogram/5201 b/test/scripts/5200-queryprogram/5201
new file mode 100644
index 000000000..c46b2a775
--- /dev/null
+++ b/test/scripts/5200-queryprogram/5201
@@ -0,0 +1,16 @@
+# freeze, move_frozen_messages
+need_move_frozen_messages
+exim -odq userx
+****
+sudo exim -Mf $msg1
+****
+exim -q
+****
+exim -odi freeze
+****
+exim -odi anything
+****
+exim -odi notfrozen
+Test
+****
+no_message_check
diff --git a/test/scripts/5200-queryprogram/5202 b/test/scripts/5200-queryprogram/5202
new file mode 100644
index 000000000..b171f3b95
--- /dev/null
+++ b/test/scripts/5200-queryprogram/5202
@@ -0,0 +1,9 @@
+# freeze, move_frozen_messages, split spool
+need_move_frozen_messages
+exim -odi freeze
+****
+exim -odi anything
+****
+# Attempt to remove the subdirectories; this will fail if they still
+# have anything in them, and so provoke an error.
+sudo rmdir spool/input/* spool/msglog/*
diff --git a/test/scripts/5200-queryprogram/5203 b/test/scripts/5200-queryprogram/5203
new file mode 100644
index 000000000..4441fc40b
--- /dev/null
+++ b/test/scripts/5200-queryprogram/5203
@@ -0,0 +1,5 @@
+# open file descriptor test
+exim -odi userx@remote.domain
+Test message
+.
+****
diff --git a/test/scripts/5200-queryprogram/5204 b/test/scripts/5200-queryprogram/5204
new file mode 100644
index 000000000..593ce82eb
--- /dev/null
+++ b/test/scripts/5200-queryprogram/5204
@@ -0,0 +1,28 @@
+# queryprogram
+1
+exim -bt '"ACCEPT hosts=localhost lookup=byname"@some.host'
+****
+2
+exim -d-all+route -bt '"DECLINE cannot route this one (DECLINE)"@some.host'
+****
+2
+exim -d-all+route -bt '"FAIL cannot route this one (FAIL)"@some.host'
+****
+1
+exim -d-all+route -bt '"ERROR cannot route this one (ERROR)"@some.host'
+****
+1
+exim -d-all+route -bt '"DEFER cannot route this one (DEFER)"@some.host'
+****
+exim -d-all+route -bt '"ACCEPT transport = other_smtp hosts=ten-1.test.ex"@some.host'
+****
+exim -d-all+route -bt PASS@some.host
+****
+1
+exim -d-all+route -bt '"FREEZE cannot route this one (FREEZE)"@some.host'
+****
+exim -d-all+route -bt '"REDIRECT postmaster@test.ex"@some.host'
+****
+exim -odi '"FAIL cannot route this one (FAIL)"@some.host'
+Test message
+****
diff --git a/test/scripts/5200-queryprogram/5205 b/test/scripts/5200-queryprogram/5205
new file mode 100644
index 000000000..d014baff5
--- /dev/null
+++ b/test/scripts/5200-queryprogram/5205
@@ -0,0 +1,4 @@
+# ignore_target_hosts (byname)
+1
+exim -bt userx@ten-3.test.ex
+****
diff --git a/test/scripts/5200-queryprogram/5206 b/test/scripts/5200-queryprogram/5206
new file mode 100644
index 000000000..75d2110ed
--- /dev/null
+++ b/test/scripts/5200-queryprogram/5206
@@ -0,0 +1,4 @@
+# ignore_target_hosts (bydns)
+1
+exim -bt userx@ten-3.test.ex
+****
diff --git a/test/scripts/5200-queryprogram/5207 b/test/scripts/5200-queryprogram/5207
new file mode 100644
index 000000000..a0b6dffa0
--- /dev/null
+++ b/test/scripts/5200-queryprogram/5207
@@ -0,0 +1,4 @@
+# check address_data is preserved
+exim -odi userx@r6 userx@r7
+****
+no_msglog_check
diff --git a/test/scripts/5200-queryprogram/5208 b/test/scripts/5200-queryprogram/5208
new file mode 100644
index 000000000..892ec29dd
--- /dev/null
+++ b/test/scripts/5200-queryprogram/5208
@@ -0,0 +1,3 @@
+# /MX in a list of hosts
+exim -DLIST=mxt8.test.ex/MX -bt x@query.program
+****
diff --git a/test/scripts/5200-queryprogram/5209 b/test/scripts/5200-queryprogram/5209
new file mode 100644
index 000000000..136e413f8
--- /dev/null
+++ b/test/scripts/5200-queryprogram/5209
@@ -0,0 +1,4 @@
+# queryprogram and long return lines
+2
+exim -bt x@y
+****
diff --git a/test/scripts/5200-queryprogram/REQUIRES b/test/scripts/5200-queryprogram/REQUIRES
new file mode 100644
index 000000000..ecc95ade0
--- /dev/null
+++ b/test/scripts/5200-queryprogram/REQUIRES
@@ -0,0 +1 @@
+router queryprogram