R2RDump - Test infrastructure (dotnet/coreclr#18745)
authorAmy <amycmyu@gmail.com>
Wed, 18 Jul 2018 19:26:36 +0000 (12:26 -0700)
committerGitHub <noreply@github.com>
Wed, 18 Jul 2018 19:26:36 +0000 (12:26 -0700)
commit10c32092f8df46c23433a2d13aee6d0f50641b91
tree9a7db48696643b10f28683ce06e0fd7de6facb67
parent0ee14d7d934b6202cadf9ae9dbb302b7714cb562
R2RDump - Test infrastructure (dotnet/coreclr#18745)

* Test infrastructure for R2RDump, compare xml and output diff

* Add R2RDumpTest to build-tests

* Fix errors causing tests to fail

* Create XUnitWrapper for R2RDumpTest

* Generate readytorun binaries from source code, copy expected xml output files to executable's directory

* Test R2RDump through commandline instead of calling R2RDump functions

* Fix errors

* Prevent duplicate xml tags

* Read test xml from string instead of file

* Fix test bugs

* Call dotnet r2rdump from msbuild

* Fix errors

* Use right slash for paths in bash

* Use different expected xml for different architectures

* R2RDumpTests for non-Windows

* Add more test cases

* Fix errors

* Supress warnings, avoid error when parsing x86 images

* Add license headers

Commit migrated from https://github.com/dotnet/coreclr/commit/eb622bef3851f8858db8d365454f1345e270dcd8
38 files changed:
src/coreclr/build.sh
src/coreclr/src/build.proj
src/coreclr/src/tools/r2rdump/Amd64/UnwindInfo.cs
src/coreclr/src/tools/r2rdump/CoreDisTools.cs
src/coreclr/src/tools/r2rdump/GCInfo.cs
src/coreclr/src/tools/r2rdump/GCSlotTable.cs
src/coreclr/src/tools/r2rdump/R2RDump.cs
src/coreclr/src/tools/r2rdump/R2RDump.csproj
src/coreclr/src/tools/r2rdump/R2RImportSection.cs
src/coreclr/src/tools/r2rdump/R2RMethod.cs
src/coreclr/src/tools/r2rdump/R2RReader.cs
src/coreclr/src/tools/r2rdump/R2RSection.cs
src/coreclr/src/tools/r2rdump/TextDumper.cs
src/coreclr/src/tools/r2rdump/XmlDumper.cs
src/coreclr/tests/src/readytorun/r2rdump/BasicTests.cs [new file with mode: 0644]
src/coreclr/tests/src/readytorun/r2rdump/R2RDumpTest.csproj [new file with mode: 0644]
src/coreclr/tests/src/readytorun/r2rdump/TestHelpers.cs [new file with mode: 0644]
src/coreclr/tests/src/readytorun/r2rdump/files/GcInfoTransitions.cs [new file with mode: 0644]
src/coreclr/tests/src/readytorun/r2rdump/files/GcInfoTransitions.csproj [new file with mode: 0644]
src/coreclr/tests/src/readytorun/r2rdump/files/GenericFunctions.cs [new file with mode: 0644]
src/coreclr/tests/src/readytorun/r2rdump/files/GenericFunctions.csproj [new file with mode: 0644]
src/coreclr/tests/src/readytorun/r2rdump/files/HelloWorld.cs [new file with mode: 0644]
src/coreclr/tests/src/readytorun/r2rdump/files/HelloWorld.csproj [new file with mode: 0644]
src/coreclr/tests/src/readytorun/r2rdump/files/MultipleRuntimeFunctions.cs [new file with mode: 0644]
src/coreclr/tests/src/readytorun/r2rdump/files/MultipleRuntimeFunctions.csproj [new file with mode: 0644]
src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x64.Checked/GcInfoTransitions.xml [new file with mode: 0644]
src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x64.Checked/GenericFunctions.xml [new file with mode: 0644]
src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x64.Checked/HelloWorld.xml [new file with mode: 0644]
src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x64.Checked/MultipleRuntimeFunctions.xml [new file with mode: 0644]
src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x86.Checked/GcInfoTransitions.xml [new file with mode: 0644]
src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x86.Checked/GenericFunctions.xml [new file with mode: 0644]
src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x86.Checked/HelloWorld.xml [new file with mode: 0644]
src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x86.Checked/MultipleRuntimeFunctions.xml [new file with mode: 0644]
src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x86.Release/GcInfoTransitions.xml [new file with mode: 0644]
src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x86.Release/GenericFunctions.xml [new file with mode: 0644]
src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x86.Release/HelloWorld.xml [new file with mode: 0644]
src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x86.Release/MultipleRuntimeFunctions.xml [new file with mode: 0644]
src/coreclr/tests/testsUnsupportedOutsideWindows.txt