test_python_pybind.py 505 B

123456789101112131415
  1. import os
  2. import infra
  3. import subprocess
  4. from tests.package.test_python import TestPythonPackageBase
  5. class TestPythonPybind (TestPythonPackageBase):
  6. __test__ = True
  7. config = TestPythonPackageBase.config + \
  8. """
  9. BR2_PACKAGE_PYTHON3=y
  10. BR2_PACKAGE_PYTHON_PYBIND_EXAMPLE=y
  11. """
  12. sample_scripts = ["tests/package/sample_python_pybind.py"]
  13. # ship examples macro & installs it to host
  14. br2_external = [infra.filepath("tests/package/br2-external/python-pybind")]