Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 921 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 921 Bytes

Dyninst Unit Tests

These are small, fast tests that can be run while developing Dyninst. Developers are strongly encouraged to add as many tests here as possible.

These are distinct from the testsuite and the external tests because unit tests need access to non-public headers. Moreover, a build of Dyninst with all symbols exposed is required in order to call those internal functions.

Building

Build a version of Dyninst that has all symbols exposed.

$ cmake /path/to/Dyninst -DDDYNINST_EXPORT_ALL=1 -DCMAKE_INSTALL_PREFIX=/path/to/Dyninst/install

The unit tests need both the installed version of Dyninst and its source tree.

$ cmake /path/to/unit-tests -DDyninst_DIR=/path/to/Dyninst/install/lib/cmake/Dyninst -DDYNINST_SOURCE_TREE=/path/to/Dyninst

The tests can then be run with ctest.