2019-06-12 21:09:28 +02:00
|
|
|
from tests.package.test_lua import TestLuaBase
|
|
|
|
|
|
|
|
|
|
|
|
class TestLuaLuasyslog(TestLuaBase):
|
|
|
|
config = TestLuaBase.config + \
|
|
|
|
"""
|
|
|
|
BR2_PACKAGE_LUA=y
|
|
|
|
BR2_PACKAGE_LUASYSLOG=y
|
|
|
|
"""
|
|
|
|
|
|
|
|
def test_run(self):
|
|
|
|
self.login()
|
2019-08-01 22:44:51 +02:00
|
|
|
self.module_test("lsyslog")
|
2019-06-12 21:09:28 +02:00
|
|
|
self.module_test("logging.syslog")
|
|
|
|
|
|
|
|
|
|
|
|
class TestLuajitLuasyslog(TestLuaBase):
|
|
|
|
config = TestLuaBase.config + \
|
|
|
|
"""
|
|
|
|
BR2_PACKAGE_LUAJIT=y
|
|
|
|
BR2_PACKAGE_LUASYSLOG=y
|
|
|
|
"""
|
|
|
|
|
|
|
|
def test_run(self):
|
|
|
|
self.login()
|
2019-08-01 22:44:51 +02:00
|
|
|
self.module_test("lsyslog")
|
2019-06-12 21:09:28 +02:00
|
|
|
self.module_test("logging.syslog")
|