Chapter 242. Test Programs
Table of Contents
242.1. Test Programs
Some Unity specific tests are built and can be used to verify correct operation of the library.
The original Unity examples are all very slight
variations of the same underlying example for different build
environments, so we only provide a single variant for the eCos tests
build.
unity_coreThis test exercises the core Unity functionality.
unity_core_memoryThis test exercises the extra memory functionality if CYGPKG_UNITY_MEMORY is enabled.
unity_floatsThis test exercises the single-precision floating point
(float)support whenUNITY_EXCLUDE_FLOATis not defined.unity_doublesThis test exercises the double-precision floating point
(double)support whenUNITY_EXCLUDE_DOUBLEis not defined.unity_integersThis test exercises the basic integer assert functionality.
unity_integers_64This test exercises the 64-bit support when
UNITY_SUPPORT_64is defined, which is the case when using the default eCosunity_config.hconfiguration header.unity_memoryThis test exercises the memory equality support. It is not related to the extra
CYGPKG_UNIT_MEMORYfunctionality, but tests the core memory buffer assert support.unity_stringsThis test exercises the core string functionality.
example_1_1This test is a simple example of using Unity based on the original Unity package
examples/example_1/test/TestProductionCode.csource.example_1_2This test is a simple example of using Unity based on the original Unity package
examples/example_1/test/TestProductionCode2.csource.
| 2025-10-02 |



