* [Buildroot] [PATCH 1/1] support/testing/tests/package/test_hwloc.py: new runtime test
@ 2022-09-15 21:24 Julien Olivain
2022-09-17 13:06 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Julien Olivain @ 2022-09-15 21:24 UTC (permalink / raw)
To: buildroot; +Cc: Julien Olivain
Signed-off-by: Julien Olivain <ju.o@free.fr>
---
DEVELOPERS | 1 +
support/testing/tests/package/test_hwloc.py | 22 +++++++++++++++++++++
2 files changed, 23 insertions(+)
create mode 100644 support/testing/tests/package/test_hwloc.py
diff --git a/DEVELOPERS b/DEVELOPERS
index a707b0e5e1..5c639fcaec 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1690,6 +1690,7 @@ F: package/zynaddsubfx/
F: support/testing/tests/package/sample_python_distro.py
F: support/testing/tests/package/sample_python_gnupg.py
F: support/testing/tests/package/sample_python_pyalsa.py
+F: support/testing/tests/package/test_hwloc.py
F: support/testing/tests/package/test_octave.py
F: support/testing/tests/package/test_ola.py
F: support/testing/tests/package/test_ola/
diff --git a/support/testing/tests/package/test_hwloc.py b/support/testing/tests/package/test_hwloc.py
new file mode 100644
index 0000000000..2a776c4038
--- /dev/null
+++ b/support/testing/tests/package/test_hwloc.py
@@ -0,0 +1,22 @@
+import os
+
+import infra.basetest
+
+
+class TestHWLoc(infra.basetest.BRTest):
+ config = infra.basetest.BASIC_TOOLCHAIN_CONFIG + \
+ """
+ BR2_PACKAGE_HWLOC=y
+ BR2_TARGET_ROOTFS_CPIO=y
+ # BR2_TARGET_ROOTFS_TAR is not set
+ """
+
+ def test_run(self):
+ cpio_file = os.path.join(self.builddir, "images", "rootfs.cpio")
+ self.emulator.boot(arch="armv5",
+ kernel="builtin",
+ options=["-initrd", cpio_file])
+ self.emulator.login()
+
+ self.assertRunOk("hwloc-info")
+ self.assertRunOk("hwloc-ls")
--
2.37.3
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 1/1] support/testing/tests/package/test_hwloc.py: new runtime test
2022-09-15 21:24 [Buildroot] [PATCH 1/1] support/testing/tests/package/test_hwloc.py: new runtime test Julien Olivain
@ 2022-09-17 13:06 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2022-09-17 13:06 UTC (permalink / raw)
To: Julien Olivain; +Cc: buildroot
On Thu, 15 Sep 2022 23:24:50 +0200
Julien Olivain <ju.o@free.fr> wrote:
> Signed-off-by: Julien Olivain <ju.o@free.fr>
> ---
> DEVELOPERS | 1 +
> support/testing/tests/package/test_hwloc.py | 22 +++++++++++++++++++++
> 2 files changed, 23 insertions(+)
> create mode 100644 support/testing/tests/package/test_hwloc.py
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-09-17 13:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-15 21:24 [Buildroot] [PATCH 1/1] support/testing/tests/package/test_hwloc.py: new runtime test Julien Olivain
2022-09-17 13:06 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox