A simple template to get started quickly with unit testing in C with the check framework and execution with Makefiles.
In src folder type on the command line:
make main ./main
The program will execute.
Enter the folder src and then type on the command line:
make test
The tests that you have written are then checked.
If you type on the command line
make clean
This command will remove the object files that have been created.