Skip to content

How to check the new project

Gustavo Pantuza edited this page Jan 31, 2017 · 1 revision

How to check the new project

To verify that, you should compile, run and test the project without any modifications by doing the following steps:

Dependencies

Check if all dependencies are ok:

  • Cmocka is installed
  • Valgrind is installed

Compiling the project

$> make

You will see compilation log output and them the following message:

Binary file placed at bin/binary

Running binary file

$> ./bin/binary

You should see the command line options printed as a debugging message.

Testing project

$> make tests

You will see compilation output and the tests running results.

'make tests' compile the project using cmocka. The binary output will be: bin/binary_test_runner. Then it runs the tests binary