package/python-pathspec: enable target variant

Also a runtime testcase is added.

Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
[yann.morin.1998@free.fr:
  - fix check-package
  - small codign style in test sample
]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Heiko Thiery
2024-04-12 07:44:22 +02:00
committed by Yann E. MORIN
parent 0b2967e158
commit 7fa769dae3
5 changed files with 56 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
from tests.package.test_python import TestPythonPackageBase
class TestPythonPathSpec(TestPythonPackageBase):
__test__ = True
config = TestPythonPackageBase.config + \
"""
BR2_PACKAGE_PYTHON3=y
BR2_PACKAGE_PYTHON_PATHSPEC=y
"""
sample_scripts = ["tests/package/sample_python_pathspec.py"]