diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-08-08 09:21:17 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-08-08 09:21:17 +0000 |
commit | 20bd97cc472f04e785863dd03123d5f6cfc9f4c4 (patch) | |
tree | 9da625f2255159fcff9389202a35f1e3dba1aa24 /tests | |
parent | 9729480d24aa61f6d426f6134eac2b7562452da6 (diff) | |
download | gdbm-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.in | 3 | ||||
-rw-r--r-- | tests/dbmcreate00.at | 2 | ||||
-rw-r--r-- | tests/dbmdel00.at | 2 | ||||
-rw-r--r-- | tests/dbmdel01.at | 2 | ||||
-rw-r--r-- | tests/dbmdel02.at | 2 | ||||
-rw-r--r-- | tests/dbmfetch00.at | 2 | ||||
-rw-r--r-- | tests/dbmfetch01.at | 2 | ||||
-rw-r--r-- | tests/testsuite.at | 4 | ||||
-rw-r--r-- | tests/version.at | 11 |
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 | ||
17 | PATH=@abs_top_builddir@/src:$PATH | 17 | PATH=@abs_top_builddir@/src:$PATH |
18 | 18 | ||
19 | XFAILFILE=$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 | ||
24 | trap "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 | ||
17 | AT_SETUP([create database: dbm interface]) | 17 | AT_SETUP([create database]) |
18 | AT_KEYWORDS([dbm create create00 dbmcreate00]) | 18 | AT_KEYWORDS([dbm create create00 dbmcreate00]) |
19 | 19 | ||
20 | AT_CHECK([ | 20 | AT_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 | ||
17 | AT_SETUP([delete a record (dbm)]) | 17 | AT_SETUP([delete a record]) |
18 | AT_KEYWORDS([dbm delete delete00 dbmdel00]) | 18 | AT_KEYWORDS([dbm delete delete00 dbmdel00]) |
19 | 19 | ||
20 | AT_CHECK([ | 20 | AT_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 | ||
17 | AT_SETUP([delete (dbm): non existing record]) | 17 | AT_SETUP([delete: non existing record]) |
18 | AT_KEYWORDS([dbm delete delete01 dbmdel01]) | 18 | AT_KEYWORDS([dbm delete delete01 dbmdel01]) |
19 | 19 | ||
20 | AT_CHECK([ | 20 | AT_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 | ||
17 | AT_SETUP([delete (dbm): all records]) | 17 | AT_SETUP([delete: all records]) |
18 | AT_KEYWORDS([dbm delete delete02 dbmdel02]) | 18 | AT_KEYWORDS([dbm delete delete02 dbmdel02]) |
19 | 19 | ||
20 | AT_CHECK([ | 20 | AT_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 | ||
17 | AT_SETUP([fetch a record (dbm)]) | 17 | AT_SETUP([fetch a record]) |
18 | AT_KEYWORDS([dbm fetch fetch00 dbmfetch00]) | 18 | AT_KEYWORDS([dbm fetch fetch00 dbmfetch00]) |
19 | 19 | ||
20 | AT_CHECK([ | 20 | AT_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 | ||
17 | AT_SETUP([fetch (dbm): nonexisting record]) | 17 | AT_SETUP([fetch: nonexisting record]) |
18 | AT_KEYWORDS([dbm fetch fetch01 dbmfetch01]) | 18 | AT_KEYWORDS([dbm fetch fetch01 dbmfetch01]) |
19 | 19 | ||
20 | AT_CHECK([ | 20 | AT_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 | |||
32 | AT_INIT | 32 | AT_INIT |
33 | m4_include([version.at]) | 33 | m4_include([version.at]) |
34 | 34 | ||
35 | AT_BANNER([GDBM interface]) | ||
36 | |||
35 | m4_include([create00.at]) | 37 | m4_include([create00.at]) |
36 | 38 | ||
37 | m4_include([fetch00.at]) | 39 | m4_include([fetch00.at]) |
@@ -41,6 +43,8 @@ m4_include([delete00.at]) | |||
41 | m4_include([delete01.at]) | 43 | m4_include([delete01.at]) |
42 | m4_include([delete02.at]) | 44 | m4_include([delete02.at]) |
43 | 45 | ||
46 | AT_BANNER([Compatibility library (dbm/ndbm)]) | ||
47 | |||
44 | m4_include([dbmcreate00.at]) | 48 | m4_include([dbmcreate00.at]) |
45 | 49 | ||
46 | m4_include([dbmfetch00.at]) | 50 | m4_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 |
22 | AT_PACKAGE_VERSION_MAJOR.AT_PACKAGE_VERSION_MINOR.AT_PACKAGE_VERSION_PATCH | 22 | AT_PACKAGE_VERSION_MAJOR.AT_PACKAGE_VERSION_MINOR.AT_PACKAGE_VERSION_PATCH |
23 | ], | 23 | ]) |
24 | [], | ||
25 | [cat >$[]XFAILFILE <<'_EOT' | ||
26 | |||
27 | ============================================================== | ||
28 | WARNING: Not using the proper version, *all* checks dubious... | ||
29 | ============================================================== | ||
30 | _EOT | ||
31 | ], | ||
32 | [rm -f $[]XFAILFILE]) | ||
33 | 24 | ||
34 | AT_CLEANUP | 25 | AT_CLEANUP |