a bit more about makefiles
The Makefile created for the project in the last article is simple but the $(CPPUTEST_HOME)/build/MakefileWorker.mk
included at the end provides a lot of useful tools. They can help checking how the tests are built and executed. These tools are called as parameters to the make
command on terminal and will trigger specific actions detailed on the Makefile that often won’t build and run the tests but execute something else.
The available options are listed typing make
in the terminal and pressing TAB
twice. This will trigger the auto-complete command in you terminal and list some options. For me it shows these ones:
$ make
all clean format objs/ start test_runner
all_no_tests debug gcov realclean test vtest
check_paths flags lib/ run test-deps
I will describe how to and when to use some of those.
Continue reading...