Files
buildroot/support/testing/tests/package/test_python_servestatic.py
Sebastian Michel 084bfa6e6d package/python-servestatic: new package
Added package for ServeStatic, version 4.3.2.
https://github.com/Archmonger/ServeStatic

Added a runtime test that verifies static-file responses through both
the WSGI and ASGI interfaces. Also verified that the installed
servestatic command-line entry point starts successfully.

Signed-off-by: Sebastian Michel <sebastian.michel@oss.othermo.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2026-10-03 19:34:21 +02:00

20 lines
519 B
Python

from tests.package.test_python import TestPythonPackageBase
class TestPythonServeStatic(TestPythonPackageBase):
__test__ = True
config = TestPythonPackageBase.config + \
"""
BR2_PACKAGE_PYTHON3=y
BR2_PACKAGE_PYTHON_SERVESTATIC=y
"""
sample_scripts = ["tests/package/sample_python_servestatic.py"]
def run_sample_scripts(self):
self.assertRunOk(
"servestatic --help | grep -q 'Process static files'"
)
super().run_sample_scripts()