public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH 0/3] Add support for kconfig constraints
Date: Tue, 20 Oct 2020 12:09:07 +0200	[thread overview]
Message-ID: <20201020100910.10828-1-chrubis@suse.cz> (raw)

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 (3):
  lib/tst_kconfig: Rewrite the parser internals
  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          |  80 +++++
 include/tst_kconfig.h            |  34 ++-
 lib/newlib_tests/.gitignore      |   1 +
 lib/newlib_tests/test_kconfig.c  |   1 +
 lib/newlib_tests/tst_bool_expr.c | 127 ++++++++
 lib/tst_bool_expr.c              | 504 +++++++++++++++++++++++++++++++
 lib/tst_kconfig.c                | 310 ++++++++++++-------
 8 files changed, 939 insertions(+), 139 deletions(-)
 create mode 100644 include/tst_bool_expr.h
 create mode 100644 lib/newlib_tests/tst_bool_expr.c
 create mode 100644 lib/tst_bool_expr.c

-- 
2.26.2


             reply	other threads:[~2020-10-20 10:09 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-20 10:09 Cyril Hrubis [this message]
2020-10-20 10:09 ` [LTP] [PATCH 1/3] lib/tst_kconfig: Rewrite the parser internals Cyril Hrubis
2020-10-21  9:46   ` Richard Palethorpe
2020-10-21 10:06     ` Cyril Hrubis
2020-10-21 12:39       ` Richard Palethorpe
2020-10-21 14:11         ` Cyril Hrubis
2020-10-21 14:31           ` [LTP] [Automated-testing] " Petr Vorel
2020-10-22  8:09           ` [LTP] " Richard Palethorpe
2020-10-22  8:53             ` Cyril Hrubis
2020-10-20 10:09 ` [LTP] [PATCH 2/3] lib: Add generic boolean expression parser and eval Cyril Hrubis
2020-10-21 16:34   ` Richard Palethorpe
2020-10-21 16:36     ` Richard Palethorpe
2020-10-21 18:20     ` Cyril Hrubis
2020-10-22  7:55       ` Richard Palethorpe
2020-10-22  8:57         ` Cyril Hrubis
2020-10-22 10:28           ` Richard Palethorpe
2020-10-20 10:09 ` [LTP] [PATCH 3/3] lib/tst_kconfig: Make use of boolean expression eval Cyril Hrubis
2020-10-22  8:38   ` Richard Palethorpe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201020100910.10828-1-chrubis@suse.cz \
    --to=chrubis@suse.cz \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox