support/testing: add lua-cqueues test
authorFrancois Perrad <fperrad@gmail.com>
Mon, 23 Sep 2019 09:03:57 +0000 (11:03 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 29 Sep 2019 07:15:08 +0000 (09:15 +0200)
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
.gitlab-ci.yml
support/testing/tests/package/test_lua_cqueues.py [new file with mode: 0644]

index 4fe114cd853cd66dd90573e3c32b1ea8c93d5fcc..2b18a13d697d00cf09b707e412537d3104403bd9 100644 (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 }
diff --git a/support/testing/tests/package/test_lua_cqueues.py b/support/testing/tests/package/test_lua_cqueues.py
new file mode 100644 (file)
index 0000000..e823651
--- /dev/null
@@ -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")