background image
<< Component Testing | Instrumenting and Compiling the Source Code >>
<< Component Testing | Instrumenting and Compiling the Source Code >>

Preparing an Options Header File

Test RealTime - User Guide
Preparing an Options Header File
This step is necessary if you are using:
·
System Testing for C
·
.otc Contract Check feature
Before you can compile a generated source file, you must set up a file named
options.h, which contains compilation parameters for such files.
How to prepare the options.h file:
1.
From the sub-directory lib of the selected Target Deployment Port, copy a file
named options_model.h to a directory of your choice, and rename it to
options.h.
The directory of your choice may be the directory where the generated source files or
instrumented source files are located.
2. Open
options.h in a text editor and add the following
define
at the beginning of
the file:
#define ATL_WITHOUT_STUDIO
3.
Make any necessary changes by adjusting the corresponding macros in the file.
The options_model.h file is self-documented, and you can adjust every macro to one
of the values listed. Each macro is set to a default value, so you can keep everything
unchanged if you don't know how to set them.
Take note of the directory where this file is stored, you will need it in order to
compile the generated or instrumented source files.
Preparing a Products Header File
Before you can compile the TDP library source files, you must set up a file named
products.h for C and C++ or Products.java for Java. This file contains the options that
describe how the TDP library files are to be compiled.
To set up a products header file
1.
For C and C++, copy the product_model.h file from the lib sub-directory of the
current Target Deployment Port to a directory of your choice, and rename it to
products.h.
The directory of your choice may be the directory where the generated source files or
instrumented source files are located.
2.
For Java, copy the Products_defaults.java.txt file from the lib sub-directory of
the current Target Deployment Port to com/rational/test/Products.java.
326