-
Notifications
You must be signed in to change notification settings - Fork 31
/
units.tests.lua
84 lines (65 loc) · 3.14 KB
/
units.tests.lua
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
require "tundra.syntax.glob"
require "tundra.path"
require "tundra.util"
-----------------------------------------------------------------------------------------------------------------------
local function Test(params)
Program {
Name = params.Name,
Env = {
CPPPATH = {
"api/include",
"src/external/jansson/include",
"src/external/foundation_lib",
"src/external/minifb/include",
"src/external/imgui",
"src/prodbg",
},
PROGCOM = {
{ "-lstdc++"; Config = { "macosx-clang-*", "linux-gcc-*" } },
{ "-lm -lrt -lpthread -ldl -lGL -lX11"; Config = "linux-*-*" },
},
},
Sources = {
params.Source,
},
Depends = params.Depends,
Libs = {
{ "Ws2_32.lib", "shell32.lib", "psapi.lib", "iphlpapi.lib", "wsock32.lib", "kernel32.lib", "user32.lib", "gdi32.lib", "Comdlg32.lib", "Advapi32.lib" ; Config = { "win32-*-*", "win64-*-*" } },
{ "X11", "GL" ; Config = { "linux-*-*" } },
},
Frameworks = {
{ "Cocoa" },
{ "Metal" },
{ "QuartzCore" },
{ "OpenGL" }
},
IdeGenerationHints = { Msvc = { SolutionFolder = "Tests" } },
}
end
-----------------------------------------------------------------------------------------------------------------------
local all_depends = { "uv", "api", "core", "stb", "remote_api", "cmocka", "session", "ui", "bgfx", "jansson", "lua", "imgui", "minifb", "scintilla", "tinyxml2", "foundation_lib", "i3wm_docking", "capstone" }
-----------------------------------------------------------------------------------------------------------------------
Test({ Name = "capstone_tests", Source = "src/prodbg/tests/capstone_tests.cpp", Depends = { "core", "stb", "uv", "cmocka", "foundation_lib", "jansson", "capstone"} })
Test({ Name = "core_tests", Source = "src/prodbg/tests/core_tests.cpp", Depends = { "core", "stb", "uv", "cmocka", "foundation_lib", "jansson"} })
Test({ Name = "lldb_tests", Source = "src/prodbg/tests/lldb_tests.cpp", Depends = all_depends})
Test({ Name = "readwrite_tests", Source = "src/prodbg/tests/readwrite_tests.cpp", Depends = all_depends})
Test({ Name = "remote_api_tests", Source = "src/prodbg/tests/remote_api_tests.cpp", Depends = all_depends})
Test({ Name = "session_tests", Source = "src/prodbg/tests/session_tests.cpp", Depends = all_depends})
Test({ Name = "ui_docking_tests", Source = "src/prodbg/tests/ui_docking_tests.cpp", Depends = all_depends})
Test({ Name = "ui_tests", Source = "src/prodbg/tests/ui_tests.cpp", Depends = all_depends})
Test({ Name = "dbgeng_tests", Source = "src/prodbg/tests/dbgeng_tests.cpp", Depends = all_depends })
Test({ Name = "c64_vice_tests", Source = "src/prodbg/tests/c64_vice_tests.cpp", Depends = all_depends })
Test({ Name = "rust_api_tests", Source = "src/prodbg/tests/rust_api_tests.cpp", Depends = all_depends })
-----------------------------------------------------------------------------------------------------------------------
Default "core_tests"
Default "lldb_tests"
Default "readwrite_tests"
Default "remote_api_tests"
Default "session_tests"
Default "ui_docking_tests"
Default "ui_tests"
Default "dbgeng_tests"
Default "c64_vice_tests"
Default "capstone_tests"
Default "rust_api_tests"
-- vim: ts=4:sw=4:sts=4