Fix multi-method query-style lookup quoters
[exim.git] / test / scripts / 3200-testdb / 3200
1 # testdb lookups
2 1
3 exim -be
4 match_ip:        12 ${if match_ip{10.11.12.13}{testdb;something}}
5 match_ip:        13 ${if match_ip{10.11.12.13}{testdb;fail}}
6 match_domain:    14 ${if match_domain{a.b.c.d}{testdb*;fail}}
7 bad default:     ${lookup testdb*{abcd}}
8 bad default:     ${lookup testdb*@{abcd}}
9 bad default:     ${lookup testdb*{fail}}
10 bad default:     ${lookup testdb*@{fail}}
11 ****
12 #
13 exim -be
14 set,t acl_m0 = expected_fail
15 set,t acl_m1 = barbaz
16 set,t acl_m2 = foo_2
17 set,t acl_m3 = foo_3
18 missing quoter:  ${lookup testdb {$acl_m0}}
19 proper quoter:   ${lookup testdb {${quote_testdb:$acl_m1}}}
20 missing (but cached): ${lookup testdb {$acl_m1}}
21 shared quoter:   ${lookup testdb2 {${quote_testdb:$acl_m2}}}
22 quoter notreq:   ${lookup testdb_nq {$acl_m3}}
23 ****