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>,
Viresh Kumar <viresh.kumar@linaro.org>
Cc: linux-gpio@vger.kernel.org, Bartosz Golaszewski <brgl@bgdev.pl>
Subject: [libgpiod][PATCH v2 0/2] libgpiosim: new testing library
Date: Mon, 24 Jan 2022 17:24:04 +0100 [thread overview]
Message-ID: <20220124162406.140961-1-brgl@bgdev.pl> (raw)
I'm resending this with some improvements resulting from actual test writing
with this library + with the right label this time.
This adds the library that talks to the new gpio-sim module. The module is
not yet in any linux release so we'll update the kernel requirements once
v5.17 is out.
The first patch adds the library and the second converts the C tests to using
it.
The plan is to use it to completely rewrite the tests for v2 so I don't
envision any more porting work for v1. Once we are on libgpiosim for all
test frameworks in v2, we'll remove all gpio-mockup code from the project.
v1 -> v2:
- add new functions allowing to retrieve the parent dev of a bank and the
parent context from a device
- add a function allowing to check if a device is live
- fix writing to configfs and sysfs attributes
Bartosz Golaszewski (2):
libgpiosim: new library for controlling the gpio-sim module
tests: port C tests to libgpiosim
configure.ac | 7 +-
tests/Makefile.am | 8 +-
tests/gpiod-test.c | 143 +++--
tests/gpiod-test.h | 4 +-
tests/gpiosim/.gitignore | 4 +
tests/gpiosim/Makefile.am | 16 +
tests/gpiosim/gpiosim-selftest.c | 157 +++++
tests/gpiosim/gpiosim.c | 1030 ++++++++++++++++++++++++++++++
tests/gpiosim/gpiosim.h | 69 ++
9 files changed, 1391 insertions(+), 47 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:[~2022-01-24 16:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-24 16:24 Bartosz Golaszewski [this message]
2022-01-24 16:24 ` [libgpiod][PATCH v2 1/2] libgpiosim: new library for controlling the gpio-sim module Bartosz Golaszewski
2022-01-24 16:24 ` [libgpiod][PATCH v2 2/2] 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=20220124162406.140961-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=viresh.kumar@linaro.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 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.