test_python_pynacl.py 901 B

123456789101112131415161718192021222324252627
  1. from tests.package.test_python import TestPythonPackageBase
  2. class TestPythonPy2Pynacl(TestPythonPackageBase):
  3. __test__ = True
  4. # use haveged to generate enough entropy so pynacl -> libsodium don't hang waiting for /dev/random
  5. config = TestPythonPackageBase.config + \
  6. """
  7. BR2_PACKAGE_PYTHON=y
  8. BR2_PACKAGE_PYTHON_PYNACL=y
  9. BR2_PACKAGE_HAVEGED=y
  10. """
  11. sample_scripts = ["tests/package/sample_python_pynacl.py"]
  12. timeout = 10
  13. class TestPythonPy3Pynacl(TestPythonPackageBase):
  14. __test__ = True
  15. # use haveged to generate enough entropy so pynacl -> libsodium don't hang waiting for /dev/random
  16. config = TestPythonPackageBase.config + \
  17. """
  18. BR2_PACKAGE_PYTHON3=y
  19. BR2_PACKAGE_PYTHON_PYNACL=y
  20. BR2_PACKAGE_HAVEGED=y
  21. """
  22. sample_scripts = ["tests/package/sample_python_pynacl.py"]
  23. timeout = 10