diff options
Diffstat (limited to 'tests')
63 files changed, 1577 insertions, 95 deletions
diff --git a/tests/.gitignore b/tests/.gitignore index 4db3640..729988a 100644 --- a/tests/.gitignore +++ b/tests/.gitignore @@ -5,6 +5,7 @@ Makefile Makefile.in atconfig atlocal +closerr d_creat_ce dtdel dtdump @@ -13,6 +14,8 @@ dtload fdop g_open_ce g_reorg_ce +gtcacheopt +gtconv gtdel gtdump gtfetch @@ -28,3 +31,5 @@ testsuite.dir *.sum *.bak site.exp +t_dumpload +t_wordwrap diff --git a/tests/Makefile.am b/tests/Makefile.am index a116172..4ad22e1 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,5 +1,5 @@ # This file is part of GDBM. -*- autoconf -*- -# Copyright (C) 2011, 2017-2019 Free Software Foundation, Inc. +# Copyright (C) 2011-2023 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 @@ -55,6 +55,7 @@ TESTSUITE_AT = \ cloexec02.at\ cloexec03.at\ closerr.at\ + conv.at\ dbmcreate00.at\ dbmdel00.at\ dbmdel01.at\ @@ -64,6 +65,7 @@ TESTSUITE_AT = \ dbmfetch01.at\ dbmfetch02.at\ dbmfetch03.at\ + dumpload.at\ create00.at\ delete00.at\ delete01.at\ @@ -76,7 +78,9 @@ TESTSUITE_AT = \ fetch01.at\ setopt00.at\ setopt01.at\ - version.at + setopt02.at\ + version.at\ + wordwrap.at TESTSUITE = $(srcdir)/testsuite M4=m4 @@ -113,6 +117,8 @@ check_PROGRAMS = \ fdop\ g_open_ce\ g_reorg_ce\ + gtcacheopt\ + gtconv\ gtdel\ gtdump\ gtfetch\ @@ -121,9 +127,11 @@ check_PROGRAMS = \ gtrecover\ gtver\ num2word\ + t_dumpload\ + t_wordwrap\ $(DBMPROGS) -AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_builddir)/src $(DBMINCLUDES) +AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_builddir)/src -I$(top_srcdir)/tools $(DBMINCLUDES) noinst_HEADERS=progname.h @@ -134,38 +142,6 @@ dtdump_LDADD = ../src/libgdbm.la ../compat/libgdbm_compat.la dtfetch_LDADD = ../src/libgdbm.la ../compat/libgdbm_compat.la dtdel_LDADD = ../src/libgdbm.la ../compat/libgdbm_compat.la d_creat_ce_LDADD = ../src/libgdbm.la ../compat/libgdbm_compat.la +t_wordwrap_LDADD = ../tools/libgdbmapp.a -## -------------------- ## -## DejaGNU Test suite. ## -## -------------------- ## -AUTOMAKE_OPTIONS = dejagnu -DEJATOOL = gdbmtool -RUNTESTFLAGS = -CLEANFILES = *.log - -site.exp: Makefile - @echo 'Making a new site.exp file...' - @test ! -f site.bak || rm -f site.bak - @echo '## these variables are automatically generated by make ##' > $@-t - @echo '# Do not edit here. If you wish to override these values' >> $@-t - @echo '# edit the last section' >> $@-t - @echo 'set tool $(DEJATOOL)' >> $@-t - @echo "set top_srcdir `cd $(top_srcdir); pwd`" >> $@-t - @echo "set top_builddir `cd $(top_builddir); pwd`" >> $@-t - @echo "set srcdir `cd $(srcdir); pwd`" >> $@-t - @echo 'set objdir' `pwd` >> $@-t - @echo 'set host_alias "$(host_alias)"' >> $@-t - @echo 'set host_triplet $(host_triplet)' >> $@-t - @echo 'set target_alias "$(target_alias)"' >> $@-t - @echo 'set target_triplet $(target_triplet)' >> $@-t - @echo 'set build_alias "$(build_alias)"' >> $@-t - @echo 'set build_triplet $(build_triplet)' >> $@-t - @echo '## All variables above are generated by configure. Do Not Edit ##' >> $@-t - @test ! -f site.exp || sed '1,/^## All variables above are.*##/ d' site.exp >> $@-t - @test ! -f site.exp || mv site.exp site.bak - @mv $@-t site.exp - -EXTRA_DIST += \ - gdbmtool/base.exp\ - config/default.exp - +SUBDIRS = gdbmtool diff --git a/tests/atlocal.in b/tests/atlocal.in index 29017bb..f1f8719 100644 --- a/tests/atlocal.in +++ b/tests/atlocal.in @@ -1,5 +1,5 @@ # @configure_input@ -*- shell-script -*- -# Copyright (C) 2011, 2017-2019 Free Software Foundation, Inc. +# Copyright (C) 2011-2023 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 @@ -14,7 +14,7 @@ # You should have received a copy of the GNU General Public License # along with GDBM. If not, see <http://www.gnu.org/licenses/>. */ -PATH=@abs_top_builddir@/src:$PATH +PATH=@abs_top_builddir@/tools:$PATH @COMPAT_OPT_TRUE@COMPAT=1 @COMPAT_OPT_FALSE@COMPAT=0 diff --git a/tests/blocksize00.at b/tests/blocksize00.at index ff8c973..fb6e1ec 100644 --- a/tests/blocksize00.at +++ b/tests/blocksize00.at @@ -1,5 +1,5 @@ # This file is part of GDBM test suite. -# Copyright (C) 2016-2019 Free Software Foundation, Inc. +# Copyright (C) 2016-2023 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 diff --git a/tests/blocksize01.at b/tests/blocksize01.at index e855922..ba86d97 100644 --- a/tests/blocksize01.at +++ b/tests/blocksize01.at @@ -1,5 +1,5 @@ # This file is part of GDBM test suite. -# Copyright (C) 2016-2019 Free Software Foundation, Inc. +# Copyright (C) 2016-2023 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 diff --git a/tests/blocksize02.at b/tests/blocksize02.at index 01a0c43..a4beb39 100644 --- a/tests/blocksize02.at +++ b/tests/blocksize02.at @@ -1,5 +1,5 @@ # This file is part of GDBM test suite. -# Copyright (C) 2016-2019 Free Software Foundation, Inc. +# Copyright (C) 2016-2023 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 diff --git a/tests/cloexec00.at b/tests/cloexec00.at index 5157ec8..cb9eb6d 100644 --- a/tests/cloexec00.at +++ b/tests/cloexec00.at @@ -1,5 +1,5 @@ # This file is part of GDBM. -*- autoconf -*- -# Copyright (C) 2011, 2017-2019 Free Software Foundation, Inc. +# Copyright (C) 2011-2023 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 diff --git a/tests/cloexec01.at b/tests/cloexec01.at index cf3d2b7..79ee1bb 100644 --- a/tests/cloexec01.at +++ b/tests/cloexec01.at @@ -1,5 +1,5 @@ # This file is part of GDBM. -*- autoconf -*- -# Copyright (C) 2011, 2017-2019 Free Software Foundation, Inc. +# Copyright (C) 2011-2023 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 diff --git a/tests/cloexec02.at b/tests/cloexec02.at index 4381d73..8860fd0 100644 --- a/tests/cloexec02.at +++ b/tests/cloexec02.at @@ -1,5 +1,5 @@ # This file is part of GDBM. -*- autoconf -*- -# Copyright (C) 2011, 2017-2019 Free Software Foundation, Inc. +# Copyright (C) 2011-2023 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 diff --git a/tests/cloexec03.at b/tests/cloexec03.at index adeabaa..2b94fbc 100644 --- a/tests/cloexec03.at +++ b/tests/cloexec03.at @@ -1,5 +1,5 @@ # This file is part of GDBM. -*- autoconf -*- -# Copyright (C) 2011, 2017-2019 Free Software Foundation, Inc. +# Copyright (C) 2011-2023 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 diff --git a/tests/closerr.c b/tests/closerr.c index b86d74f..858ea66 100644 --- a/tests/closerr.c +++ b/tests/closerr.c @@ -1,5 +1,5 @@ /* This file is part of GDBM test suite. - Copyright (C) 2018-2019 Free Software Foundation, Inc. + Copyright (C) 2018-2023 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 diff --git a/tests/conv.at b/tests/conv.at new file mode 100644 index 0000000..690e857 --- /dev/null +++ b/tests/conv.at @@ -0,0 +1,21 @@ +# This file is part of GDBM. -*- autoconf -*- +# Copyright (C) 2018-2023 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([Database format conversion]) +AT_KEYWORDS([conv]) +AT_CHECK([gtconv]) +AT_CLEANUP + diff --git a/tests/create00.at b/tests/create00.at index 69ee0f6..c0ae7ca 100644 --- a/tests/create00.at +++ b/tests/create00.at @@ -1,5 +1,5 @@ # This file is part of GDBM. -*- autoconf -*- -# Copyright (C) 2011, 2017-2019 Free Software Foundation, Inc. +# Copyright (C) 2011-2023 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 diff --git a/tests/d_creat_ce.c b/tests/d_creat_ce.c index b20b3c2..942de31 100644 --- a/tests/d_creat_ce.c +++ b/tests/d_creat_ce.c @@ -1,5 +1,5 @@ /* This file is part of GDBM test suite. - Copyright (C) 2011, 2017-2019 Free Software Foundation, Inc. + Copyright (C) 2011-2023 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 diff --git a/tests/dbmcreate00.at b/tests/dbmcreate00.at index c9c9d5a..a79a4c2 100644 --- a/tests/dbmcreate00.at +++ b/tests/dbmcreate00.at @@ -1,5 +1,5 @@ # This file is part of GDBM. -*- autoconf -*- -# Copyright (C) 2011, 2017-2019 Free Software Foundation, Inc. +# Copyright (C) 2011-2023 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 diff --git a/tests/dbmcvt.at b/tests/dbmcvt.at index 500d836..0737358 100644 --- a/tests/dbmcvt.at +++ b/tests/dbmcvt.at @@ -1,5 +1,5 @@ # This file is part of GDBM. -*- autoconf -*- -# Copyright (C) 2011, 2017-2019 Free Software Foundation, Inc. +# Copyright (C) 2011-2023 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 diff --git a/tests/dbmdel00.at b/tests/dbmdel00.at index e803008..17ff4d5 100644 --- a/tests/dbmdel00.at +++ b/tests/dbmdel00.at @@ -1,5 +1,5 @@ # This file is part of GDBM. -*- autoconf -*- -# Copyright (C) 2011, 2017-2019 Free Software Foundation, Inc. +# Copyright (C) 2011-2023 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 diff --git a/tests/dbmdel01.at b/tests/dbmdel01.at index 21c33b3..0324680 100644 --- a/tests/dbmdel01.at +++ b/tests/dbmdel01.at @@ -1,5 +1,5 @@ # This file is part of GDBM. -*- autoconf -*- -# Copyright (C) 2011, 2017-2019 Free Software Foundation, Inc. +# Copyright (C) 2011-2023 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 diff --git a/tests/dbmdel02.at b/tests/dbmdel02.at index ae70ba3..dae1742 100644 --- a/tests/dbmdel02.at +++ b/tests/dbmdel02.at @@ -1,5 +1,5 @@ # This file is part of GDBM. -*- autoconf -*- -# Copyright (C) 2011, 2017-2019 Free Software Foundation, Inc. +# Copyright (C) 2011-2023 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 diff --git a/tests/dbmfetch00.at b/tests/dbmfetch00.at index d964e5c..4a0df16 100644 --- a/tests/dbmfetch00.at +++ b/tests/dbmfetch00.at @@ -1,5 +1,5 @@ # This file is part of GDBM. -*- autoconf -*- -# Copyright (C) 2011, 2017-2019 Free Software Foundation, Inc. +# Copyright (C) 2011-2023 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 diff --git a/tests/dbmfetch01.at b/tests/dbmfetch01.at index 9be5d54..34e1ac1 100644 --- a/tests/dbmfetch01.at +++ b/tests/dbmfetch01.at @@ -1,5 +1,5 @@ # This file is part of GDBM. -*- autoconf -*- -# Copyright (C) 2011, 2017-2019 Free Software Foundation, Inc. +# Copyright (C) 2011-2023 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 diff --git a/tests/dbmfetch02.at b/tests/dbmfetch02.at index 75419a2..533bd18 100644 --- a/tests/dbmfetch02.at +++ b/tests/dbmfetch02.at @@ -1,5 +1,5 @@ # This file is part of GDBM. -*- autoconf -*- -# Copyright (C) 2011, 2017-2019 Free Software Foundation, Inc. +# Copyright (C) 2011-2023 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 diff --git a/tests/dbmfetch03.at b/tests/dbmfetch03.at index 3e00438..1333b92 100644 --- a/tests/dbmfetch03.at +++ b/tests/dbmfetch03.at @@ -1,5 +1,5 @@ # This file is part of GDBM. -*- autoconf -*- -# Copyright (C) 2011, 2017-2019 Free Software Foundation, Inc. +# Copyright (C) 2011-2023 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 diff --git a/tests/delete00.at b/tests/delete00.at index c3702e3..d013fcf 100644 --- a/tests/delete00.at +++ b/tests/delete00.at @@ -1,5 +1,5 @@ # This file is part of GDBM. -*- autoconf -*- -# Copyright (C) 2011, 2017-2019 Free Software Foundation, Inc. +# Copyright (C) 2011-2023 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 diff --git a/tests/delete01.at b/tests/delete01.at index c3b48b8..fee95ae 100644 --- a/tests/delete01.at +++ b/tests/delete01.at @@ -1,5 +1,5 @@ # This file is part of GDBM. -*- autoconf -*- -# Copyright (C) 2011, 2017-2019 Free Software Foundation, Inc. +# Copyright (C) 2011-2023 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 diff --git a/tests/delete02.at b/tests/delete02.at index 1a3e4dd..07a1dbc 100644 --- a/tests/delete02.at +++ b/tests/delete02.at @@ -1,5 +1,5 @@ # This file is part of GDBM. -*- autoconf -*- -# Copyright (C) 2011, 2017-2019 Free Software Foundation, Inc. +# Copyright (C) 2011-2023 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 diff --git a/tests/dtdel.c b/tests/dtdel.c index 64e04a0..e067993 100644 --- a/tests/dtdel.c +++ b/tests/dtdel.c @@ -1,5 +1,5 @@ /* This file is part of GDBM test suite. - Copyright (C) 2011, 2017-2019 Free Software Foundation, Inc. + Copyright (C) 2011-2023 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 diff --git a/tests/dtdump.c b/tests/dtdump.c index 1daf277..cab617b 100644 --- a/tests/dtdump.c +++ b/tests/dtdump.c @@ -1,5 +1,5 @@ /* This file is part of GDBM test suite. - Copyright (C) 2011, 2017-2019 Free Software Foundation, Inc. + Copyright (C) 2011-2023 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 diff --git a/tests/dtfetch.c b/tests/dtfetch.c index f6eb336..2840f9d 100644 --- a/tests/dtfetch.c +++ b/tests/dtfetch.c @@ -1,5 +1,5 @@ /* This file is part of GDBM test suite. - Copyright (C) 2011, 2017-2019 Free Software Foundation, Inc. + Copyright (C) 2011-2023 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 diff --git a/tests/dtload.c b/tests/dtload.c index 19d9174..486efb3 100644 --- a/tests/dtload.c +++ b/tests/dtload.c @@ -1,5 +1,5 @@ /* This file is part of GDBM test suite. - Copyright (C) 2011, 2017-2019 Free Software Foundation, Inc. + Copyright (C) 2011-2023 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 diff --git a/tests/dump00.at b/tests/dump00.at index 331f92d..e30e3ba 100644 --- a/tests/dump00.at +++ b/tests/dump00.at @@ -1,5 +1,5 @@ # This file is part of GDBM. -*- autoconf -*- -# Copyright (C) 2018-2019 Free Software Foundation, Inc. +# Copyright (C) 2018-2023 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 diff --git a/tests/dumpload.at b/tests/dumpload.at new file mode 100644 index 0000000..7e39079 --- /dev/null +++ b/tests/dumpload.at @@ -0,0 +1,5 @@ +# This file is part of GDBM testsuite. -*- autoconf -*- +AT_SETUP([dump/load]) +AT_KEYWORDS([dump load import export]) +AT_CHECK(t_dumpload) +AT_CLEANUP diff --git a/tests/fdop.c b/tests/fdop.c index e86435e..4d0db71 100644 --- a/tests/fdop.c +++ b/tests/fdop.c @@ -1,5 +1,5 @@ /* This file is part of GDBM test suite. - Copyright (C) 2011, 2017-2019 Free Software Foundation, Inc. + Copyright (C) 2011-2023 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 diff --git a/tests/fetch00.at b/tests/fetch00.at index d3772d7..ae9072e 100644 --- a/tests/fetch00.at +++ b/tests/fetch00.at @@ -1,5 +1,5 @@ # This file is part of GDBM. -*- autoconf -*- -# Copyright (C) 2011, 2017-2019 Free Software Foundation, Inc. +# Copyright (C) 2011-2023 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 diff --git a/tests/fetch01.at b/tests/fetch01.at index c60aba3..dda5111 100644 --- a/tests/fetch01.at +++ b/tests/fetch01.at @@ -1,5 +1,5 @@ # This file is part of GDBM. -*- autoconf -*- -# Copyright (C) 2011, 2017-2019 Free Software Foundation, Inc. +# Copyright (C) 2011-2023 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 diff --git a/tests/g_open_ce.c b/tests/g_open_ce.c index acc389f..0fd9f29 100644 --- a/tests/g_open_ce.c +++ b/tests/g_open_ce.c @@ -1,5 +1,5 @@ /* This file is part of GDBM test suite. - |