
CTest - Perl extension for testing local 'C' routines

use CTest;

This module consists of various test routines to exercise the subroutines in the the 'C' pieces for bdbaccess
input: program name
-d
-f etc... see readme
output: number of arguments passed
set the port value to pnum input: integer port number output: none
set the signal handler. test routine should issue SIGINT to child and catch resulting text
set the value of "parent" return the previous value
input: none output: pid found in pid file see t_chk4pid below
input: path to pid file output: none saves the pid of the current process in the pid file (path2pidfile)
input: path to pid file output: undef or path to pid file checks for a process running with the pid found in "path". If the process is running return undef, otherwise return the "path". Always places the "pid" found in pid file into the variable "pidrun".
input: none output: current pidpath/file
input: dbhome, arg1...argN output: 0 or error code
input: 0 = primary db
or nz = secondary db,
database name
this only works for specific
test sequence used in the
test suite.
output: 0 or error code
prints database to STDOUT in the format
dot.quad.addr => timestamp
input: none output: none close the database files and environment
input: 0 = primary db
or nz = secondary db
database name
output: data (long)
or undef if not there
input: 0 = primary db
or nz = secondary db
database name,
cursor (starting at 1)
output: key, data
input: BDB status code output: string representing the code
input: none output: BDB version
input: name of database output: number of records in db
NOTE: database must be open

None

Michael Robinton <michael@bizsystems.com>
