mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-11-18 10:41:30 -10:00
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>
20 lines
519 B
Python
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()
|