Command Line Interface
Before you can link your test harness or your instrumented application, you must compile the Target Deployment Port library. This section describes how to do this.
To compile the Target Deployment Port library, make sure that:
A working C or C++ Test Script Compiler is installed on your system
You have prepared a valid Products file
Depending on the language of your source file:
For C: compile the TP.c file
For C++: compile the TP.cpp file
For Ada: compile the contents of the /lib directory
For Java: set the CLASSPATH to the TDP /lib directory
Do not forget to add to the include search path the directory where the products.h or Products.java file is located (usually with option -I or /I, depending on the compiler).
A wide variety of compilation flags can be used by the command line tools, allowing you to select sub-components of the application under test. These flags are equivalent to the Test Configuration Settings dialog box of the graphical user interface and are covered in the Reference section.
Default settings are contained in the following Perl script. You can use this file to define your own customized configuration settings.
<InstallDir>/lib/scripts/BatchCCDefaults.pl
To run this script, type the following command:
$TESTRTDIR/bin/<cpu>/<os>/perl -I$TESTRTDIR/lib/perl
$TESTRTDIR/lib/scripts/TDPBatchCC.pl <my_env.pl>
where <cpu> is the architecture platform of the machine, <os> is the operating system, and <my_env.pl> is your customized copy of the BatchCCDefaults.pl file
The TESTRTDIR and ATLTGT environment variables must have been previously set.
Related Topics
Preparing a Products Header File | Setting Environment Variables