All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH v4 0/2] Add support for kconfig constraints
@ 2020-11-03 16:10 Cyril Hrubis
  2020-11-03 16:10 ` [LTP] [PATCH v4 1/2] lib: Add generic boolean expression parser and eval Cyril Hrubis
  2020-11-03 16:10 ` [LTP] [PATCH v4 2/2] lib/tst_kconfig: Make use of boolean expression eval Cyril Hrubis
  0 siblings, 2 replies; 10+ messages in thread
From: Cyril Hrubis @ 2020-11-03 16:10 UTC (permalink / raw)
  To: ltp

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

-- 
2.26.2


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-11-09 14:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-03 16:10 [LTP] [PATCH v4 0/2] Add support for kconfig constraints Cyril Hrubis
2020-11-03 16:10 ` [LTP] [PATCH v4 1/2] lib: Add generic boolean expression parser and eval Cyril Hrubis
2020-11-04 13:32   ` Richard Palethorpe
2020-11-06  8:10   ` Xiao Yang
2020-11-03 16:10 ` [LTP] [PATCH v4 2/2] lib/tst_kconfig: Make use of boolean expression eval Cyril Hrubis
2020-11-06  8:09   ` Xiao Yang
2020-11-06 10:21   ` Li Wang
2020-11-06 10:31     ` Cyril Hrubis
2020-11-06 10:32       ` Li Wang
2020-11-09 14:10         ` Cyril Hrubis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.