summaryrefslogtreecommitdiff
path: root/test/scripts/2300-DBM/2300
blob: aee60f7dec1621b1a46ef2dad0851582d045acb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# DBM files and exim_dbmbuild
# This tests not only the exim_dbmbuild utility, but also dbm lookups.

write test-dbm-input 1x10000=xxxxxxxx:_ 2x512=_
++++
****
dbmbuild test-dbm-input test-dbm-file
exim -be
lsearch: ${lookup{xxxxxxxx}lsearch{DIR/test-dbm-input}}
dbm:     ${lookup{xxxxxxxx}dbm{DIR/test-dbm-file}}
****
write test-dbm-input 1x20000=xxxxxxxx:_ 2x512=_
++++
****
dbmbuild test-dbm-input test-dbm-file
write test-dbm-input 1x19999=xxxxxxxx:_ 4x19999=_ 1x50=_
++++
****
dbmbuild test-dbm-input test-dbm-file
write test-dbm-input
abc:        [abc]
#ignored
"abc:"      [abc:]
"#xyz:":    [#xyz:]
"a \"b\" c" [a "b" c]
++++
****
dbmbuild test-dbm-input test-dbm-file
exim -be
${lookup{abc}dbm{DIR/test-dbm-file}}
${lookup{abc:}dbm{DIR/test-dbm-file}}
${lookup{#xyz:}dbm{DIR/test-dbm-file}}
${lookup{a "b" c}dbm{DIR/test-dbm-file}}
****