support/testing: add test for python-gnupg

This commit add a simple test doing symmetric encryption/decryption
to check this python interface with the gpg binary is working fine.

Signed-off-by: Julien Olivain <ju.o@free.fr>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Julien Olivain
2022-01-16 11:41:14 +01:00
committed by Yann E. MORIN
parent ee228403e9
commit 9a79397fc5
3 changed files with 47 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
from tests.package.test_python import TestPythonPackageBase
class TestPythonPy2GnuPG(TestPythonPackageBase):
__test__ = True
config = TestPythonPackageBase.config + \
"""
BR2_PACKAGE_PYTHON=y
BR2_PACKAGE_PYTHON_GNUPG=y
"""
sample_scripts = ["tests/package/sample_python_gnupg.py"]
class TestPythonPy3GnuPG(TestPythonPackageBase):
__test__ = True
config = TestPythonPackageBase.config + \
"""
BR2_PACKAGE_PYTHON3=y
BR2_PACKAGE_PYTHON_GNUPG=y
"""
sample_scripts = ["tests/package/sample_python_gnupg.py"]