diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2003-01-05 16:58:59 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2003-01-05 16:58:59 +0000 |
commit | eaa293353e0edb9a5e79abee445fe11cf74172cc (patch) | |
tree | a8836edb5f072a2507f2f90b8e07fec327ebeb6b /sieve | |
parent | 4b01bc7f0ef106e2bc782a62db12c249e16c4785 (diff) | |
download | mailutils-eaa293353e0edb9a5e79abee445fe11cf74172cc.tar.gz mailutils-eaa293353e0edb9a5e79abee445fe11cf74172cc.tar.bz2 |
Added relational.exp: a testcase for relational operations in sieve
Diffstat (limited to 'sieve')
-rw-r--r-- | sieve/testsuite/sieve/DISTFILES | 1 | ||||
-rw-r--r-- | sieve/testsuite/sieve/relational.exp | 42 |
2 files changed, 43 insertions, 0 deletions
diff --git a/sieve/testsuite/sieve/DISTFILES b/sieve/testsuite/sieve/DISTFILES index 48af276df..c3d48e531 100644 --- a/sieve/testsuite/sieve/DISTFILES +++ b/sieve/testsuite/sieve/DISTFILES | |||
@@ -13,5 +13,6 @@ i-octet.exp | |||
13 | not.exp | 13 | not.exp |
14 | redirect.exp | 14 | redirect.exp |
15 | reject.exp | 15 | reject.exp |
16 | relational.exp | ||
16 | size.exp | 17 | size.exp |
17 | true.exp | 18 | true.exp |
diff --git a/sieve/testsuite/sieve/relational.exp b/sieve/testsuite/sieve/relational.exp new file mode 100644 index 000000000..740fc5506 --- /dev/null +++ b/sieve/testsuite/sieve/relational.exp | |||
@@ -0,0 +1,42 @@ | |||
1 | # -*- tcl -*- | ||
2 | # This file is part of Mailutils testsuite. | ||
3 | # Copyright (C) 2002, Free Software Foundation | ||
4 | # | ||
5 | # This program is free software; you can redistribute it and/or modify | ||
6 | # it under the terms of the GNU General Public License as published by | ||
7 | # the Free Software Foundation; either version 2 of the License, or | ||
8 | # (at your option) any later version. | ||
9 | # | ||
10 | # This program is distributed in the hope that it will be useful, | ||
11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | # GNU General Public License for more details. | ||
14 | # | ||
15 | # You should have received a copy of the GNU General Public License | ||
16 | # along with this program; if not, write to the Free Software Foundation, | ||
17 | # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
18 | |||
19 | sieve_test -f $MU_SPOOL_DIR/relational.mbox rel-address.sv -pattern \ | ||
20 | "DISCARD on msg uid 1: marking as deleted"\ | ||
21 | "IMPLICIT KEEP on msg uid 2"\ | ||
22 | "IMPLICIT KEEP on msg uid 3"\ | ||
23 | "IMPLICIT KEEP on msg uid 4"\ | ||
24 | "IMPLICIT KEEP on msg uid 5"\ | ||
25 | "IMPLICIT KEEP on msg uid 6"\ | ||
26 | "IMPLICIT KEEP on msg uid 7"\ | ||
27 | "IMPLICIT KEEP on msg uid 8"\ | ||
28 | "DISCARD on msg uid 9: marking as deleted" | ||
29 | |||
30 | sieve_test -f $MU_SPOOL_DIR/relational.mbox rel-hairy.sv -pattern \ | ||
31 | "FILEINTO on msg uid 1: delivering into From_A-M"\ | ||
32 | "FILEINTO on msg uid 2: delivering into From_N-Z"\ | ||
33 | "FILEINTO on msg uid 3: delivering into Priority"\ | ||
34 | "FILEINTO on msg uid 4: delivering into Priority"\ | ||
35 | "FILEINTO on msg uid 5: delivering into Priority"\ | ||
36 | "FILEINTO on msg uid 6: delivering into From_A-M"\ | ||
37 | "FILEINTO on msg uid 7: delivering into From_A-M"\ | ||
38 | "FILEINTO on msg uid 8: delivering into From_A-M"\ | ||
39 | "FILEINTO on msg uid 8: delivering into Only_me"\ | ||
40 | "FILEINTO on msg uid 9: delivering into SPAM" | ||
41 | |||
42 | # End of relational.exp \ No newline at end of file | ||