From f90d018c03bbf7d8ac2cd50d33b47bdd7a4bcdf1 Mon Sep 17 00:00:00 2001 From: Philip Hazel Date: Wed, 1 Mar 2006 11:40:51 +0000 Subject: Add ${time_eval: expansion. --- test/scripts/0000-Basic/0002 | 6 ++++++ test/stdout/0002 | 6 ++++++ 2 files changed, 12 insertions(+) (limited to 'test') 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 -- cgit v1.2.3