Skip to content

Unit testing through the Check framework

Marios Fragkoulis edited this page Dec 6, 2016 · 7 revisions

Requirements

  • The Check unit testing framework: installation instructions
  • make for build management
  • the gcc compiler
  • libtool for library support scripting
  • pkg-config that facilitates compilation
  • the automake programming tool for automating a build process.

In debian systems these can all be installed with the one-liner:

sudo apt-get install check make automake gcc libtool pkg-config

Unit test environment preparation

make setup-test-negotiate

Unit test execution

make test-negotiate

How to add unit tests