From: Francis Laniel <flaniel@linux.microsoft.com>
To: buildroot@buildroot.org
Cc: Francis Laniel <flaniel@linux.microsoft.com>
Subject: [Buildroot] [RFC PATCH v3 3/3] support/testing/package: add new test for sysdig
Date: Fri, 18 Aug 2023 17:52:18 +0200 [thread overview]
Message-ID: <20230818155219.71054-4-flaniel@linux.microsoft.com> (raw)
In-Reply-To: <20230818155219.71054-1-flaniel@linux.microsoft.com>
Signed-off-by: Francis Laniel <flaniel@linux.microsoft.com>
---
.../testing/tests/package/test_sysdig.config | 1 +
support/testing/tests/package/test_sysdig.py | 46 +++++++++++++++++++
2 files changed, 47 insertions(+)
create mode 100644 support/testing/tests/package/test_sysdig.config
create mode 100644 support/testing/tests/package/test_sysdig.py
diff --git a/support/testing/tests/package/test_sysdig.config b/support/testing/tests/package/test_sysdig.config
new file mode 100644
index 0000000000..6450f34933
--- /dev/null
+++ b/support/testing/tests/package/test_sysdig.config
@@ -0,0 +1 @@
+CONFIG_IPV6=y
diff --git a/support/testing/tests/package/test_sysdig.py b/support/testing/tests/package/test_sysdig.py
new file mode 100644
index 0000000000..f27114c539
--- /dev/null
+++ b/support/testing/tests/package/test_sysdig.py
@@ -0,0 +1,46 @@
+import os
+
+import infra.basetest
+
+
+class TestSysdig(infra.basetest.BRTest):
+ config = \
+ """
+ BR2_arm=y
+ BR2_LINUX_KERNEL=y
+ BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+ BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.1"
+ BR2_LINUX_KERNEL_DEFCONFIG="vexpress"
+ BR2_LINUX_KERNEL_DTS_SUPPORT=y
+ BR2_LINUX_KERNEL_INTREE_DTS_NAME="vexpress-v2p-ca9"
+ BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="{linux_fragment}"
+ BR2_TOOLCHAIN_EXTERNAL=y
+ BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
+ BR2_TOOLCHAIN_EXTERNAL_GLIBC=y
+ BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y
+ BR2_TOOLCHAIN_GCC_AT_LEAST_5=y
+ BR2_TOOLCHAIN_HAS_THREADS=y
+ BR2_TOOLCHAIN_HAS_SYNC_4=y
+ BR2_INSTALL_LIBSTDCPP=y
+ BR2_PACKAGE_LUA=y
+ BR2_PACKAGE_LUA_5_1=y
+ BR2_PACKAGE_SYSDIG=y
+ BR2_TARGET_ROOTFS_CPIO=y
+ # BR2_TARGET_ROOTFS_TAR is not set
+ """.format(linux_fragment=infra.filepath("tests/package/test_sysdig.config"))
+
+ def test_run(self):
+ cpio_file = os.path.join(self.builddir, "images", "rootfs.cpio")
+ kernel_file = os.path.join(self.builddir, "images", "zImage")
+ dtb_file = os.path.join(self.builddir, "images", "vexpress-v2p-ca9.dtb")
+ self.emulator.boot(arch="armv7", kernel=kernel_file,
+ kernel_cmdline=[
+ "console=ttyAMA0,115200"],
+ options=["-initrd", cpio_file,
+ "-dtb", dtb_file,
+ "-M", "vexpress-a9", "-m", "1024"])
+ self.emulator.login()
+
+ self.assertRunOk("sysdig --version")
+ # Run sysdig for 3 seconds.
+ self.assertRunOk("sysdig -M 3")
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
prev parent reply other threads:[~2023-08-18 15:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-18 15:52 [Buildroot] [RFC PATCH v3 0/3] Bump sysdig and falco libs Francis Laniel
2023-08-18 15:52 ` [Buildroot] [RFC PATCH v3 1/3] package/falcosecurity-libs: bump to version 0.10.5 Francis Laniel
2023-08-18 15:52 ` [Buildroot] [RFC PATCH v3 2/3] package/sysdig: bump to version 0.31.4 Francis Laniel
2023-08-18 15:52 ` Francis Laniel [this message]
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=20230818155219.71054-4-flaniel@linux.microsoft.com \
--to=flaniel@linux.microsoft.com \
--cc=buildroot@buildroot.org \
/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.