aboutsummaryrefslogtreecommitdiff
path: root/test/validation/api/thread
AgeCommit message (Collapse)Author
2023-05-26validation: use ODPH_ERR() macro for error printsMatias Elo
Use ODPH_ERR() macro for all error prints in the validation tests and make error messages more consistent. The helper macro adds additional debug information (filename, line number, function name) to the error messages, which can help debugging. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
2022-09-29validation: thread: improve odp_thread_id() testing coverageMatias Elo
Test that thread ids are allocated in numeric order. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2022-09-29test: cunit: add option to create threads in sync modeMatias Elo
Add new sync argument to odp_cunit_thread_create(), which can be used to create threads in synchronized mode. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2022-07-14validation: thread: improve thread id and count testsMatias Elo
Improve test coverage of odp_thread_id(), odp_thread_count(), odp_thread_count_max(), odp_cpu_id(), and ODP_THREAD_COUNT_MAX. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
2022-06-29validation: common: thread specific argument supportPetri Savolainen
Changed odp_cunit_thread_create() function to support thread specific argument pointers. Currently, most test cases don't pass argument pointer, or pass the same pointer for all created threads. These are supported (arg = NULL, priv = 0), but in addition thread specific pointers can be given (priv = 1). This allows specifying different roles for threads of a test case. odp_cunit_thread_exit() was renamed to odp_cunit_thread_join() to match the helper function name better. Also, changed timer test case to use global memory for passing queue type, as global memory is used for other parameters already (and thread argument pointed into main thread stack). Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
2021-12-08validation: remove usage of deprecated ODP_SHM_SW_ONLY flagMatias Elo
Stop using deprecated SHM flag ODP_SHM_SW_ONLY. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2019-09-19validation: use helper library debug macrosMatias Elo
Use ODP helper library debug macros instead of reimplementing the same functionality in test_debug.h. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2018-11-28validation: use use mem_model from helper optionsMatias Elo
Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Reviewed-by: Petri Savolainen <petri.savolainen@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2018-10-04validation: thread: allocate barriers from shmMatias Elo
Enables testing in process mode. Signed-off-by: Matias Elo <matias.elo@nokia.com> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2018-02-26update Linaro Copyrights to 2018 yearMaxim Uvarov
Using simple commands: find . -not -path .git -type f -exec \ sed -i -E 's/ (201[0-9]), Linaro/ \1-2018, Linaro/g' {} + find . -not -path .git -type f -exec \ sed -i -E 's/ (201[0-9])(-201[0-9]), Linaro/ \1-2018, Linaro/g' {} + Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org>
2018-02-20validation: thread: simplify test infrastructureDmitry Eremin-Solenikov
Merge separate file with just main() function into main test file. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Reviewed-by: Petri Savolainen <petri.savolainen@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2018-01-15validation: stop overriding LDADD variableDmitry Eremin-Solenikov
LDADD variable can be used to pass other libraries (like DPDK). Stop overriding LDADD entirely. Instead use PRELDADD variable or appending to LDADD. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2017-10-19test: drop unused EXEEXT suffixDmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2017-10-16test: drop now-unused common_plat directoryDmitry Eremin-Solenikov
All tests in test/ are now common to all platforms, so no point in specifying that via (the only) common_plat subdirectory inside test dir. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>