package/python-rtoml: new package

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
James Hilliard
2022-05-11 15:18:45 -06:00
committed by Thomas Petazzoni
parent cc6e9231c8
commit d21d3900bf
7 changed files with 113 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
from tests.package.test_python import TestPythonPackageBase
import os
class TestPythonPy3rtoml(TestPythonPackageBase):
__test__ = True
config = \
"""
BR2_arm=y
BR2_cortex_a9=y
BR2_ARM_ENABLE_NEON=y
BR2_ARM_ENABLE_VFP=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_PACKAGE_PYTHON3=y
BR2_PACKAGE_PYTHON_RTOML=y
BR2_TARGET_ROOTFS_CPIO=y
# BR2_TARGET_ROOTFS_TAR is not set
"""
sample_scripts = ["tests/package/sample_python_rtoml.py"]
timeout = 30
def login(self):
cpio_file = os.path.join(self.builddir, "images", "rootfs.cpio")
self.emulator.boot(arch="armv7",
kernel="builtin",
options=["-initrd", cpio_file])
self.emulator.login()