Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] support/testing: use aarch64 for TestPythonPy3Botocore
@ 2022-06-15 17:12 Raphaël Mélotte
  2022-06-15 17:12 ` [Buildroot] [PATCH 2/2] package/python-botocore: bump to version 1.27.8 Raphaël Mélotte
  2022-07-20 21:50 ` [Buildroot] [PATCH 1/2] support/testing: use aarch64 for TestPythonPy3Botocore Thomas Petazzoni via buildroot
  0 siblings, 2 replies; 5+ messages in thread
From: Raphaël Mélotte @ 2022-06-15 17:12 UTC (permalink / raw)
  To: buildroot; +Cc: Raphaël Mélotte, Ricardo Martincoski

With new python-botocore versions, the size of the package will
increase and the 256MiB memory limit from the default versatilepb
machine will no longer be sufficient to do runtime tests.

Switch to using an aarch64 machine, and use 512MiB memory.

The configuration and login method are taken from TestOpenJdk.

While at it, add the python-botocore test files to the DEVELOPERS
file.

Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be>
---
 DEVELOPERS                                    |  2 ++
 .../tests/package/test_python_botocore.py     | 24 ++++++++++++++++++-
 2 files changed, 25 insertions(+), 1 deletion(-)

diff --git a/DEVELOPERS b/DEVELOPERS
index 86755bfe18..c5ad5ce29b 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -2432,7 +2432,9 @@ F:	package/python-jmespath/
 F:	package/python-pymupdf/
 F:	package/python-rsa/
 F:	package/python-s3transfer/
+F:	support/testing/tests/package/sample_python_botocore.py
 F:	support/testing/tests/package/sample_python_rsa.py
+F:	support/testing/tests/package/test_python_botocore.py
 F:	support/testing/tests/package/test_python_rsa.py
 
 N:	Refik Tuzakli <tuzakli.refik@gmail.com>
diff --git a/support/testing/tests/package/test_python_botocore.py b/support/testing/tests/package/test_python_botocore.py
index 6336c5658f..535ad5496d 100644
--- a/support/testing/tests/package/test_python_botocore.py
+++ b/support/testing/tests/package/test_python_botocore.py
@@ -1,12 +1,34 @@
+import os
 from tests.package.test_python import TestPythonPackageBase
 
 
 class TestPythonPy3Botocore(TestPythonPackageBase):
     __test__ = True
-    config = TestPythonPackageBase.config + \
+
+    config = \
         """
+        BR2_aarch64=y
+        BR2_TOOLCHAIN_EXTERNAL=y
+        BR2_TARGET_GENERIC_GETTY_PORT="ttyAMA0"
+        BR2_LINUX_KERNEL=y
+        BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+        BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.10.34"
+        BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
+        BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/aarch64-virt/linux.config"
+        BR2_TARGET_ROOTFS_CPIO=y
+        BR2_TARGET_ROOTFS_CPIO_GZIP=y
         BR2_PACKAGE_PYTHON3=y
         BR2_PACKAGE_PYTHON_BOTOCORE=y
         """
+
     sample_scripts = ["tests/package/sample_python_botocore.py"]
     timeout = 10
+
+    def login(self):
+        img = os.path.join(self.builddir, "images", "rootfs.cpio.gz")
+        kern = os.path.join(self.builddir, "images", "Image")
+        self.emulator.boot(arch="aarch64",
+                           kernel=kern,
+                           kernel_cmdline=["console=ttyAMA0"],
+                           options=["-M", "virt", "-cpu", "cortex-a57", "-m", "512M", "-initrd", img])
+        self.emulator.login()
-- 
2.35.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-08-05  7:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-15 17:12 [Buildroot] [PATCH 1/2] support/testing: use aarch64 for TestPythonPy3Botocore Raphaël Mélotte
2022-06-15 17:12 ` [Buildroot] [PATCH 2/2] package/python-botocore: bump to version 1.27.8 Raphaël Mélotte
2022-07-23 16:56   ` Arnout Vandecappelle
2022-07-20 21:50 ` [Buildroot] [PATCH 1/2] support/testing: use aarch64 for TestPythonPy3Botocore Thomas Petazzoni via buildroot
2022-08-05  7:15   ` Raphaël Mélotte

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox