summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPhilip Hazel <ph10@hermes.cam.ac.uk>2006-03-01 11:40:51 +0000
committerPhilip Hazel <ph10@hermes.cam.ac.uk>2006-03-01 11:40:51 +0000
commitf90d018c03bbf7d8ac2cd50d33b47bdd7a4bcdf1 (patch)
tree24f409c10379bc09866ab8355196561057d03af7 /test
parentd35e429daf77293be8e2861de05c0f4312003737 (diff)
Add ${time_eval: expansion.
Diffstat (limited to 'test')
-rw-r--r--test/scripts/0000-Basic/00026
-rw-r--r--test/stdout/00026
2 files changed, 12 insertions, 0 deletions
diff --git a/test/scripts/0000-Basic/0002 b/test/scripts/0000-Basic/0002
index e73b5a84b..7ff379c4f 100644
--- a/test/scripts/0000-Basic/0002
+++ b/test/scripts/0000-Basic/0002
@@ -142,6 +142,12 @@ str2b64:${str2b64:The quick brown \n fox}
strlen: ${strlen:}
strlen: ${strlen:a}
strlen: ${strlen:abcdefgh}
+time_eval: ${time_eval:10s}
+time_eval: ${time_eval:2h}
+time_eval: ${time_eval:1d5m}
+time_eval: ${time_eval:1w2d3h4m5s}
+time_eval: ${time_eval:14}
+time_eval: ${time_eval:rhubarb}
time_interval: ${time_interval:0}
time_interval: ${time_interval:44}
time_interval: ${time_interval:999999}
diff --git a/test/stdout/0002 b/test/stdout/0002
index 5cdba5219..8e3c661b3 100644
--- a/test/stdout/0002
+++ b/test/stdout/0002
@@ -123,6 +123,12 @@
> strlen: 0
> strlen: 1
> strlen: 8
+> time_eval: 10
+> time_eval: 7200
+> time_eval: 86700
+> time_eval: 788645
+> Failed: string "14" is not an Exim time interval in "time_eval" operator
+> Failed: string "rhubarb" is not an Exim time interval in "time_eval" operator
> time_interval: 0s
> time_interval: 44s
> time_interval: 1w4d13h46m39s