When you generate functional tests, BladeSmith creates
a set of files that include shell scripts and SQL scripts for testing
opaque data type support routines, user-defined routines, and cast
support functions. By default, these files are created in the functest subdirectory
of the directory containing the BladeSmith project file.
About this task
Functional tests are generated only for the DataBlade® module
objects for which you enter test data in your BladeSmith project.
Functional
testing is typically an iterative process, repeated many times until
the code passes all the tests. The testing process has the following
general steps:
Procedure
- Build the shared object file while logged on as user informix.
- Install the DataBlade module
shared object, SQL scripts, and test scripts in the $INFORMIXDIR/extend/project directory.
- Log on as the informix user and start your database
server with the oninit command.
See
the HCL
OneDB™
Administrator's Guide for
more information.
- Create a test database.
See the HCL
OneDB DB-Access User's
Guide for
more information.
- Register the DataBlade module
by using BladeManager.
- If you are replacing an existing shared object, shut down
and restart the database server with the onmode -k and oninit commands.
- Execute the functional tests.
- Edit the source code (if necessary).
- Regenerate the tests in BladeSmith (if necessary).
- Repeat the procedure, as necessary.