asan = 2019; fuzzer = 2022

This commit is contained in:
Chad Engler 2022-08-23 11:13:17 -07:00
parent b7ad535fc9
commit e4f8448719
No known key found for this signature in database
GPG Key ID: 447DF683B71FB0BE
2 changed files with 24 additions and 7 deletions

View File

@ -388,6 +388,21 @@ function suite.onSanitizeAddress_BeforeVS2019()
end
function suite.onSanitizeFuzzer()
p.action.set("vs2022")
sanitize { "Fuzzer" }
prepare()
test.capture [[
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<CharacterSet>Unicode</CharacterSet>
<PlatformToolset>v143</PlatformToolset>
<EnableFuzzer>true</EnableFuzzer>
</PropertyGroup>
]]
end
function suite.onSanitizeFuzzer_BeforeVS2022()
p.action.set("vs2019")
sanitize { "Fuzzer" }
prepare()
@ -397,26 +412,27 @@ function suite.onSanitizeFuzzer()
<UseDebugLibraries>false</UseDebugLibraries>
<CharacterSet>Unicode</CharacterSet>
<PlatformToolset>v142</PlatformToolset>
<EnableFuzzer>true</EnableFuzzer>
</PropertyGroup>
]]
end
function suite.onSanitizeFuzzer_BeforeVS2019()
p.action.set("vs2017")
sanitize { "Fuzzer" }
function suite.onSanitizeAddressFuzzer()
p.action.set("vs2022")
sanitize { "Address", "Fuzzer" }
prepare()
test.capture [[
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<CharacterSet>Unicode</CharacterSet>
<PlatformToolset>v141</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<EnableASAN>true</EnableASAN>
<EnableFuzzer>true</EnableFuzzer>
</PropertyGroup>
]]
end
function suite.onSanitizeAddressFuzzer()
function suite.onSanitizeAddressFuzzer_BeforeVS2022()
p.action.set("vs2019")
sanitize { "Address", "Fuzzer" }
prepare()
@ -427,7 +443,6 @@ function suite.onSanitizeAddressFuzzer()
<CharacterSet>Unicode</CharacterSet>
<PlatformToolset>v142</PlatformToolset>
<EnableASAN>true</EnableASAN>
<EnableFuzzer>true</EnableFuzzer>
</PropertyGroup>
]]
end

View File

@ -2513,6 +2513,8 @@
if table.contains(cfg.sanitize, "Address") then
m.element("EnableASAN", nil, "true")
end
end
if _ACTION >= "vs2022" and cfg.sanitize then
if table.contains(cfg.sanitize, "Fuzzer") then
m.element("EnableFuzzer", nil, "true")
end