cp $CORE_ROOT/lib*.so $CORE_ROOT/lib*.dylib $(scriptPath)
else
cp *.dll IL-CG2/
- rm IL-CG2/composite-r2r.dll
+ rm IL-CG2/composite-r2r.dll 2>/dev/null
fi
ExtraCrossGen2Args+=" $(CrossGen2TestExtraArguments)"
__cg2ExitCode=0
OneFileCrossgen2() {
+ date +%H:%M:%S
__OutputFile=$1
__ResponseFile="$__OutputFile.rsp"
- rm $__ResponseFile
+ rm $__ResponseFile 2>/dev/null
__Command=$_DebuggerFullPath
# Tests run locally need __TestDotNetCmd (set by runtest.py) or a compatible 5.0 dotnet runtime in the path
__cg2ExitCode=$?
export COMPlus_GCName COMPlus_GCStress COMPlus_HeapVerify COMPlus_ReadyToRun COMPlus_TC_OnStackReplacement COMPlus_TC_PartialCompilation
+ date +%H:%M:%S
}
if [ ! -z ${CompositeBuildMode+x} ]%3B then
mkdir IL-CG2
copy *.dll IL-CG2\
- del IL-CG2\composite-r2r.dll
+ del IL-CG2\composite-r2r.dll 2>nul
if defined CompositeBuildMode (
set ExtraCrossGen2Args=!ExtraCrossGen2Args! --composite
goto :DoneCrossgen2Operations
:CompileOneFileCrossgen2
+ echo %time%
set __ResponseFile=!__OutputFile!.rsp
- del /Q !__ResponseFile!
+ del /Q !__ResponseFile! 2>nul
set __Command=!_DebuggerFullPath!
REM Tests run locally need __TestDotNetCmd (set by runtest.py) or a compatible 5.0 dotnet runtime in the path
call !__Command!
endlocal
set CrossGen2Status=!ERRORLEVEL!
+ echo %time%
Exit /b 0
:DoneCrossgen2Operations
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
testExecutable = Path.Combine(baseDir, Path.ChangeExtension(assemblyPath.Replace("\\", "/"), ".sh"));
}
+ if (!File.Exists(testExecutable))
+ {
+ // Skip platform-specific test when running on the excluded platform
+ return;
+ }
+
System.IO.Directory.CreateDirectory(outputDir);
ret = wrapper.RunTest(testExecutable, outputFile, errorFile, Assembly.GetEntryAssembly()!.FullName!, testBinaryBase, outputDir);
builder.AppendLine($"System.TimeSpan testStart = stopwatch.Elapsed;");
builder.AppendLine("try {");
- builder.AppendLine($"System.Console.WriteLine(\"Running test: {{0}}\", {test.TestNameExpression});");
+ builder.AppendLine($"System.Console.WriteLine(\"{{0:HH:mm:ss.fff}} Running test: {{1}}\", System.DateTime.Now, {test.TestNameExpression});");
builder.AppendLine($"{_outputRecorderIdentifier}.ResetTestOutput();");
builder.AppendLine(testExecutionExpression);
builder.AppendLine($"{_summaryLocalIdentifier}.ReportPassedTest({test.TestNameExpression}, \"{test.ContainingType}\", @\"{test.Method}\", stopwatch.Elapsed - testStart, {_outputRecorderIdentifier}.GetTestOutput());");
- builder.AppendLine($"System.Console.WriteLine(\"Passed test: {{0}}\", {test.TestNameExpression});");
+ builder.AppendLine($"System.Console.WriteLine(\"{{0:HH:mm:ss.fff}} Passed test: {{1}}\", System.DateTime.Now, {test.TestNameExpression});");
builder.AppendLine("}");
builder.AppendLine("catch (System.Exception ex) {");
builder.AppendLine($"{_summaryLocalIdentifier}.ReportFailedTest({test.TestNameExpression}, \"{test.ContainingType}\", @\"{test.Method}\", stopwatch.Elapsed - testStart, ex, {_outputRecorderIdentifier}.GetTestOutput());");
- builder.AppendLine($"System.Console.WriteLine(\"Failed test: {{0}}\", {test.TestNameExpression});");
+ builder.AppendLine($"System.Console.WriteLine(\"{{0:HH:mm:ss.fff}} Failed test: {{1}}\", System.DateTime.Now, {test.TestNameExpression});");
builder.AppendLine("}");
builder.AppendLine("}");
</Target>
<Target Name="CopyAllNativeProjectReferenceBinaries"
- DependsOnTargets="ResolveCMakeNativeProjectReference;ConsolidateNativeProjectReference">
+ DependsOnTargets="ResolveCMakeNativeProjectReference;ConsolidateNativeProjectReference"
+ BeforeTargets="Build">
<ItemGroup Condition="'$(IsMergedTestRunnerAssembly)' == 'true'">
- <MergedWrapperReferenceFolders Include="@(ProjectReference->'$([System.IO.Path]::GetFullPath('%(ProjectReference.Identity)/..', '$(OutDir)/..'))/%(ProjectReference.FileName)')" />
+ <OutOfProcessTestMarkers Include="$(OutDir)/../**/*.OutOfProcessTest" />
+ <OutOfProcessTestFolders Include="$([MSBuild]::NormalizePath('$([System.IO.Path]::GetDirectoryName('%(OutOfProcessTestMarkers.FullPath)'))'))" Condition="'@(OutOfProcessTestMarkers)' != ''" />
+ <MergedWrapperReferenceFolders Include="@(ProjectReference->'$([MSBuild]::NormalizePath('$([System.IO.Path]::GetFullPath('%(ProjectReference.Identity)/..', '$(OutDir)/..'))/%(ProjectReference.FileName)'))')" />
+ <!-- Don't copy out-of-process test components to the merged wrapper output folder -->
+ <MergedWrapperReferenceFolders Remove="@(OutOfProcessTestFolders)" />
<!-- For merged project wrappers, include native libraries in all project references -->
- <MergedWrapperReferenceFiles Include="%(MergedWrapperReferenceFolders.Identity)/*$(LibSuffix)" />
+ <MergedWrapperReferenceFiles Include="%(MergedWrapperReferenceFolders.Identity)/*$(LibSuffix)" Condition="'@(MergedWrapperReferenceFolders)' != ''" />
</ItemGroup>
<Copy SourceFiles="@(MergedWrapperReferenceFiles)"
DestinationFiles="@(MergedWrapperReferenceFiles->'$(OutDir)/%(FileName)%(Extension)')"
<PropertyGroup>
<DebugType>PdbOnly</DebugType>
<JitOptimizationSensitive>true</JitOptimizationSensitive>
+ <RequiresProcessIsolation>true</RequiresProcessIsolation>
</PropertyGroup>
<ItemGroup>
<Compile Include="arrres.il" />
</PropertyGroup>
<PropertyGroup>
<JitOptimizationSensitive>true</JitOptimizationSensitive>
+ <RequiresProcessIsolation>true</RequiresProcessIsolation>
</PropertyGroup>
<ItemGroup>
<Compile Include="hijacking.il" />
<ExcludeList Include="$(XunitTestBinBase)/JIT/Methodical/refany/lcs_il_r/**">
<Issue>https://github.com/dotnet/runtime/issues/34196</Issue>
</ExcludeList>
+ <ExcludeList Include = "$(XunitTestBinBase)/JIT/Methodical/tailcall/compat_i4_u_il_d/**">
+ <Issue>https://github.com/dotnet/runtime/issues/67756</Issue>
+ </ExcludeList>
+ <ExcludeList Include = "$(XunitTestBinBase)/JIT/Methodical/tailcall/compat_i4_u_il_r/**">
+ <Issue>https://github.com/dotnet/runtime/issues/67756</Issue>
+ </ExcludeList>
<ExcludeList Include="$(XunitTestBinBase)JIT/Methodical/tailcall_v4/hijacking/**">
<Issue>needs triage</Issue>
</ExcludeList>
<FilteredExcludeList
Include="$([System.IO.Path]::GetRelativePath('$(XunitTestBinBase)', '%(ExcludeList.FullPath)'))"
Condition="'%(ExcludeList.Extension)' == '.dll'" />
+ <FilteredExcludeList Include="$([System.IO.Path]::ChangeExtension('$([System.IO.Path]::GetRelativePath('$(XunitTestBinBase)', '%(ExcludeList.RootDir)%(ExcludeList.Directory)%(ExcludeList.FileName)'))', '.cmd'))"
+ Condition="'%(ExcludeList.Extension)' == '.OutOfProcessTest'" />
</ItemGroup>
</Target>
</Project>
if args.skip_test_run:
return
- # Set default per-test timeout to 15 minutes (in milliseconds).
- per_test_timeout = 15*60*1000
+ # Set default per-test timeout to 30 minutes (in milliseconds).
+ per_test_timeout = 30*60*1000
# Setup the environment
if args.long_gc: