aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2018-05-24 17:46:07 +0300
committerSergey Poznyakoff <gray@gnu.org>2018-05-24 18:16:01 +0300
commit8d2f483b28f8418703982658b3e7dda7a96ad335 (patch)
tree731e5d6103090f835dd7602395f44fd2154c7d6b /tests
parentb001c227fdf02e3ed1e87161cbc1dec4a1184203 (diff)
downloadgdbm-8d2f483b28f8418703982658b3e7dda7a96ad335.tar.gz
gdbm-8d2f483b28f8418703982658b3e7dda7a96ad335.tar.bz2
Various fixes
* src/input-std.c: Bugfix * doc/gdbm.texi: Document changes. * README: Update. * configure.ac: New option --enable-gdbmtool-debug. * src/Makefile.am: Conditionally augment AM_YFLAGS and AM_LFLAGS with options that enable debugging. * src/gdbmtool.c: Conditionally enable --lex-trace and --gram-trace options. * src/gram.y: Likewise. * src/lex.l: Likewise. * tests/Makefile.am: Remove architecure-dependent tests. * tests/testsuite.at: Likewise.
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am5
-rw-r--r--tests/dump01.at38
-rw-r--r--tests/dump02.at35
-rw-r--r--tests/dump03.at38
-rw-r--r--tests/dump04.at34
-rw-r--r--tests/testsuite.at11
6 files changed, 0 insertions, 161 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index feead9f..827af58 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -65,7 +65,2 @@ TESTSUITE_AT = \
dbmfetch03.at\
- dump00.at\
- dump01.at\
- dump02.at\
- dump03.at\
- dump04.at\
create00.at\
diff --git a/tests/dump01.at b/tests/dump01.at
deleted file mode 100644
index dae4f25..0000000
--- a/tests/dump01.at
+++ /dev/null
@@ -1,38 +0,0 @@
-# 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([Invalid bucket size in header])
-AT_KEYWORDS([dump])
-AT_CHECK([
-AT_UNPACK([t.db],dnl
-[H4sICC3M/1oAA2lkOjAwMDAwMCxzaWc6MTEsc3JjOjAwMDAwMCxvcDpoYXZvYyxyZXA6MTI4AO1a
-XUrDQBjctUXbgrVYsEVbLdRXwSPkwRMI4gUEvUVzC8EHD+BlvIBo+6AWERSfCtV8bmtj/nbTJPub
-tgM67OTbmbGJEBfvb87rqIZQg3xNQbg84YEPZPmNcoK21nSsIuTAvygGr32ApFBLrN2OWLuUcE60
-xpuFMw+eSB7kpr5KFOj9vV5hybCRekdx/ggdP4HVkYeshorxkmUTDDgStzn2hmEL9FKOPY3Zd6l3
-DAsSauQUAPAkx/ld1htgjlDSXWCCKtfu2vwRP2yKpuSPkRXC6P9Bdw3UWRaGnhk9XN4ypEfeeJxk
-Dh6l5b8Bp48DgfWVkF4W536DuKwqr6IoZxGZLusstSnXn7yK93V/6HJ43ZAeGbhrSI9GynnthReC
-Xw3psWIhDNAD1vVDXn8svq8ONqCCOLbU5/JsnhxMKi3L5AuEEs1FGLv73HOjYyQV5KWJcs7YjOg4
-dp6qg5NunluPn7ml67NDh4CO/31wZD6KNaTiZ6ScIyr4bJ0MPpGmsfOXQa2WradAfZfbh42EPiPI
-lJtAP6XpNjDn2frAW+i9X6bp5NuIorfU9CkMEdqX6G+w3nZ1S2luK6L71p0QC84vRfVq3HxQDz+S
-ht3PWL1sWJ8kepOhcxiPWQ9eSh9bUJ/86Cqy+jHzn1JymdPXyVxsEW0wQ0/m43xlzV0QvSvKfzug
-133D0wvh8YqoXIIHQT6zf08y5fY8zzr+Ao/nJqluLwAA])
-gdbm_dump t.db t
-],
-[1],
-[],
-[gdbm_dump: gdbm_open failed: Malformed database file header
-])
-AT_CLEANUP
diff --git a/tests/dump02.at b/tests/dump02.at
deleted file mode 100644
index da0b62b..0000000
--- a/tests/dump02.at
+++ /dev/null
@@ -1,35 +0,0 @@
-# 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([Invalid count of bucket elements in header])
-AT_KEYWORDS([dump])
-AT_CHECK([
-AT_UNPACK([t.db],dnl
-[H4sICC3M/1oAA2lkOjAwMDAwMSxzaWc6MTEsc3JjOjAwMDAwMCxvcDpoYXZvYyxyZXA6NjQA7ZpB
-asJQEIaf0gjVIpYWBEF4R+i6q9yix9FzuOqq6x6gd+gZ3LlxIQgSkb6mJopKXpNMZjITMj/qT/4X
-Zz6S8KJJvhdvT2ZkzPFtEr9P/SOKPUziQzo8d6bdCpwLLhZdrPJFemg4KtWV7rgBmqZJ7R1noDmD
-WVtugDZo4B2hPmPsjy9VntZ0pWE/JWjV5QZoswRs/PpPjqrGaff/xBWPLmtjUZHINsRfhHCoM3uf
-rP5nkfW6OePqMH/n59g43v5ZboVwVHJbcD31s78K4VAHeqKpEBqb3u3h58D1S52usvAxjZn6UvhI
-CEfikSPvQ1wefGhzc6jT+DNP3066eH4s4PTHmki+a9/Y+RdT39bkfx9WEM8ctX50O1ikjvPkCDzX
-egDuL3QQzTWvlq9+8Oo/drLznDo9T16Zx3uvJOc7IVVvzWXmEhjk5kNhPOS58+Tl6hR8fhWSZw0A
-jvkgK2TZ/qGI/a45Sn5An5Or8YDy2e1gWf5fmUPXK/AvAAA=])
-gdbm_dump t.db t
-],
-[1],
-[],
-[gdbm_dump: gdbm_open failed: Malformed database file header
-])
-AT_CLEANUP \ No newline at end of file
diff --git a/tests/dump03.at b/tests/dump03.at
deleted file mode 100644
index a084246..0000000
--- a/tests/dump03.at
+++ /dev/null
@@ -1,38 +0,0 @@
-# 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([Negative bucket offset])
-AT_KEYWORDS([dump])
-AT_CHECK([
-AT_UNPACK([t.db],dnl
-[H4sICFRAAFsAA2lkOjAwMDAwMCxzaWc6MTEsc3JjOjAwMDA4NyswMDAwODYsb3A6c3BsaWNlLHJl
-cDoxNgDtlztOw0AQhtfCQkkIyEkaaJAxF6CkTM0FuAYFvVNzBEoKrkNNhZAAgQQRdCgF5uFH7M2u
-vbO79gzRjhT9mm9nZ35Hft5cnk5YwNjfj6Xaz/Sa2Yl3k837IhjmelLJQ35ZoHsiHgub1+oBH1xB
-qNqoK42I+KjqyEIfi5YYS36CCSKlYRXaGpvrsZ0+Q5P9AaCeTwYiDtOZ0cED92ybzNLT+47n2VDp
-JVFwhT47OvN5I6/QBo36kR6EdP1QuZdsWcebr7mvUM9wP0X1WVP4qP6gGijWqWuvVb+m2vXYSTt9
-j6D7gmrONp5b8YWiIyI+gOpJ13e7uAwstlqG4M3V1pz11POmurtfTWJsn6saS/iwnM9r+ySysGnU
-y9LiUZffO5Vj0FxSCvnHG20epbL4gvVJMP2PkeaKORkjjjvuOHVed0el5NNxx+t4aKY9w/0I6lHw
-IcZn2Lb+j14JIl16KtfeYnlcSPgFgf/OqVN99bJU/5O8Pra4XO1JNgXWt8qnEo7lxxp/I+ZneRJS
-8bN0RcmP445T44GEd+NnLOFYfhynyB8SWL0m3wTVh5za96PJP0H1ksCy/4h7ukUmfWbd+Vx3/pLA
-6tvlU6S5KLyvVL9aMG/bmOMi/g1YZ0xx+S8AAA==
-])
-gdbm_dump t.db t
-],
-[1],
-[],
-[gdbm_dump: dump error: Malformed bucket header
-])
-AT_CLEANUP \ No newline at end of file
diff --git a/tests/dump04.at b/tests/dump04.at
deleted file mode 100644
index a37ea03..0000000
--- a/tests/dump04.at
+++ /dev/null
@@ -1,34 +0,0 @@
-# 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([Wrong dir_bits in header])
-AT_KEYWORDS([dump])
-AT_CHECK([
-AT_UNPACK([t.db],dnl
-[H4sICIxAAFsAA2lkOjAwMDAwMSxzaWc6MTEsc3JjOjAwMDA3OCswMDAwODgsb3A6c3BsaWNlLHJl
-cDoyAO2ZUQqCQBRFxyiCfoqEoD/bQUuINtECaiGtowW0gDbSFvpvAQVKpSmFMW8yZ/K9qXtADl6f
-etEPhdlvFqEaKHXfVO5x4W3mWR4nylN2KfojQbNFGiHmLuAlvVzXFN4iT5YvUHOxsfGKyI9W3VTH
-7vSClpOrUKTv8lR1UPsM9WnbohIAoCa/+LUGAACQcRHz8/1PRHAdC6nhjdkLwDAMwzBs9lBIDxiG
-YQ89EdLjnYNi97H+P1X2HOhD9Gpbo/nIMH/OosrXjwh3XdYt53MTrm6C3Lt8zXBf3Ro793NAjlxO
-HlaYZ6qGHPm38r6wPsiZ8tKIgD5O84iwtJ7IkX+S3wAsqaqZFzAAAA==
-])
-gdbm_dump t.db t
-],
-[1],
-[],
-[gdbm_dump: gdbm_open failed: Malformed database file header
-])
-AT_CLEANUP \ No newline at end of file
diff --git a/tests/testsuite.at b/tests/testsuite.at
index 7ce3f53..b7b1e4e 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -29,6 +29,2 @@ test $COMPAT -eq 1 || AT_SKIP_TEST
-m4_define([AT_UNPACK],[
-test -n "$GZIP_BIN" && test -n "$BASE64_BIN" || AT_SKIP_TEST
-echo "$2" | $BASE64_BIN -d | $GZIP_BIN -d -c > $1])
-
dnl # Begin tests
@@ -81,9 +77,2 @@ m4_include([cloexec03.at])
-AT_BANNER([Handling invalid input])
-m4_include([dump00.at])
-m4_include([dump01.at])
-m4_include([dump02.at])
-m4_include([dump03.at])
-m4_include([dump04.at])
-
AT_BANNER([gdbmtool])

Return to:

Send suggestions and report system problems to the System administrator.