From: Bartosz Golaszewski <brgl@bgdev.pl>
To: Kent Gibson <warthog618@gmail.com>,
Linus Walleij <linus.walleij@linaro.org>,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: linux-gpio@vger.kernel.org, Bartosz Golaszewski <brgl@bgdev.pl>
Subject: [libgpiod][PATCH 0/3] tests: add support for the gpio-sim kernel module
Date: Thu, 29 Apr 2021 11:47:31 +0200 [thread overview]
Message-ID: <20210429094734.9585-1-brgl@bgdev.pl> (raw)
This series implements user-space support for the gpio-sim kernel module
and ports the core C tests to using it. The goal is to entirely drop support
for gpio-mockup from libgpiod.
The new library is designed in a way that allows multiple test suites to run
at the same time as any process using the library only ever interacts with the
simulated chips it instantiated itself. The new kernel driver also doesn't
require the user to unload the module to change the chip setup.
The first patch removes leftover code. The second adds the new library and
the last one does the porting of the core code.
In the future - once v2 for language bindings is done, we'll port other
test-suites to the new library.
Bartosz Golaszewski (3):
tests: remove gpiod_test_chip_num()
libgpiosim: new library for controlling the gpio-sim module
tests: port C tests to libgpiosim
configure.ac | 5 +-
tests/Makefile.am | 6 +-
tests/gpiod-test.c | 134 ++++--
tests/gpiod-test.h | 3 +-
tests/gpiosim/.gitignore | 4 +
tests/gpiosim/Makefile.am | 16 +
tests/gpiosim/gpiosim-selftest.c | 103 +++++
tests/gpiosim/gpiosim.c | 743 +++++++++++++++++++++++++++++++
tests/gpiosim/gpiosim.h | 42 ++
9 files changed, 1012 insertions(+), 44 deletions(-)
create mode 100644 tests/gpiosim/.gitignore
create mode 100644 tests/gpiosim/Makefile.am
create mode 100644 tests/gpiosim/gpiosim-selftest.c
create mode 100644 tests/gpiosim/gpiosim.c
create mode 100644 tests/gpiosim/gpiosim.h
--
2.30.1
next reply other threads:[~2021-04-29 9:47 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-29 9:47 Bartosz Golaszewski [this message]
2021-04-29 9:47 ` [libgpiod][PATCH 1/3] tests: remove gpiod_test_chip_num() Bartosz Golaszewski
2021-04-29 9:47 ` [libgpiod][PATCH 2/3] libgpiosim: new library for controlling the gpio-sim module Bartosz Golaszewski
2021-04-29 11:23 ` Andy Shevchenko
2021-04-29 13:07 ` Bartosz Golaszewski
2021-04-29 17:00 ` Andy Shevchenko
2021-04-29 17:03 ` Andy Shevchenko
2021-04-29 17:04 ` Andy Shevchenko
2021-04-30 9:29 ` Bartosz Golaszewski
2021-04-30 11:41 ` Andy Shevchenko
2021-04-30 12:31 ` Bartosz Golaszewski
2021-04-29 9:47 ` [libgpiod][PATCH 3/3] tests: port C tests to libgpiosim Bartosz Golaszewski
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=20210429094734.9585-1-brgl@bgdev.pl \
--to=brgl@bgdev.pl \
--cc=andriy.shevchenko@linux.intel.com \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=warthog618@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).