You've already forked linux-packaging-mono
Imported Upstream version 5.2.0.175
Former-commit-id: bb0468d0f257ff100aa895eb5fe583fb5dfbf900
This commit is contained in:
parent
4bdbaf4a88
commit
966bba02bb
2
external/corert/tests/CoreCLR/Test.csproj
vendored
2
external/corert/tests/CoreCLR/Test.csproj
vendored
@@ -10,7 +10,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<!-- Some tests consist of multiple assemblies - make sure ILC sees them -->
|
||||
<IlcReference Include="$(MSBuildProjectDirectory)\*.dll" />
|
||||
<IlcCompileInput Include="$(MSBuildProjectDirectory)\*.dll" />
|
||||
</ItemGroup>
|
||||
|
||||
<Import Project="$(CoreRT_TestRoot)\Test.Common.targets" />
|
||||
|
||||
@@ -10,8 +10,6 @@
|
||||
@echo OFF
|
||||
setlocal ENABLEDELAYEDEXPANSION
|
||||
|
||||
echo CoreRT_ToolchainDir %CoreRT_ToolchainDir%
|
||||
|
||||
set TestFolder=%1
|
||||
|
||||
::
|
||||
@@ -37,8 +35,8 @@ if "%CoreRT_BuildArch%" == "x64" (
|
||||
call "%VS140COMNTOOLS%\..\..\VC\bin\amd64\vcvars64.bat"
|
||||
)
|
||||
|
||||
echo msbuild /ConsoleLoggerParameters:ForceNoAlign "/p:IlcPath=%CoreRT_ToolchainDir%" "/p:Configuration=%CoreRT_BuildType%" "/p:RepoLocalBuild=true" %TestFolder%\Test.csproj
|
||||
msbuild /ConsoleLoggerParameters:ForceNoAlign "/p:IlcPath=%CoreRT_ToolchainDir%" "/p:Configuration=%CoreRT_BuildType%" "/p:RepoLocalBuild=true" %TestFolder%\Test.csproj
|
||||
echo msbuild /ConsoleLoggerParameters:ForceNoAlign "/p:IlcPath=%CoreRT_ToolchainDir%" "/p:Configuration=%CoreRT_BuildType%" "/p:RepoLocalBuild=true" "/p:FrameworkLibPath=%~dp0..\..\bin\Product\%CoreRT_BuildOS%.%CoreRT_BuildArch%.%CoreRT_BuildType%\lib" "/p:FrameworkObjPath=%~dp0..\..\bin\obj\Product\%CoreRT_BuildOS%.%CoreRT_BuildArch%.%CoreRT_BuildType%\Framework" /p:DisableFrameworkLibGeneration=true %TestFolder%\Test.csproj
|
||||
msbuild /ConsoleLoggerParameters:ForceNoAlign "/p:IlcPath=%CoreRT_ToolchainDir%" "/p:Configuration=%CoreRT_BuildType%" "/p:RepoLocalBuild=true" "/p:FrameworkLibPath=%~dp0..\..\bin\Product\%CoreRT_BuildOS%.%CoreRT_BuildArch%.%CoreRT_BuildType%\lib" "/p:FrameworkObjPath=%~dp0..\..\bin\obj\Product\%CoreRT_BuildOS%.%CoreRT_BuildArch%.%CoreRT_BuildType%\Framework" /p:DisableFrameworkLibGeneration=true %TestFolder%\Test.csproj
|
||||
if errorlevel 1 (
|
||||
set TestExitCode=!ERRORLEVEL!
|
||||
goto :Cleanup
|
||||
|
||||
23
external/corert/tests/CoreCLR/corerun
vendored
23
external/corert/tests/CoreCLR/corerun
vendored
@@ -8,22 +8,39 @@
|
||||
export TestExecutable=$1
|
||||
export TestFileName=${TestExecutable%.*}
|
||||
|
||||
source "$CoreRT_TestRoot/coredump_handling.sh"
|
||||
|
||||
if [[ $CoreRT_EnableCoreDumps == 1 ]]; then
|
||||
set_up_core_dump_generation
|
||||
fi
|
||||
|
||||
cp $CoreRT_TestRoot/CoreCLR/Test.csproj .
|
||||
|
||||
__msbuild_dir=${CoreRT_TestRoot}/../Tools
|
||||
echo ${__msbuild_dir}/msbuild.sh /m /p:IlcPath=${CoreRT_ToolchainDir} /p:Configuration=${CoreRT_BuildType} Test.csproj
|
||||
${__msbuild_dir}/msbuild.sh /m /p:IlcPath=${CoreRT_ToolchainDir} /p:Configuration=${CoreRT_BuildType} Test.csproj
|
||||
|
||||
# Some tests (interop) have native artifacts they depend on. Copy all DLLs to be sure we have them.
|
||||
cp *.dll native/ 2>/dev/null
|
||||
if [[ $CoreRT_EnableCoreDumps == 1 ]]; then
|
||||
# Handle any core files generated when running the test IL through the toolchain.
|
||||
inspect_and_delete_core_files $CoreRT_ToolchainDir/corerun "$CoreRT_ToolchainDir"
|
||||
fi
|
||||
|
||||
# Remove the test executable from the arg list so it isn't passed to test execution
|
||||
shift
|
||||
|
||||
native/${TestFileName} $*
|
||||
if [[ ! -f native/${TestFileName} ]]; then
|
||||
echo "ERROR: Native binary not found. Unable to run test."
|
||||
exit -1
|
||||
fi
|
||||
|
||||
native/${TestFileName} "$@"
|
||||
testScriptExitCode=$?
|
||||
|
||||
if [[ $CoreRT_EnableCoreDumps == 1 ]]; then
|
||||
# Handle any core files generated when running the test.
|
||||
inspect_and_delete_core_files native/$TestFileName "$CoreRT_ToolchainDir"
|
||||
fi
|
||||
|
||||
# Clean up test binary artifacts to save space
|
||||
rm -r native 2>/dev/null
|
||||
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
Switching to the .NET Core version of the BuildTools tasks seems to break numerous scenarios, such as VS intellisense and resource designer
|
||||
as well as runnning the build on mono. Until we can get these sorted out we will continue using the .NET 4.5 version of the tasks.
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<BuildToolsTargets45>true</BuildToolsTargets45>
|
||||
<PropertyGroup>
|
||||
<BuildToolsTargetsDesktop>true</BuildToolsTargetsDesktop>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Common repo directories -->
|
||||
@@ -29,7 +29,7 @@
|
||||
<PackagesDir>$(ProjectDir)..\..\..\packages\</PackagesDir>
|
||||
<ToolsDir Condition="'$(ToolsDir)'==''">$(ProjectDir)..\Tools\</ToolsDir>
|
||||
<DotnetCliPath Condition="'$(DotnetCliPath)'==''">$(ToolsDir)dotnetcli/</DotnetCliPath>
|
||||
<BuildToolsTaskDir Condition="'$(BuildToolsTargets45)' == 'true'">$(ToolsDir)net45/</BuildToolsTaskDir>
|
||||
<BuildToolsTaskDir Condition="'$(BuildToolsTargetsDesktop)' == 'true'">$(ToolsDir)net46/</BuildToolsTaskDir>
|
||||
<SkipImportILTargets>true</SkipImportILTargets>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
25
external/corert/tests/CoreCLR/runtest/runtest.sh
vendored
25
external/corert/tests/CoreCLR/runtest/runtest.sh
vendored
@@ -118,14 +118,6 @@ case $OSName in
|
||||
;;
|
||||
esac
|
||||
|
||||
# clean up any existing dumpling remnants from previous runs.
|
||||
dumplingsListPath="$PWD/dumplings.txt"
|
||||
if [ -f "$dumplingsListPath" ]; then
|
||||
rm "$dumplingsListPath"
|
||||
fi
|
||||
|
||||
find . -type f -name "local_dumplings.txt" -exec rm {} \;
|
||||
|
||||
function xunit_output_begin {
|
||||
xunitOutputPath=$__LogDir/testResults.xml
|
||||
xunitTestOutputPath=${xunitOutputPath}.test
|
||||
@@ -601,7 +593,7 @@ function print_info_from_core_file {
|
||||
|
||||
function download_dumpling_script {
|
||||
echo "Downloading latest version of dumpling script."
|
||||
wget "https://raw.githubusercontent.com/Microsoft/dotnet-reliability/master/src/triage.python/dumpling.py"
|
||||
wget "https://dumpling.azurewebsites.net/api/client/dumpling.py"
|
||||
|
||||
local dumpling_script="dumpling.py"
|
||||
chmod +x $dumpling_script
|
||||
@@ -632,8 +624,11 @@ function upload_core_file_to_dumpling {
|
||||
paths_to_add=$coreClrBinDir
|
||||
fi
|
||||
|
||||
# Ensure the script has Unix line endings
|
||||
perl -pi -e 's/\r\n|\n|\r/\n/g' "$dumpling_script"
|
||||
|
||||
# The output from this will include a unique ID for this dump.
|
||||
./$dumpling_script "--corefile" "$core_file_name" "upload" "--addpaths" $paths_to_add "--squelch" | tee -a $dumpling_file
|
||||
./$dumpling_script "upload" "--dumppath" "$core_file_name" "--incpaths" $paths_to_add "--properties" "Project=CoreCLR" "--squelch" | tee -a $dumpling_file
|
||||
}
|
||||
|
||||
function preserve_core_file {
|
||||
@@ -1203,6 +1198,13 @@ fi
|
||||
export __TestEnv=$testEnv
|
||||
|
||||
cd "$testRootDir"
|
||||
|
||||
dumplingsListPath="$testRootDir/dumplings.txt"
|
||||
|
||||
# clean up any existing dumpling remnants from previous runs.
|
||||
rm -f "$dumplingsListPath"
|
||||
find $testRootDir -type f -name "local_dumplings.txt" -exec rm {} \;
|
||||
|
||||
time_start=$(date +"%s")
|
||||
if [ -z "$testDirectories" ]
|
||||
then
|
||||
@@ -1224,8 +1226,7 @@ finish_remaining_tests
|
||||
|
||||
print_results
|
||||
|
||||
echo "constructing $dumplingsListPath"
|
||||
find . -type f -name "local_dumplings.txt" -exec cat {} \; > $dumplingsListPath
|
||||
find $testRootDir -type f -name "local_dumplings.txt" -exec cat {} \; > $dumplingsListPath
|
||||
|
||||
if [ -s $dumplingsListPath ]; then
|
||||
cat $dumplingsListPath
|
||||
|
||||
Reference in New Issue
Block a user