appendfile: tidying
[users/jgh/exim.git] / test / scripts / 2300-DBM / 2300
1 # DBM files and exim_dbmbuild
2 # This tests not only the exim_dbmbuild utility, but also dbm lookups.
3
4 write test-dbm-input 1x10000=xxxxxxxx:_ 2x512=_
5 ++++
6 ****
7 dbmbuild test-dbm-input test-dbm-file
8 exim -be
9 lsearch: ${lookup{xxxxxxxx}lsearch{DIR/test-dbm-input}}
10 dbm:     ${lookup{xxxxxxxx}dbm{DIR/test-dbm-file}}
11 ****
12 write test-dbm-input 1x20000=xxxxxxxx:_ 2x512=_
13 ++++
14 ****
15 dbmbuild test-dbm-input test-dbm-file
16 write test-dbm-input 1x19999=xxxxxxxx:_ 4x19999=_ 1x50=_
17 ++++
18 ****
19 dbmbuild test-dbm-input test-dbm-file
20 write test-dbm-input
21 abc:        [abc]
22 #ignored
23 "abc:"      [abc:]
24 "#xyz:":    [#xyz:]
25 "a \"b\" c" [a "b" c]
26 ++++
27 ****
28 dbmbuild test-dbm-input test-dbm-file
29 exim -be
30 ${lookup{abc}dbm{DIR/test-dbm-file}}
31 ${lookup{abc:}dbm{DIR/test-dbm-file}}
32 ${lookup{#xyz:}dbm{DIR/test-dbm-file}}
33 ${lookup{a "b" c}dbm{DIR/test-dbm-file}}
34 ****