Application Test Units (TU) are used by the Diagnostic Applications to test a device. Typically, due to either their large size or their functional composition, TUs are more appropriately written as applications as opposed to being included within device drivers.
This chapter defines requirements for Application Test Unit code and provides guidance for TU Developers who need to develop code for multiple target environments. The TU code should be developed in ANSI C language and according to generally accepted good programming practices, including, but not limited to:
The use of assembler-level code is strongly discouraged, but may be necessary in certain cases where performance is critical to the effectiveness of the test function. Such code would not be considered portable and would have to be rewritten for the target platform.
The following topics are discussed in detail: