summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org>2018-05-24 04:21:46 (GMT)
committer Sergey Poznyakoff <gray@gnu.org>2018-05-24 04:21:46 (GMT)
commitce702a1ca5ed9240cd0a70583c4234c34ce81b73 (patch) (side-by-side diff)
treed9e06d1926f57b0d6df9f8d9c127f27ef39f376c
parent81897b94619b6086c1e5be8af09497ca2eeb102a (diff)
downloadgdbm-ce702a1ca5ed9240cd0a70583c4234c34ce81b73.tar.gz
gdbm-ce702a1ca5ed9240cd0a70583c4234c34ce81b73.tar.bz2
Add new test
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--.gitignore1
-rw-r--r--tests/.gitignore2
-rw-r--r--tests/Makefile.am1
-rw-r--r--tests/gdbmtool03.at33
-rw-r--r--tests/testsuite.at1
5 files changed, 38 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 8143e8f..ffc6ef1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -35,3 +35,4 @@ libltdl
libtool
m4
stamp-h1
+tmp/
diff --git a/tests/.gitignore b/tests/.gitignore
index 7aef06b..4db3640 100644
--- a/tests/.gitignore
+++ b/tests/.gitignore
@@ -26,3 +26,5 @@ testsuite
testsuite.dir
*.log
*.sum
+*.bak
+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 = \
gdbmtool00.at\
gdbmtool01.at\
gdbmtool02.at\
+ gdbmtool03.at\
fetch00.at\
fetch01.at\
setopt00.at\
diff --git a/tests/gdbmtool03.at b/tests/gdbmtool03.at
new file mode 100644
index 0000000..309bb6d
--- a/dev/null
+++ b/tests/gdbmtool03.at
@@ -0,0 +1,33 @@
+# This file is part of GDBM. -*- autoconf -*-
+# Copyright (C) 2018 Free Software Foundation, Inc.
+#
+# GDBM is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GDBM is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GDBM. If not, see <http://www.gnu.org/licenses/>. */
+
+AT_SETUP([Initialization file])
+AT_KEYWORDS([gdbmtool])
+AT_CHECK([
+AT_DATA([.gdbmtoolrc],
+[open t.db
+])
+gdbmtool <<EOT
+status
+EOT
+],
+[0],
+[Database file: t.db
+Database is open
+define key string
+define content string
+])
+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])
m4_include([gdbmtool00.at])
m4_include([gdbmtool01.at])
m4_include([gdbmtool02.at])
+m4_include([gdbmtool03.at])
# End of testsuite.at

Return to:

Send suggestions and report system problems to the System administrator.