diff options
author | Francois Perrad <fperrad@gmail.com> | 2019-02-19 16:43:02 +0100 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@bootlin.com> | 2019-03-28 17:20:00 +0100 |
commit | ac2bfe7643e0b9fd40e95e63bfc1a593789e9164 (patch) | |
tree | ccb8cee930df04cba7f4cec4d83b62941dd82253 /support | |
parent | ecf6d005ba91ae881e0d783f32599adb2fa4afe1 (diff) |
support/testing: add lpeg test
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'support')
-rw-r--r-- | support/testing/tests/package/test_lpeg.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/support/testing/tests/package/test_lpeg.py b/support/testing/tests/package/test_lpeg.py new file mode 100644 index 0000000000..e574157350 --- /dev/null +++ b/support/testing/tests/package/test_lpeg.py @@ -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())") |