support/testing: add lpeg test

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Francois Perrad 2019-02-19 16:43:02 +01:00 committed by Thomas Petazzoni
parent ecf6d005ba
commit ac2bfe7643
2 changed files with 27 additions and 0 deletions

View File

@ -326,6 +326,8 @@ tests.package.test_docker_compose.TestDockerCompose: { extends: .runtime_test }
tests.package.test_dropbear.TestDropbear: { extends: .runtime_test } tests.package.test_dropbear.TestDropbear: { extends: .runtime_test }
tests.package.test_ipython.TestIPythonPy2: { extends: .runtime_test } tests.package.test_ipython.TestIPythonPy2: { extends: .runtime_test }
tests.package.test_ipython.TestIPythonPy3: { extends: .runtime_test } tests.package.test_ipython.TestIPythonPy3: { extends: .runtime_test }
tests.package.test_lpeg.TestLuaLPeg: { extends: .runtime_test }
tests.package.test_lpeg.TestLuajitLPeg: { extends: .runtime_test }
tests.package.test_lua.TestLua: { extends: .runtime_test } tests.package.test_lua.TestLua: { extends: .runtime_test }
tests.package.test_lua.TestLuajit: { extends: .runtime_test } tests.package.test_lua.TestLuajit: { extends: .runtime_test }
tests.package.test_openjdk.TestOpenJdk: { extends: .runtime_test } tests.package.test_openjdk.TestOpenJdk: { extends: .runtime_test }

View File

@ -0,0 +1,25 @@
from tests.package.test_lua import TestLuaBase
class TestLuaLPeg(TestLuaBase):
config = TestLuaBase.config + \
"""
BR2_PACKAGE_LUA=y
BR2_PACKAGE_LPEG=y
"""
def test_run(self):
self.login()
self.module_test("lpeg", script="print(require[[lpeg]].version())")
class TestLuajitLPeg(TestLuaBase):
config = TestLuaBase.config + \
"""
BR2_PACKAGE_LUAJIT=y
BR2_PACKAGE_LPEG=y
"""
def test_run(self):
self.login()
self.module_test("lpeg", script="print(require[[lpeg]].version())")