AceUnit (Advanced C and Embedded Unit): a comfortable C code unit test framework in the tradition of xUnit frameworks suitable even for extremely resource-constraint environments.
Build-Environment:
- Java 8 is required to build and run the code generator.
- C89 or newer is required to compile and run the tests.
- If C99 is available, AceUnit can make use of it.
Execution Environment:
- AceUnit runs in both, hosted and freestanding environments!
- 4 bytes of free RAM on the device on which the tests shall run.
- ~50-200 bytes of stack, depending on the size of a jmp_buf
.
AceUnit has been tested and used on the following compilers, CPUs and environments:
- GCC (various versions, various flavors of Linux and Cygwin) on i686, x86-64 and APS3s
- Keil / ARM ARMCC on ARM7, Cortex-M0, Cortex-M3, SC000, SC100, SC300
- Keil C251 for 80251 (currently known issue: gives a linker warning about a type mismatch, which can safely be ignored)
- Microsoft Visual Studio 2005
Although not tested, AceUnit is expected to work with the following compilers out-of-the-box, without any modification:
- Keil Cx51 8051
- Keil C166 C166
Besides, it's planned to add support for the following compilers:
- ucc on Calm16 and SecuCalm
- Open64
doc/
The source code of the documentation.
generator/
The source code of GenTest, which is the code generator for the AceUnit
test framework.
include/
The header files needed to integrate with AceUnit.
src/
The source code that you need for building programs with AceUnit.
This also contains tests which can be used to test AceUnit with itself.
Also, these tests are examples of how to use AceUnit.
test/
Several unit tests where AceUnit is tested with itself.
This is excellent examples of how to use AceUnit.