Running and Publishing the TestIntro Sample
Building the TargetApp to Include Test Intro Sample
In this step, will will add a set of sample tests that provide an overview of STRIDE testing techniques. The Test Intro Sample tests are described in the linked article.
This step requires an installation of the STRIDE Samples package. If not installed, please see Package Installation for more information.
The SDK Makefile is set up so that all .c .cpp and .h files found in the directory SDK/Linux/sample_src (or, alternatively SDK\Windows\sample_src) are included in the compile and link of the testapp target.
Further--as a pre-compilation step--any .h files found in sample_src are submitted to the S2 compiler and subsequent Build Tools. This will result in
- the detection of SCL Pragmas which declare Test Units in these .h files
- the inclusion of metadata into the sidb file to describe these Test Units
- the generation of test harnessing code to run the indicated Test Units and collect results
To begin, be sure that TestApp is not running, then copy the .c and .h files found in Samples/TestIntro to SDK/Linux/sample_src (or Windows equivalent). Then build the TestApp as described above.