Installation
Prerequisites
Section titled “Prerequisites”- A shell:
bash5+,ksh, orzsh. Theaceunitgenerator script needs one of these — your own project can keep using whatever shell you like. - GNU make 3.81+. On BSD systems the binary is usually
gmake, notmake. - A symbol-table tool:
nm,objdump, orreadelf, used to discover test fixtures from compiled object files. - A C compiler. Tested extensively with GCC 12/13 and Clang 17/18, across a wide range of cross-compilation targets (see Cross-compilation & Embedded Targets).
git clone https://github.com/christianhujer/aceunit.gitcd aceunitmakeThis builds and tests AceUnit itself.
AceUnit defaults to objdump. If that’s not available (e.g. some BSDs), either install binutils, remove the objdump.ac module from share/aceunit, or pass -t nm / -t readelf when running aceunit.
To build with a different compiler:
make CC=clangInstall
Section titled “Install”sudo make installInstalls into /usr/local/. Override the location with PREFIX:
sudo make install PREFIX=/opt/aceunit/PREFIX only affects installation — no rebuild needed. Uninstall the same way:
sudo make uninstallPlatform notes
Section titled “Platform notes”Next: Getting Started for your first test, or Core Concepts for the discovery model.