Readding unit tests for xex->exe target extension changes
This commit is contained in:
parent
871022f442
commit
5e3c8d59f8
@ -74,10 +74,26 @@
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Xbox 360'">
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
<OutDir>.\</OutDir>
|
||||
<OutputFile>$(OutDir)MyProject.xex</OutputFile>
|
||||
<OutputFile>$(OutDir)MyProject.exe</OutputFile>
|
||||
<IntDir>obj\Debug\</IntDir>
|
||||
<TargetName>MyProject</TargetName>
|
||||
<TargetExt>.xex</TargetExt>
|
||||
<TargetExt>.exe</TargetExt>
|
||||
<ImageXexOutput>$(OutDir)$(TargetName).xex</ImageXexOutput>
|
||||
</PropertyGroup>
|
||||
]]
|
||||
end
|
||||
|
||||
function suite.staticLibStructureIsCorrect_onXbox360()
|
||||
system "Xbox360"
|
||||
kind "StaticLib"
|
||||
prepare()
|
||||
test.capture [[
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Xbox 360'">
|
||||
<OutDir>.\</OutDir>
|
||||
<OutputFile>$(OutDir)MyProject.lib</OutputFile>
|
||||
<IntDir>obj\Debug\</IntDir>
|
||||
<TargetName>MyProject</TargetName>
|
||||
<TargetExt>.lib</TargetExt>
|
||||
<ImageXexOutput>$(OutDir)$(TargetName).xex</ImageXexOutput>
|
||||
</PropertyGroup>
|
||||
]]
|
||||
|
@ -220,16 +220,22 @@
|
||||
|
||||
|
||||
--
|
||||
-- Name should use ".xex" for Xbox360 executables.
|
||||
-- Name should use ".exe" for Xbox360 executables.
|
||||
--
|
||||
|
||||
function suite.nameUsesExe_onWindowsConsoleApp()
|
||||
kind "ConsoleApp"
|
||||
system "Xbox360"
|
||||
i = prepare()
|
||||
test.isequal("MyProject.xex", i.name)
|
||||
test.isequal("MyProject.exe", i.name)
|
||||
end
|
||||
|
||||
function suite.nameUsesLib_onXbox360StaticLib()
|
||||
kind "StaticLib"
|
||||
system "Xbox360"
|
||||
i = prepare()
|
||||
test.isequal("MyProject.lib", i.name)
|
||||
end
|
||||
|
||||
--
|
||||
-- Name should use a prefix if set.
|
||||
|
Reference in New Issue
Block a user