Posts

Showing posts with the label autotools

Test Anything Protocol (TAP) with autotools and cmocka

Image
Autotoole can handle test suits of several types. Usually, I store my tests in "test" directory in the root of the project and set up each test in "Makefile.am" file. Each test to run is a separate executable file listed in "TEST" variable in makefile. For example: TESTS = foo_test bar_test xyz_test

C project IDE and skeleton [part 2]: vim, autotools, ctags, cmocka, lcov, dejagnu, apr, doxygen, git, guard

Image
This is second part. The first part is here . After setting up my development environment I am starting with writing tests. I do prefer TDD way and usually the process RED-GREEN-REFACTORING takes many changes during development as TDD allows to improve and optimize code any time (refactoring). But here I will put just final version of the code. The final version can be found on my github repo . Before starting, I run "guard" command in the console to let this amazing utility run all commands for my.