add changelog
[platform/upstream/gdbm.git] / tests / setopt00.at
1 # This file is part of GDBM.                                   -*- autoconf -*-
2 # Copyright (C) 2011 Free Software Foundation, Inc.
3 #
4 # GDBM is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2, or (at your option)
7 # any later version.
8 #
9 # GDBM is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with GDBM. If not, see <http://www.gnu.org/licenses/>. */
16
17 AT_SETUP([setopt])
18 AT_KEYWORDS([setopt setopt00])
19
20 AT_CHECK([
21 num2word 1:1000 | gtload test.db || exit 2
22 gtopt test.db '!MMAP'
23 ],
24 [0],
25 [GDBM_GETFLAGS: PASS
26 * CACHESIZE:
27 initial GDBM_SETCACHESIZE: PASS
28 GDBM_GETCACHESIZE: PASS
29 second GDBM_SETCACHESIZE: XFAIL
30 * SYNCMODE:
31 initial GDBM_GETSYNCMODE: PASS
32 GDBM_SETSYNCMODE: PASS
33 GDBM_GETSYNCMODE: PASS
34 GDBM_SETSYNCMODE true: PASS
35 GDBM_GETSYNCMODE: PASS
36 GDBM_SETSYNCMODE false: PASS
37 GDBM_GETSYNCMODE: PASS
38 * CENTFREE:
39 initial GDBM_GETCENTFREE: PASS
40 GDBM_SETCENTFREE: PASS
41 GDBM_GETCENTFREE: FAIL
42 GDBM_SETCENTFREE true: PASS
43 GDBM_GETCENTFREE: FAIL
44 GDBM_SETCENTFREE false: PASS
45 GDBM_GETCENTFREE: FAIL
46 * COALESCEBLKS:
47 initial GDBM_GETCOALESCEBLKS: PASS
48 GDBM_SETCOALESCEBLKS: PASS
49 GDBM_GETCOALESCEBLKS: PASS
50 GDBM_SETCOALESCEBLKS true: PASS
51 GDBM_GETCOALESCEBLKS: PASS
52 GDBM_SETCOALESCEBLKS false: PASS
53 GDBM_GETCOALESCEBLKS: PASS
54 GDBM_GETDBNAME: PASS
55 ])
56
57 AT_CLEANUP
58
59
60
61