mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-10 14:58:10 -05:00
Add base for menu parsing unit tests
This commit is contained in:
53
test/ObjLoadingTests.lua
Normal file
53
test/ObjLoadingTests.lua
Normal file
@ -0,0 +1,53 @@
|
||||
ObjLoadingTests = {}
|
||||
|
||||
function ObjLoadingTests:include(includes)
|
||||
if includes:handle(self:name()) then
|
||||
includedirs {
|
||||
path.join(TestFolder(), "ObjLoadingTests")
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
function ObjLoadingTests:link(links)
|
||||
|
||||
end
|
||||
|
||||
function ObjLoadingTests:use()
|
||||
|
||||
end
|
||||
|
||||
function ObjLoadingTests:name()
|
||||
return "ObjLoadingTests"
|
||||
end
|
||||
|
||||
function ObjLoadingTests:project()
|
||||
local folder = TestFolder()
|
||||
local includes = Includes:create()
|
||||
local links = Links:create()
|
||||
|
||||
project(self:name())
|
||||
targetdir(TargetDirectoryTest)
|
||||
location "%{wks.location}/test/%{prj.name}"
|
||||
kind "ConsoleApp"
|
||||
language "C++"
|
||||
|
||||
files {
|
||||
path.join(folder, "ObjLoadingTests/**.h"),
|
||||
path.join(folder, "ObjLoadingTests/**.cpp")
|
||||
}
|
||||
|
||||
vpaths {
|
||||
["*"] = {
|
||||
path.join(folder, "ObjLoadingTests")
|
||||
}
|
||||
}
|
||||
|
||||
self:include(includes)
|
||||
ParserTestUtils:include(includes)
|
||||
ObjLoading:include(includes)
|
||||
catch2:include(includes)
|
||||
|
||||
links:linkto(ParserTestUtils)
|
||||
links:linkto(ObjLoading)
|
||||
links:linkall()
|
||||
end
|
Reference in New Issue
Block a user