<_XunitWrapperGen >
$(XUnitTestBinBase)\$(CategoryWithSlash)
$(MicrosoftNETCoreAppRuntimewinx64Version)
false
]]>
$([System.IO.Path]::GetRelativePath('$(XunitTestBinBase)', '$(_CMDDIR)'))
$([System.String]::Copy('$(CategoryWithSlash)').Replace('\','.'))
$([System.String]::Copy('$(CategoryWithSlash)').Replace('/','.'))
$(Category).XUnitWrapper
$(XunitWrapperGeneratedCSDirBase)$(Category)
android
apple
false
true
<_XunitProlog Condition=" '$(_XunitProlog)'=='' and '$(IsMobile)'=='false' ">
<_XunitProlog Condition=" '$(_XunitProlog)'=='' and '$(IsMobile)'=='true' ">
{
// This class has no code, and is never created. Its purpose is simply
// to be the place to apply [CollectionDefinition] and all the
// ICollectionFixture<> interfaces.
}
]]>
<_XunitEpilog Condition=" '$(_XunitEpilog)'=='' ">
testExecutable = testExecutable.Replace("\\", "/")%3B
$(Category)
$([MSBuild]::MakeRelative($(_CMDDIR), %(FullPath)))
$([MSBuild]::MakeRelative($(XunitTestBinBase), %(AllCMDs.FullPath)))
_$([MSBuild]::ValueOrDefault(%(AllCMDs.RelativeToCMDDIR),"").Replace(".","_").Replace("\","_").Replace("-","_"))
_$([MSBuild]::ValueOrDefault(%(AllCMDs.RelativeToCMDDIR),"").Replace($(TestScriptExtension),"").Replace(".","_").Replace("\","_").Replace("-","_"))
_$([MSBuild]::ValueOrDefault(%(AllCMDs.RelativeToCMDDIR),"").Replace(".","_").Replace("/","_").Replace("-","_"))
_$([MSBuild]::ValueOrDefault(%(AllCMDs.RelativeToCMDDIR), '').Replace($(TestScriptExtension),'').Replace('.','_').Replace('/','_').Replace('-','_'))
%(AllCMDs.TestGroup)
testOutput = new List()%3B
try
{
testOutput.AddRange(System.IO.File.ReadAllLines(errorFile))%3B
}
catch (Exception ex)
{
testOutput.Add("Unable to read error file: " + errorFile)%3B
testOutput.Add(ex.ToString())%3B
}
testOutput.Add(string.Empty)%3B
testOutput.Add("Return code: " + ret)%3B
testOutput.Add("Raw output file: " + outputFile)%3B
testOutput.Add("Raw output:")%3B
try
{
testOutput.AddRange(System.IO.File.ReadAllLines(outputFile))%3B
}
catch(Exception ex)
{
testOutput.Add("Unable to read output file: " + outputFile)%3B
testOutput.Add(ex.ToString())%3B
}
testOutput.Add("To run the test:")%3B
testOutput.Add("> set CORE_ROOT=" + _Global.coreRoot)%3B
testOutput.Add("> " + testExecutable)%3B
var unicodeControlCharsRegex = new Regex("%5C%5Cp{C}+")%3B
// Remove all characters that have no visual or spatial representation.
for (int i = 0%3B i < testOutput.Count%3B i++)
{
string line = testOutput[i]%3B
line = unicodeControlCharsRegex.Replace(line, string.Empty)%3B
testOutput[i] = line%3B
}
foreach (string line in testOutput)
{
output.WriteLine(line)%3B
}
Assert.True(ret == CoreclrTestWrapperLib.EXIT_SUCCESS_CODE, string.Join(Environment.NewLine, testOutput))%3B
}
}
}
]]>
testOutput = new List()%3B
try
{
testOutput.AddRange(System.IO.File.ReadAllLines(errorFile))%3B
}
catch (Exception ex)
{
testOutput.Add("Unable to read error file: " + errorFile)%3B
testOutput.Add(ex.ToString())%3B
}
testOutput.Add(string.Empty)%3B
testOutput.Add("Return code: " + ret)%3B
testOutput.Add("Raw output file: " + outputFile)%3B
testOutput.Add("Raw output:")%3B
try
{
testOutput.AddRange(System.IO.File.ReadAllLines(outputFile))%3B
}
catch(Exception ex)
{
testOutput.Add("Unable to read output file: " + outputFile)%3B
testOutput.Add(ex.ToString())%3B
}
testOutput.Add("To run the test:")%3B
testOutput.Add("> set CORE_ROOT=" + globalVar.coreRoot)%3B
testOutput.Add("> " + testExecutable)%3B
var unicodeControlCharsRegex = new Regex("%5C%5Cp{C}+")%3B
// Remove all characters that have no visual or spatial representation.
for (int i = 0%3B i < testOutput.Count%3B i++)
{
string line = testOutput[i]%3B
line = unicodeControlCharsRegex.Replace(line, string.Empty)%3B
testOutput[i] = line%3B
}
foreach (string line in testOutput)
{
output.WriteLine(line)%3B
}
// Add Android app running log to testOutput
if (ret != CoreclrTestWrapperLib.EXIT_SUCCESS_CODE)
{
string androidLogFile = System.IO.Path.Combine(outputDir, "adb-logcat-net.dot." + globalVar.category + "-net.dot.MonoRunner.log")%3B
if(File.Exists(androidLogFile))
{
testOutput.AddRange(System.IO.File.ReadAllLines(androidLogFile))%3B
}
}
Assert.True(ret == CoreclrTestWrapperLib.EXIT_SUCCESS_CODE, string.Join(Environment.NewLine, testOutput))%3B
}
}
}
]]>