support/testing: add lua-cqueues test
Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
fb0867c789
commit
101ae29c07
@ -381,6 +381,8 @@ tests.package.test_lsqlite3.TestLuaLsqlite3: { extends: .runtime_test }
|
||||
tests.package.test_lsqlite3.TestLuajitLsqlite3: { extends: .runtime_test }
|
||||
tests.package.test_lua.TestLua: { extends: .runtime_test }
|
||||
tests.package.test_lua.TestLuajit: { extends: .runtime_test }
|
||||
tests.package.test_lua_cqueues.TestLuaLuaCqueues: { extends: .runtime_test }
|
||||
tests.package.test_lua_cqueues.TestLuajitLuaCqueues: { extends: .runtime_test }
|
||||
tests.package.test_lua_curl.TestLuaLuacURL: { extends: .runtime_test }
|
||||
tests.package.test_lua_curl.TestLuajitLuacURL: { extends: .runtime_test }
|
||||
tests.package.test_lua_http.TestLuaHttp: { extends: .runtime_test }
|
||||
|
59
support/testing/tests/package/test_lua_cqueues.py
Normal file
59
support/testing/tests/package/test_lua_cqueues.py
Normal file
@ -0,0 +1,59 @@
|
||||
from tests.package.test_lua import TestLuaBase
|
||||
|
||||
|
||||
class TestLuaLuaCqueues(TestLuaBase):
|
||||
config = TestLuaBase.config + \
|
||||
"""
|
||||
BR2_PACKAGE_LUA=y
|
||||
BR2_PACKAGE_LUA_CQUEUES=y
|
||||
"""
|
||||
|
||||
def test_run(self):
|
||||
self.login()
|
||||
self.module_test("_cqueues")
|
||||
self.module_test("cqueues")
|
||||
self.module_test("cqueues.auxlib")
|
||||
self.module_test("cqueues.condition")
|
||||
self.module_test("cqueues.dns")
|
||||
self.module_test("cqueues.dns.config")
|
||||
self.module_test("cqueues.dns.hints")
|
||||
self.module_test("cqueues.dns.hosts")
|
||||
self.module_test("cqueues.dns.packet")
|
||||
self.module_test("cqueues.dns.record")
|
||||
self.module_test("cqueues.dns.resolver")
|
||||
self.module_test("cqueues.dns.resolvers")
|
||||
self.module_test("cqueues.errno")
|
||||
self.module_test("cqueues.notify")
|
||||
self.module_test("cqueues.promise")
|
||||
self.module_test("cqueues.signal")
|
||||
self.module_test("cqueues.socket")
|
||||
self.module_test("cqueues.thread")
|
||||
|
||||
|
||||
class TestLuajitLuaCqueues(TestLuaBase):
|
||||
config = TestLuaBase.config + \
|
||||
"""
|
||||
BR2_PACKAGE_LUAJIT=y
|
||||
BR2_PACKAGE_LUA_CQUEUES=y
|
||||
"""
|
||||
|
||||
def test_run(self):
|
||||
self.login()
|
||||
self.module_test("_cqueues")
|
||||
self.module_test("cqueues")
|
||||
self.module_test("cqueues.auxlib")
|
||||
self.module_test("cqueues.condition")
|
||||
self.module_test("cqueues.dns")
|
||||
self.module_test("cqueues.dns.config")
|
||||
self.module_test("cqueues.dns.hints")
|
||||
self.module_test("cqueues.dns.hosts")
|
||||
self.module_test("cqueues.dns.packet")
|
||||
self.module_test("cqueues.dns.record")
|
||||
self.module_test("cqueues.dns.resolver")
|
||||
self.module_test("cqueues.dns.resolvers")
|
||||
self.module_test("cqueues.errno")
|
||||
self.module_test("cqueues.notify")
|
||||
self.module_test("cqueues.promise")
|
||||
self.module_test("cqueues.signal")
|
||||
self.module_test("cqueues.socket")
|
||||
self.module_test("cqueues.thread")
|
Loading…
Reference in New Issue
Block a user