Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 605 Bytes

UNITTESTS.md

File metadata and controls

16 lines (12 loc) · 605 Bytes

Before building and running the tests, install Check (and pkg-config or pkgconf to find Check's includes and libs). These are dependencies for tests and only for tests.

To build and run the tests from the top-level Makefile, simply run:

make test

Verified to work with recent BSD and GNU make.

To add more stralloc tests, copy the test_stralloc_thingy example in tests/unittest_stralloc.c. To add other tests, copy the unittest_stralloc example in tests/Makefile.