C-Thread-Pool/tests
Pierre Grimaud 3fe36a50af
docs: fix typos
2022-12-25 23:50:33 +01:00
..
ext_bugs Refactored tests 2015-01-16 18:21:34 +00:00
src docs: fix typos 2022-12-25 23:50:33 +01:00
README.md Small stilistic changes 2017-01-17 19:17:59 +00:00
api.sh Add API function to get number of working threads 2017-01-17 19:58:44 +00:00
funcs.sh Fix whitespace 2017-01-17 19:59:29 +00:00
heap_stack_garbage.sh Tests for non-zero heap/stack bug 2015-03-12 19:16:27 +00:00
memleaks.sh Thread-heavy tests should not parallelize too much 2022-12-01 09:53:17 +00:00
normal_compile.sh Add API function to get number of working threads 2017-01-17 19:58:44 +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
threadpool.sh Small fixes 2015-03-06 16:26:05 +00:00
wait.sh Small fixes 2015-03-06 16:26:05 +00:00

README.md

Tests

Test cases

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 ensure 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