Added unit tests

This commit is contained in:
Hannes Harnisch 2020-12-16 22:24:56 +01:00
parent c7d0b96a3f
commit 83864eecf4

View File

@ -1180,6 +1180,45 @@
]]
end
function suite.onCompileAsCppModuleInterface()
compileas 'C++ModuleInterface'
prepare()
test.capture [[
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<CompileAs>CompileAsCppModule</CompileAs>
</ClCompile>
]]
end
function suite.onCompileAsCppModulePartitionImplementation()
compileas 'C++ModulePartitionImplementation'
prepare()
test.capture [[
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<CompileAs>CompileAsCppModuleInternalPartition</CompileAs>
</ClCompile>
]]
end
function suite.onCompileAsCppHeaderUnit()
compileas 'C++HeaderUnit'
prepare()
test.capture [[
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<CompileAs>CompileAsHeaderUnit</CompileAs>
</ClCompile>
]]
end
--
-- Check handling of the C++14 & C++17 api