Skip to content

Add support for kconfig constraints

Cyril Hrubis ltp 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 0 repliesNew
  2. v32 patches 0 repliesSuperseded
  3. v22 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches0 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2lib: Add generic boolean expression parser and evalinclude/tst_bool_expr.h lib/newlib_tests/.gitignore lib/newlib_tests/tst_bool_expr.c +1 more+612 -02 replies
2/2lib/tst_kconfig: Make use of boolean expression evaldoc/test-writing-guidelines.txt include/tst_kconfig.h lib/newlib_tests/.gitignore +5 more+307 -1552 replies
2/2lib/tst_kconfig: Make use of boolean expression eval+0 -01 reply
2/2lib/tst_kconfig: Make use of boolean expression eval+0 -00 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchRichard PalethorpeXiao YangLi Wang
1/2R-b R-b
2/2R-b R-b
2/2R-b R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v4 thread

Cover letter [LTP] [PATCH v4 0/2] Add support for kconfig constraints

This patchset adds a support for generic boolean expressions in order to be able to check for a more complex kernel configurations.

The motivation for this is recent rename in kernel config names that cannot be checked for by a simplistic approach we previously implemented.

The boolean expression parser was written as a generic as possible since I do expect that we will reuse it for different types of assertions in the future.

Cyril Hrubis (2):
lib: Add generic boolean expression parser and eval lib/tst_kconfig: Make use of boolean expression eval

 doc/test-writing-guidelines.txt         |  21 +-
 include/tst_bool_expr.h                 |  85 +++++
 include/tst_kconfig.h                   |  34 +-
 lib/newlib_tests/.gitignore             |   2 +
 lib/newlib_tests/config06               |   1 +
 lib/newlib_tests/test_kconfig.c         |   2 +
 lib/newlib_tests/test_kconfig01.c       |  23 ++
 lib/newlib_tests/tst_bool_expr.c        | 128 ++++++++
 lib/tst_bool_expr.c                     | 398 ++++++++++++++++++++++++
 lib/tst_kconfig.c                       | 366 ++++++++++++++--------
 testcases/kernel/syscalls/acct/acct02.c |  14 +-
 11 files changed, 919 insertions(+), 155 deletions(-)
 create mode 100644 include/tst_bool_expr.h
 create mode 100644 lib/newlib_tests/config06
 create mode 100644 lib/newlib_tests/test_kconfig01.c
 create mode 100644 lib/newlib_tests/tst_bool_expr.c
 create mode 100644 lib/tst_bool_expr.c
Signature · 1 line
2.26.2