[2/2] support/testing: add luaposix test
diff mbox series

Message ID 20190721085143.6857-2-francois.perrad@gadz.org
State Accepted
Commit a0b0976c93337b521ec7935bf536a00ff3896e0a
Headers show
Series
  • Untitled series #120521
Related show

Commit Message

Francois Perrad July 21, 2019, 8:51 a.m. UTC
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
---
 .../testing/tests/package/test_luaposix.py    | 81 +++++++++++++++++++
 1 file changed, 81 insertions(+)
 create mode 100644 support/testing/tests/package/test_luaposix.py

Comments

Peter Korsgaard Aug. 1, 2019, 8:12 a.m. UTC | #1
>>>>> "Francois" == Francois Perrad <fperrad@gmail.com> writes:

 > Signed-off-by: Francois Perrad <francois.perrad@gadz.org>

Committed, thanks.

> ---
 >  .../testing/tests/package/test_luaposix.py    | 81 +++++++++++++++++++
 >  1 file changed, 81 insertions(+)
 >  create mode 100644 support/testing/tests/package/test_luaposix.py

 > diff --git a/support/testing/tests/package/test_luaposix.py b/support/testing/tests/package/test_luaposix.py
 > new file mode 100644
 > index 000000000..0182faf2f
 > --- /dev/null
 > +++ b/support/testing/tests/package/test_luaposix.py
 > @@ -0,0 +1,81 @@
 > +from tests.package.test_lua import TestLuaBase
 > +
 > +
 > +class TestLuaLuaPosix(TestLuaBase):
 > +    config = TestLuaBase.config + \
 > +        """
 > +        BR2_PACKAGE_LUA=y
 > +        BR2_PACKAGE_LUAPOSIX=y
 > +        """
 > +
 > +    def test_run(self):
 > +        self.login()
 > +        self.module_test("posix.version", "print(require[[posix.version]])")
 > +        self.module_test("posix.ctype")
 > +        self.module_test("posix.dirent")
 > +        self.module_test("posix.errno")
 > +        self.module_test("posix.fcntl")
 > +        self.module_test("posix.fnmatch")
 > +        self.module_test("posix.glob")
 > +        self.module_test("posix.grp")
 > +        self.module_test("posix.libgen")
 > +        self.module_test("posix.poll")
 > +        self.module_test("posix.pwd")
 > +        self.module_test("posix.sched")
 > +        self.module_test("posix.signal")
 > +        self.module_test("posix.stdio")
 > +        self.module_test("posix.stdlib")
 > +        self.module_test("posix.sys.msg")
 > +        self.module_test("posix.sys.resource")
 > +        self.module_test("posix.sys.socket")
 > +        self.module_test("posix.sys.stat")
 > +        self.module_test("posix.sys.statvfs")
 > +        self.module_test("posix.sys.time")
 > +        self.module_test("posix.sys.times")
 > +        self.module_test("posix.sys.utsname")
 > +        self.module_test("posix.sys.wait")
 > +        self.module_test("posix.syslog")
 > +        self.module_test("posix.termio")
 > +        self.module_test("posix.time")
 > +        self.module_test("posix.unistd")
 > +        self.module_test("posix.utime")
 > +
 > +
 > +class TestLuajitLuaPosix(TestLuaBase):
 > +    config = TestLuaBase.config + \
 > +        """
 > +        BR2_PACKAGE_LUAJIT=y
 > +        BR2_PACKAGE_LUAPOSIX=y
 > +        """
 > +
 > +    def test_run(self):
 > +        self.login()
 > +        self.module_test("posix.version", "print(require[[posix.version]])")
 > +        self.module_test("posix.ctype")
 > +        self.module_test("posix.dirent")
 > +        self.module_test("posix.errno")
 > +        self.module_test("posix.fcntl")
 > +        self.module_test("posix.fnmatch")
 > +        self.module_test("posix.glob")
 > +        self.module_test("posix.grp")
 > +        self.module_test("posix.libgen")
 > +        self.module_test("posix.poll")
 > +        self.module_test("posix.pwd")
 > +        self.module_test("posix.sched")
 > +        self.module_test("posix.signal")
 > +        self.module_test("posix.stdio")
 > +        self.module_test("posix.stdlib")
 > +        self.module_test("posix.sys.msg")
 > +        self.module_test("posix.sys.resource")
 > +        self.module_test("posix.sys.socket")
 > +        self.module_test("posix.sys.stat")
 > +        self.module_test("posix.sys.statvfs")
 > +        self.module_test("posix.sys.time")
 > +        self.module_test("posix.sys.times")
 > +        self.module_test("posix.sys.utsname")
 > +        self.module_test("posix.sys.wait")
 > +        self.module_test("posix.syslog")
 > +        self.module_test("posix.termio")
 > +        self.module_test("posix.time")
 > +        self.module_test("posix.unistd")
 > +        self.module_test("posix.utime")
 > -- 
 > 2.20.1

 > _______________________________________________
 > buildroot mailing list
 > buildroot@busybox.net
 > http://lists.busybox.net/mailman/listinfo/buildroot

Patch
diff mbox series

diff --git a/support/testing/tests/package/test_luaposix.py b/support/testing/tests/package/test_luaposix.py
new file mode 100644
index 000000000..0182faf2f
--- /dev/null
+++ b/support/testing/tests/package/test_luaposix.py
@@ -0,0 +1,81 @@ 
+from tests.package.test_lua import TestLuaBase
+
+
+class TestLuaLuaPosix(TestLuaBase):
+    config = TestLuaBase.config + \
+        """
+        BR2_PACKAGE_LUA=y
+        BR2_PACKAGE_LUAPOSIX=y
+        """
+
+    def test_run(self):
+        self.login()
+        self.module_test("posix.version", "print(require[[posix.version]])")
+        self.module_test("posix.ctype")
+        self.module_test("posix.dirent")
+        self.module_test("posix.errno")
+        self.module_test("posix.fcntl")
+        self.module_test("posix.fnmatch")
+        self.module_test("posix.glob")
+        self.module_test("posix.grp")
+        self.module_test("posix.libgen")
+        self.module_test("posix.poll")
+        self.module_test("posix.pwd")
+        self.module_test("posix.sched")
+        self.module_test("posix.signal")
+        self.module_test("posix.stdio")
+        self.module_test("posix.stdlib")
+        self.module_test("posix.sys.msg")
+        self.module_test("posix.sys.resource")
+        self.module_test("posix.sys.socket")
+        self.module_test("posix.sys.stat")
+        self.module_test("posix.sys.statvfs")
+        self.module_test("posix.sys.time")
+        self.module_test("posix.sys.times")
+        self.module_test("posix.sys.utsname")
+        self.module_test("posix.sys.wait")
+        self.module_test("posix.syslog")
+        self.module_test("posix.termio")
+        self.module_test("posix.time")
+        self.module_test("posix.unistd")
+        self.module_test("posix.utime")
+
+
+class TestLuajitLuaPosix(TestLuaBase):
+    config = TestLuaBase.config + \
+        """
+        BR2_PACKAGE_LUAJIT=y
+        BR2_PACKAGE_LUAPOSIX=y
+        """
+
+    def test_run(self):
+        self.login()
+        self.module_test("posix.version", "print(require[[posix.version]])")
+        self.module_test("posix.ctype")
+        self.module_test("posix.dirent")
+        self.module_test("posix.errno")
+        self.module_test("posix.fcntl")
+        self.module_test("posix.fnmatch")
+        self.module_test("posix.glob")
+        self.module_test("posix.grp")
+        self.module_test("posix.libgen")
+        self.module_test("posix.poll")
+        self.module_test("posix.pwd")
+        self.module_test("posix.sched")
+        self.module_test("posix.signal")
+        self.module_test("posix.stdio")
+        self.module_test("posix.stdlib")
+        self.module_test("posix.sys.msg")
+        self.module_test("posix.sys.resource")
+        self.module_test("posix.sys.socket")
+        self.module_test("posix.sys.stat")
+        self.module_test("posix.sys.statvfs")
+        self.module_test("posix.sys.time")
+        self.module_test("posix.sys.times")
+        self.module_test("posix.sys.utsname")
+        self.module_test("posix.sys.wait")
+        self.module_test("posix.syslog")
+        self.module_test("posix.termio")
+        self.module_test("posix.time")
+        self.module_test("posix.unistd")
+        self.module_test("posix.utime")