C-Thread-Pool/tests
2016-02-16 14:51:51 +00:00
..
ext_bugs Refactored tests 2015-01-16 18:21:34 +00:00
src Add unit test: run in nonzero heap/stack env. 2015-03-08 12:48:09 +01:00
funcs.sh Assure valgrind is installed before running tests 2015-12-11 15:24:24 +00:00
heap_stack_garbage.sh Tests for non-zero heap/stack bug 2015-03-12 19:16:27 +00:00
memleaks.sh Error checking for valgrind is redundant since overlapping with other tests 2015-12-12 11:11:32 +00:00
normal_compile.sh Tests for non-zero heap/stack bug 2015-03-12 19:16:27 +00:00
optimized_compile.sh Small fixes 2015-03-06 16:26:05 +00:00
pause_resume.sh Small fixes 2015-03-06 16:26:05 +00:00
README.md Update README.md 2016-02-16 14:51:51 +00:00
threadpool.sh Small fixes 2015-03-06 16:26:05 +00:00
wait.sh Small fixes 2015-03-06 16:26:05 +00:00

Tests

Case tests

memleaks           - Will run tests for memory leaks. valgrind is being used for this.
                     Notice that valgrind requires one second to init each thread.
threadpool         - Will run general functional tests for the threadpool.
pause_resume       - Will test the synchronisation of the threadpool from the user.
wait               - Will run tests to assuse that the wait() function works correctly.
heap_stack_garbage - Will test if previous garbage affects new threapools created.

Any test can be run with extra flags by exporting the variable COMPILATION_FLAGS. That's also how the optimized_compile test works.

Compilation cases

normal_compile     - Will run all tests above against a simply compiled threadpool.
optimized_compile  - Will run all tests but against a binary that was compiled
                     with optimization flags.      

On errors

Check the created log file error.log