Introduction¶
Embedded Unit is unit testing framework for Embedded C System. Its design was copied from JUnit and CUnit and more, and then adapted somewhat for Embedded C System. Embedded Unit does not require std C libs. All objects are allocated to const area.
This guide is tightly scoped with one purpose; to get you started with unit testing your embedded C code.
Getting Started¶
Download EmbUnit from project site.
Extract the package.
Project Structure:
embunit
├── embunit
├── samples
├── tests
└── textui
├── tools
│ ├── tbcuppa
│ ├── tbuma
run make in embUnit root.
run make in textui folder.
You are done. You have two libraries in the new lib -folder; libembunit.a and libtextui.a