Added unit tests
This commit is contained in:
parent
c7d0b96a3f
commit
83864eecf4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user