mkdir -p build
cd build
cmake ..
make
#launch tests
./Test
If you want to test memory leaks, just use:
valgrind ./Test
CrashC tests are all different programs, each of them with their own main funciton. So, automated testing needs to compile the framework with different flags.
We have created a bash script that automatically builds and tests each source file. To use it, do the following_
cd <crashC main directory>
src/test/resources/testEverything.bash
If sdomething goes wrong you will see an error message.
This section is related to any developer who wants to contribute to the framework
If you want to add an automated test checking a particular feature, be sure to do the following:
Please look at "test_issue0001.c" and "test_issue0002b.c" for a working example.