support/testing: add rings test
authorFrancois Perrad <fperrad@gmail.com>
Tue, 19 Feb 2019 15:43:11 +0000 (16:43 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 28 Mar 2019 16:20:00 +0000 (17:20 +0100)
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_rings.py [new file with mode: 0644]

index 4197b4d0b122e7a9ac40cf32a955c467ad41e53f..b89df337555c99684caaf6a9b030c28dec30173e 100644 (file)
@@ -404,6 +404,8 @@ tests.package.test_python_txtorcon.TestPythonPy2Txtorcon: { extends: .runtime_te
 tests.package.test_python_txtorcon.TestPythonPy3Txtorcon: { extends: .runtime_test }
 tests.package.test_python_ubjson.TestPythonPy2Ubjson: { extends: .runtime_test }
 tests.package.test_python_ubjson.TestPythonPy3Ubjson: { extends: .runtime_test }
+tests.package.test_rings.TestLuaRings: { extends: .runtime_test }
+tests.package.test_rings.TestLuajitRings: { extends: .runtime_test }
 tests.package.test_rust.TestRust: { extends: .runtime_test }
 tests.package.test_rust.TestRustBin: { extends: .runtime_test }
 tests.package.test_syslog_ng.TestSyslogNg: { extends: .runtime_test }
diff --git a/support/testing/tests/package/test_rings.py b/support/testing/tests/package/test_rings.py
new file mode 100644 (file)
index 0000000..be9765f
--- /dev/null
@@ -0,0 +1,25 @@
+from tests.package.test_lua import TestLuaBase
+
+
+class TestLuaRings(TestLuaBase):
+    config = TestLuaBase.config + \
+        """
+        BR2_PACKAGE_LUA=y
+        BR2_PACKAGE_RINGS=y
+        """
+
+    def test_run(self):
+        self.login()
+        self.module_test("rings")
+
+
+class TestLuajitRings(TestLuaBase):
+    config = TestLuaBase.config + \
+        """
+        BR2_PACKAGE_LUAJIT=y
+        BR2_PACKAGE_RINGS=y
+        """
+
+    def test_run(self):
+        self.login()
+        self.module_test("rings")