2019-02-19 16:43:10 +01:00
|
|
|
from tests.package.test_lua import TestLuaBase
|
|
|
|
|
|
|
|
|
|
|
|
class TestLuaLuaSocket(TestLuaBase):
|
|
|
|
config = TestLuaBase.config + \
|
|
|
|
"""
|
|
|
|
BR2_PACKAGE_LUA=y
|
|
|
|
BR2_PACKAGE_LUASOCKET=y
|
|
|
|
"""
|
|
|
|
|
|
|
|
def test_run(self):
|
|
|
|
self.login()
|
2019-03-31 08:48:45 +02:00
|
|
|
self.module_test("ltn12")
|
|
|
|
self.module_test("mime")
|
2019-02-19 16:43:10 +01:00
|
|
|
self.module_test("socket")
|
|
|
|
|
|
|
|
|
|
|
|
class TestLuajitLuaSocket(TestLuaBase):
|
|
|
|
config = TestLuaBase.config + \
|
|
|
|
"""
|
|
|
|
BR2_PACKAGE_LUAJIT=y
|
|
|
|
BR2_PACKAGE_LUASOCKET=y
|
|
|
|
"""
|
|
|
|
|
|
|
|
def test_run(self):
|
|
|
|
self.login()
|
2019-03-31 08:48:45 +02:00
|
|
|
self.module_test("ltn12")
|
|
|
|
self.module_test("mime")
|
2019-02-19 16:43:10 +01:00
|
|
|
self.module_test("socket")
|