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:
Francois Perrad 2019-09-23 11:03:57 +02:00 committed by Thomas Petazzoni
parent fb0867c789
commit 101ae29c07
2 changed files with 61 additions and 0 deletions

View File

@ -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 }

View 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")