test frame for the ISAM file library
test frame for the ISAM file libraryThis test frame calls the PBL ISAM file library, it is an interactive test frame capable of regression tests.
Interactive mode:
Call the program pbliftst from a UNIX or DOS shell.
The following commands to test the PBL ISAM File Library are supplied:
q FOR QUIT open filename keyfile1,dupfile2,... update transaction < START | COMMIT | ROLLBACK > close flush insert ,key1,key2... data ninsert n key1,key2,... data find index key < LT | LE | FI | EQ | LA | GE | GT > nfind n index key < LT | LE | FI | EQ | LA | GE | GT > get index < NEXT | PREV | FIRST | LAST | THIS > datalen readdata readkey index updatedata data updatekey index key ndelete nSee pblKEYFILE_TestFrame for an example to interactively use the test frame. Regression mode:Five regression test cases are supplied with the PBL ISAM library.
ISAM0001.TST, ISAM0002.TST, ISAM0003.TST, ISAM0004.TST and ISAM0005.TST.
ISAM0001.TST and ISAM0004.TST are run when the "make test" is done. Do the following if you want to run the test cases per hand
1. Build the pbliftst executable. make all 2. Create the sub directory isamtest. mkdir isamtest 3. Clear the sub directory isamtest. rm imamtest/0* 4. Run the test frame on this file. pbliftst ISAM0001.TST 5. Compare ISAM0001.TST and pbliftst.log diff ISAM0001.TST pbliftst.logThere should be no differences reported, if so your build of the PBL library is most likely ok!