This series adds tests for the new odp_thrmask_* APIs. As many of the
APIs are the same as the odp_cpumask_* APIs but operating on a different
type, the existing cpumask tests are initially refactored so that they
can be reused.

Changes v2 -> v3;

 - moved mask_common.[ch] files into test/validation/common
 - moved thrmask tests under test/validation/thread
 - fixed issue with "make distcheck"

Changes v1 -> v2;

Separated out the change to the odp_cpumask_def_worker and _def_control
tests, improved the coverage and fixed a bug I found in the process.

Stuart Haslam (9):
  validation: add missing include to odp_cunit_common.h
  validation: cpumask: use odp_cpumask_setall() to determine mask
    capacity
  linux-generic: cpumask: zero mask before setting
  validation: cpumask: def_worker and def_control fixes
  validation: split out cpumask tests into separate file
  validation: refactor cpumask tests
  validation: thrmask: introduce thrmask tests
  validation: common: return number of threads created
  validation: thrmask: test worker and control APIs

 platform/linux-generic/odp_cpumask.c      |   1 +
 test/validation/Makefile.inc              |   8 +-
 test/validation/common/.gitignore         |   3 +-
 test/validation/common/Makefile.am        |   9 +-
 test/validation/common/mask_common.c      | 472 +++++++++++++++++++++++++++
 test/validation/common/mask_common.h      |  61 ++++
 test/validation/common/odp_cunit_common.c |   5 +-
 test/validation/common/odp_cunit_common.h |   1 +
 test/validation/cpumask/Makefile.am       |   2 +-
 test/validation/cpumask/cpumask.c         | 507 +++---------------------------
 test/validation/cpumask/cpumask.h         |   5 +
 test/validation/thread/Makefile.am        |   3 +-
 test/validation/thread/thread.c           |  85 +++++
 15 files changed, 680 insertions(+), 482 deletions(-)
 create mode 100644 test/validation/common/mask_common.c
 create mode 100644 test/validation/common/mask_common.h

-- 
2.1.1

_______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to