hc
2024-03-22 a0752693d998599af469473b8dc239ef973a012f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
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")
        self.module_test("posix")
 
 
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")
        self.module_test("posix")