From: Stefan Kerkmann <s.kerkmann@pengutronix.de>
To: Sascha Hauer <s.hauer@pengutronix.de>,
"open list:BAREBOX" <barebox@lists.infradead.org>
Cc: Stefan Kerkmann <s.kerkmann@pengutronix.de>
Subject: [PATCH v2 3/5] tests: of_overlay: add selftests skeleton
Date: Mon, 19 Oct 2026 12:05:46 +0200 [thread overview]
Message-ID: <20261019-fix-overlay-v2-3-24e9ff1c0e12@pengutronix.de> (raw)
In-Reply-To: <20261019-fix-overlay-v2-0-24e9ff1c0e12@pengutronix.de>
Add a simple test harness for the upcoming of_overlay selftests.
Signed-off-by: Stefan Kerkmann <s.kerkmann@pengutronix.de>
---
test/self/Kconfig | 7 +++++++
test/self/Makefile | 1 +
test/self/of_overlay.c | 16 ++++++++++++++++
3 files changed, 24 insertions(+)
diff --git a/test/self/Kconfig b/test/self/Kconfig
index 75cfcd1570..bdee21f17d 100644
--- a/test/self/Kconfig
+++ b/test/self/Kconfig
@@ -35,6 +35,7 @@ config SELFTEST_ENABLE_ALL
select SELFTEST_CLEANUP
select SELFTEST_PROGRESS_NOTIFIER
select SELFTEST_OF_MANIPULATION
+ select SELFTEST_OF_OVERLAY
select SELFTEST_ENVIRONMENT_VARIABLES if ENVIRONMENT_VARIABLES
select SELFTEST_FS_RAMFS if FS_RAMFS
select SELFTEST_DIRFD if FS_RAMFS && FS_DEVFS
@@ -97,6 +98,12 @@ config SELFTEST_OF_MANIPULATION
help
Tests barebox device tree manipulation functionality
+config SELFTEST_OF_OVERLAY
+ bool "OF overlay selftest"
+ select OF_OVERLAY
+ help
+ Tests devicetree overlay application
+
config SELFTEST_PROGRESS_NOTIFIER
bool "progress notifier selftest"
diff --git a/test/self/Makefile b/test/self/Makefile
index c7b5188beb..f912afe5a6 100644
--- a/test/self/Makefile
+++ b/test/self/Makefile
@@ -10,6 +10,7 @@ obj-$(CONFIG_SELFTEST_PRINTF) += printf.o
CFLAGS_printf.o += -Wno-format-security -Wno-format
obj-$(CONFIG_SELFTEST_PROGRESS_NOTIFIER) += progress-notifier.o
obj-$(CONFIG_SELFTEST_OF_MANIPULATION) += of_manipulation.o of_manipulation.dtb.o
+obj-$(CONFIG_SELFTEST_OF_OVERLAY) += of_overlay.o
obj-$(CONFIG_SELFTEST_ENVIRONMENT_VARIABLES) += envvar.o
obj-$(CONFIG_SELFTEST_FS_RAMFS) += ramfs.o
obj-$(CONFIG_SELFTEST_DIRFD) += dirfd.o
diff --git a/test/self/of_overlay.c b/test/self/of_overlay.c
new file mode 100644
index 0000000000..d60898358f
--- /dev/null
+++ b/test/self/of_overlay.c
@@ -0,0 +1,16 @@
+// SPDX-License-Identifier: GPL-2.0-only
+
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
+#include <common.h>
+#include <bselftest.h>
+#include <linux/kernel.h>
+#include <linux/string.h>
+#include <of.h>
+
+BSELFTEST_GLOBALS();
+
+static void test_of_overlay(void)
+{
+}
+bselftest(core, test_of_overlay);
--
2.47.3
next prev parent reply other threads:[~2026-10-19 10:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-19 10:05 [PATCH v2 0/5] of: overlay: fix __symbols__ handling and add selftest suite Stefan Kerkmann
2026-10-19 10:05 ` [PATCH v2 1/5] of: overlay: of_overlay_fix_path: skip symbols without __overlay__ node Stefan Kerkmann
2026-10-19 10:05 ` [PATCH v2 2/5] of: overlay: fix_path/apply_symbols: add more debugging calls Stefan Kerkmann
2026-10-19 10:05 ` Stefan Kerkmann [this message]
2026-10-19 10:05 ` [PATCH v2 4/5] tests: of_overlay: add __symbols__ merging tests Stefan Kerkmann
2026-10-19 10:05 ` [PATCH v2 5/5] tests: of_overlay: add fragment application tests Stefan Kerkmann
2026-10-20 7:14 ` [PATCH v2 0/5] of: overlay: fix __symbols__ handling and add selftest suite Sascha Hauer
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=20261019-fix-overlay-v2-3-24e9ff1c0e12@pengutronix.de \
--to=s.kerkmann@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=s.hauer@pengutronix.de \
/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