Add base for simple expression unit tests

This commit is contained in:
Jan committed 2021-11-25 01:20:51 +01:00
1 parent c5475ce780
commit 7680f92ae1
5 files changed
+158 -2

No files matched your search

+53
View File
@@ -0,0 +1,53 @@
ParserTests = {}
function ParserTests:include(includes)
if includes:handle(self:name()) then
includedirs {
path.join(TestFolder(), "ParserTests")
}
end
end
function ParserTests:link(links)
end
function ParserTests:use()
end
function ParserTests:name()
return "ParserTests"
end
function ParserTests: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, "ParserTests/**.h"),
path.join(folder, "ParserTests/**.cpp")
}
vpaths {
["*"] = {
path.join(folder, "ParserTests")
}
}
self:include(includes)
ParserTestUtils:include(includes)
Parser:include(includes)
catch2:include(includes)
links:linkto(ParserTestUtils)
links:linkto(Parser)
links:linkall()
end