C-Thread-Pool/tests/README.md

28 lines
1.0 KiB
Markdown
Raw Normal View History

2015-01-03 19:48:56 +03:00
Tests
------------------------------------------------------------------------
2017-01-17 22:17:59 +03:00
**Test cases**
````
2016-02-16 17:51:51 +03:00
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.
2017-01-17 22:17:59 +03:00
wait - Will run tests to ensure that the wait() function works correctly.
2015-03-12 22:16:27 +03:00
heap_stack_garbage - Will test if previous garbage affects new threapools created.
````
2015-03-06 19:26:05 +03:00
Any test can be run with extra flags by exporting the variable COMPILATION_FLAGS. That's
also how the optimized_compile test works.
2015-01-18 15:44:38 +03:00
**Compilation cases**
````
2016-02-16 17:51:51 +03:00
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**
2015-01-18 15:44:38 +03:00
Check the created log file `error.log`