aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-08-08 09:21:17 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2011-08-08 09:21:17 +0000
commit20bd97cc472f04e785863dd03123d5f6cfc9f4c4 (patch)
tree9da625f2255159fcff9389202a35f1e3dba1aa24 /tests
parent9729480d24aa61f6d426f6134eac2b7562452da6 (diff)
downloadgdbm-20bd97cc472f04e785863dd03123d5f6cfc9f4c4.tar.gz
gdbm-20bd97cc472f04e785863dd03123d5f6cfc9f4c4.tar.bz2
Provide test group descriptors in the testsuite.
* tests/atlocal.in (XFAILFILE): Remove. * tests/version.at: Don't create XFAILFILE. * tests/testsuite.at: Add test group banners * tests/dbmcreate00.at (AT_SETUP): Change description. * tests/dbmdel00.at: Likewise. * tests/dbmdel01.at: Likewise. * tests/dbmdel02.at: Likewise. * tests/dbmfetch00.at: Likewise. * tests/dbmfetch01.at: Likewise.
Diffstat (limited to 'tests')
-rw-r--r--tests/atlocal.in3
-rw-r--r--tests/dbmcreate00.at2
-rw-r--r--tests/dbmdel00.at2
-rw-r--r--tests/dbmdel01.at2
-rw-r--r--tests/dbmdel02.at2
-rw-r--r--tests/dbmfetch00.at2
-rw-r--r--tests/dbmfetch01.at2
-rw-r--r--tests/testsuite.at4
-rw-r--r--tests/version.at11
9 files changed, 11 insertions, 19 deletions
diff --git a/tests/atlocal.in b/tests/atlocal.in
index 5f5f1a1..8dc31d1 100644
--- a/tests/atlocal.in
+++ b/tests/atlocal.in
@@ -16,12 +16,9 @@
16 16
17PATH=@abs_top_builddir@/src:$PATH 17PATH=@abs_top_builddir@/src:$PATH
18 18
19XFAILFILE=$abs_builddir/.badversion
20
21@COMPAT_OPT_TRUE@COMPAT=1 19@COMPAT_OPT_TRUE@COMPAT=1
22@COMPAT_OPT_FALSE@COMPAT=0 20@COMPAT_OPT_FALSE@COMPAT=0
23 21
24trap "cleanup; test -r $XFAILFILE && cat $XFAILFILE; exit $?" 1 2 13 15
25 22
26 23
27 24
diff --git a/tests/dbmcreate00.at b/tests/dbmcreate00.at
index 157bd35..f813061 100644
--- a/tests/dbmcreate00.at
+++ b/tests/dbmcreate00.at
@@ -14,7 +14,7 @@
14# You should have received a copy of the GNU General Public License 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/>. */ 15# along with GDBM. If not, see <http://www.gnu.org/licenses/>. */
16 16
17AT_SETUP([create database: dbm interface]) 17AT_SETUP([create database])
18AT_KEYWORDS([dbm create create00 dbmcreate00]) 18AT_KEYWORDS([dbm create create00 dbmcreate00])
19 19
20AT_CHECK([ 20AT_CHECK([
diff --git a/tests/dbmdel00.at b/tests/dbmdel00.at
index 8ff08dc..8f76648 100644
--- a/tests/dbmdel00.at
+++ b/tests/dbmdel00.at
@@ -14,7 +14,7 @@
14# You should have received a copy of the GNU General Public License 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/>. */ 15# along with GDBM. If not, see <http://www.gnu.org/licenses/>. */
16 16
17AT_SETUP([delete a record (dbm)]) 17AT_SETUP([delete a record])
18AT_KEYWORDS([dbm delete delete00 dbmdel00]) 18AT_KEYWORDS([dbm delete delete00 dbmdel00])
19 19
20AT_CHECK([ 20AT_CHECK([
diff --git a/tests/dbmdel01.at b/tests/dbmdel01.at
index 1b537a1..e0b8f20 100644
--- a/tests/dbmdel01.at
+++ b/tests/dbmdel01.at
@@ -14,7 +14,7 @@
14# You should have received a copy of the GNU General Public License 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/>. */ 15# along with GDBM. If not, see <http://www.gnu.org/licenses/>. */
16 16
17AT_SETUP([delete (dbm): non existing record]) 17AT_SETUP([delete: non existing record])
18AT_KEYWORDS([dbm delete delete01 dbmdel01]) 18AT_KEYWORDS([dbm delete delete01 dbmdel01])
19 19
20AT_CHECK([ 20AT_CHECK([
diff --git a/tests/dbmdel02.at b/tests/dbmdel02.at
index 9b08974..79e5ef6 100644
--- a/tests/dbmdel02.at
+++ b/tests/dbmdel02.at
@@ -14,7 +14,7 @@
14# You should have received a copy of the GNU General Public License 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/>. */ 15# along with GDBM. If not, see <http://www.gnu.org/licenses/>. */
16 16
17AT_SETUP([delete (dbm): all records]) 17AT_SETUP([delete: all records])
18AT_KEYWORDS([dbm delete delete02 dbmdel02]) 18AT_KEYWORDS([dbm delete delete02 dbmdel02])
19 19
20AT_CHECK([ 20AT_CHECK([
diff --git a/tests/dbmfetch00.at b/tests/dbmfetch00.at
index 3ed4623..2eb3279 100644
--- a/tests/dbmfetch00.at
+++ b/tests/dbmfetch00.at
@@ -14,7 +14,7 @@
14# You should have received a copy of the GNU General Public License 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/>. */ 15# along with GDBM. If not, see <http://www.gnu.org/licenses/>. */
16 16
17AT_SETUP([fetch a record (dbm)]) 17AT_SETUP([fetch a record])
18AT_KEYWORDS([dbm fetch fetch00 dbmfetch00]) 18AT_KEYWORDS([dbm fetch fetch00 dbmfetch00])
19 19
20AT_CHECK([ 20AT_CHECK([
diff --git a/tests/dbmfetch01.at b/tests/dbmfetch01.at
index b94d774..ce74a16 100644
--- a/tests/dbmfetch01.at
+++ b/tests/dbmfetch01.at
@@ -14,7 +14,7 @@
14# You should have received a copy of the GNU General Public License 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/>. */ 15# along with GDBM. If not, see <http://www.gnu.org/licenses/>. */
16 16
17AT_SETUP([fetch (dbm): nonexisting record]) 17AT_SETUP([fetch: nonexisting record])
18AT_KEYWORDS([dbm fetch fetch01 dbmfetch01]) 18AT_KEYWORDS([dbm fetch fetch01 dbmfetch01])
19 19
20AT_CHECK([ 20AT_CHECK([
diff --git a/tests/testsuite.at b/tests/testsuite.at
index 0fee45e..c2f9260 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -32,6 +32,8 @@ dnl # Begin tests
32AT_INIT 32AT_INIT
33m4_include([version.at]) 33m4_include([version.at])
34 34
35AT_BANNER([GDBM interface])
36
35m4_include([create00.at]) 37m4_include([create00.at])
36 38
37m4_include([fetch00.at]) 39m4_include([fetch00.at])
@@ -41,6 +43,8 @@ m4_include([delete00.at])
41m4_include([delete01.at]) 43m4_include([delete01.at])
42m4_include([delete02.at]) 44m4_include([delete02.at])
43 45
46AT_BANNER([Compatibility library (dbm/ndbm)])
47
44m4_include([dbmcreate00.at]) 48m4_include([dbmcreate00.at])
45 49
46m4_include([dbmfetch00.at]) 50m4_include([dbmfetch00.at])
diff --git a/tests/version.at b/tests/version.at
index 8cfac2b..8959d75 100644
--- a/tests/version.at
+++ b/tests/version.at
@@ -20,15 +20,6 @@ AT_CHECK([gtver -lib -full -header -full],
20[0], 20[0],
21[AT_PACKAGE_VERSION_MAJOR.AT_PACKAGE_VERSION_MINOR.AT_PACKAGE_VERSION_PATCH 21[AT_PACKAGE_VERSION_MAJOR.AT_PACKAGE_VERSION_MINOR.AT_PACKAGE_VERSION_PATCH
22AT_PACKAGE_VERSION_MAJOR.AT_PACKAGE_VERSION_MINOR.AT_PACKAGE_VERSION_PATCH 22AT_PACKAGE_VERSION_MAJOR.AT_PACKAGE_VERSION_MINOR.AT_PACKAGE_VERSION_PATCH
23], 23])
24[],
25[cat >$[]XFAILFILE <<'_EOT'
26
27==============================================================
28WARNING: Not using the proper version, *all* checks dubious...
29==============================================================
30_EOT
31],
32[rm -f $[]XFAILFILE])
33 24
34AT_CLEANUP 25AT_CLEANUP

Return to:

Send suggestions and report system problems to the System administrator.