diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2018-05-24 07:21:46 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2018-05-24 07:21:46 +0300 |
commit | ce702a1ca5ed9240cd0a70583c4234c34ce81b73 (patch) | |
tree | d9e06d1926f57b0d6df9f8d9c127f27ef39f376c /tests | |
parent | 81897b94619b6086c1e5be8af09497ca2eeb102a (diff) | |
download | gdbm-ce702a1ca5ed9240cd0a70583c4234c34ce81b73.tar.gz gdbm-ce702a1ca5ed9240cd0a70583c4234c34ce81b73.tar.bz2 |
Add new test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/.gitignore | 2 | ||||
-rw-r--r-- | tests/Makefile.am | 1 | ||||
-rw-r--r-- | tests/gdbmtool03.at | 33 | ||||
-rw-r--r-- | tests/testsuite.at | 1 |
4 files changed, 37 insertions, 0 deletions
diff --git a/tests/.gitignore b/tests/.gitignore index 7aef06b..4db3640 100644 --- a/tests/.gitignore +++ b/tests/.gitignore | |||
@@ -26,3 +26,5 @@ testsuite | |||
26 | testsuite.dir | 26 | testsuite.dir |
27 | *.log | 27 | *.log |
28 | *.sum | 28 | *.sum |
29 | *.bak | ||
30 | site.exp | ||
diff --git a/tests/Makefile.am b/tests/Makefile.am index 409ce0b..0b1ecc6 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am | |||
@@ -75,6 +75,7 @@ TESTSUITE_AT = \ | |||
75 | gdbmtool00.at\ | 75 | gdbmtool00.at\ |
76 | gdbmtool01.at\ | 76 | gdbmtool01.at\ |
77 | gdbmtool02.at\ | 77 | gdbmtool02.at\ |
78 | gdbmtool03.at\ | ||
78 | fetch00.at\ | 79 | fetch00.at\ |
79 | fetch01.at\ | 80 | fetch01.at\ |
80 | setopt00.at\ | 81 | setopt00.at\ |
diff --git a/tests/gdbmtool03.at b/tests/gdbmtool03.at new file mode 100644 index 0000000..309bb6d --- /dev/null +++ b/tests/gdbmtool03.at | |||
@@ -0,0 +1,33 @@ | |||
1 | # This file is part of GDBM. -*- autoconf -*- | ||
2 | # Copyright (C) 2018 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([Initialization file]) | ||
18 | AT_KEYWORDS([gdbmtool]) | ||
19 | AT_CHECK([ | ||
20 | AT_DATA([.gdbmtoolrc], | ||
21 | [open t.db | ||
22 | ]) | ||
23 | gdbmtool <<EOT | ||
24 | status | ||
25 | EOT | ||
26 | ], | ||
27 | [0], | ||
28 | [Database file: t.db | ||
29 | Database is open | ||
30 | define key string | ||
31 | define content string | ||
32 | ]) | ||
33 | AT_CLEANUP | ||
diff --git a/tests/testsuite.at b/tests/testsuite.at index 176a2d6..7ce3f53 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at | |||
@@ -90,5 +90,6 @@ AT_BANNER([gdbmtool]) | |||
90 | m4_include([gdbmtool00.at]) | 90 | m4_include([gdbmtool00.at]) |
91 | m4_include([gdbmtool01.at]) | 91 | m4_include([gdbmtool01.at]) |
92 | m4_include([gdbmtool02.at]) | 92 | m4_include([gdbmtool02.at]) |
93 | m4_include([gdbmtool03.at]) | ||
93 | 94 | ||
94 | # End of testsuite.at | 95 | # End of testsuite.at |