diff options
author | Vaibhav Gupta <vaibhavgupta40@gmail.com> | 2019-07-23 19:11:54 +0530 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2019-07-30 10:18:09 -0500 |
commit | 57e0173584a914b1a92aa73deade6afb463186db (patch) | |
tree | 1fe51973e29e9447fd929c565b2288e5a12b18d8 /testsuites/psxtests/psxndbm01/psxndbm01.doc | |
parent | arm/raspberrypi: Fix linker map (diff) | |
download | rtems-57e0173584a914b1a92aa73deade6afb463186db.tar.bz2 |
psxtests: Add ndbm test suite
Joel Sherrill <joel@rtems.org> modified the patch to
add autoconf logic to avoid building this new test
unless the tool chain include <ndbm.h>. The ensures
that git bisect continues to work and that the addition
of this test does not immediately force the entire
community to update their tools.
Diffstat (limited to 'testsuites/psxtests/psxndbm01/psxndbm01.doc')
-rw-r--r-- | testsuites/psxtests/psxndbm01/psxndbm01.doc | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/testsuites/psxtests/psxndbm01/psxndbm01.doc b/testsuites/psxtests/psxndbm01/psxndbm01.doc new file mode 100644 index 0000000000..cdaeb40911 --- /dev/null +++ b/testsuites/psxtests/psxndbm01/psxndbm01.doc @@ -0,0 +1,36 @@ +This File describes the concepts tested by this test suite. + +ndbm.h - routines to manage data files that contain key/data pairs. + +test suite name: PSXNDBM 01 + +- A Simple test to check if NDBM methods are call-able. + - Check if able to run the routine to Open Database. + - Check if able to run the routine to store a record in database. + - Check if able to run the routine to fetch a record from database. + - Check if able to run the routine to close the database. + +- Test Cases for 'dbm_open()'. + - Verify the error when trying to open existing file with 'O_RDWR | O_EXCL' + flags. + - Verify the error when trying to open file with pathname longer than + {PATHMAX}-3 bytes. + - Verify the error when trying to open file with only write access. + +- Test Cases for 'dbm_store()'. + - Verify the error when trying to insert a record using same key with + 'DBM_INSERT' mode. + - Verify the updated record when trying to insert a record using same key + with 'DBM_REPLACE' mode. + - Verify if able to save more than one record in database. + +- Test Cases for 'dbm_fetch()'. + - Verify the data fetched from database. + - Verify the error when tring to fetch non-existing record. + +- Test Cases for 'dbm_delete()'. + - Veriy the error when trying to delete non-existing record. + - Delete one record and verify results. + - Check if correct record is deleted. + - Verify if other data is not corrupted during delete. + - Empty the databse and verify the value returned by 'dbm_firstkey()'.
\ No newline at end of file |