The two main interfaces for running tests with Common Test
are an executable program named ct_run and an
erlang module named
A legacy Bourne shell script - named run_test - exists, which may be manually generated and installed. This script may be used instead of the ct_run program mentioned above, e.g. if the user wishes to modify or customize the Common Test start flags in a simpler way than making changes to the ct_run C program.
The Common Test application is installed with the Erlang/OTP
system and no additional installation step is required to start using
Common Test by means of the ct_run executable program, and/or the interface
functions in the
Before reading on, please note that since Common Test version 1.5, the run_test shell script is no longer required for starting tests with Common Test from the OS command line. The ct_run program (descibed above) is the new recommended command line interface for Common Test. The shell script exists mainly for legacy reasons and may not be updated in future releases of Common Test. It may even be removed.
Optional step to generate a shell script for starting Common Test:
To generate the run_test shell script, navigate to the
This generates the executable run_test script in the
If you, for any reason, have copied Common Test and Test Server
to a different location than the default OTP lib directory, you can
generate a run_test script with a different top level directory,
simply by specifying the directory, instead of
Note that the
Whenever you install a new version of Erlang/OTP, the run_test script needs to be regenerated, or updated manually with new directory names (new version numbers), for it to "see" the latest Common Test and Test Server versions.