Commit Graph
36 Commits
Author SHA1 Message Date
Aaron Robinson 6fe1a80959 Use CMakeProjectReference instead of ProjectReference (#66202)
* Use CMakeProjectReference instead of ProjectReference

Changing this permits usage of "\runtime\dotnet.cmd build" as opposed
  to forcing users to use "\runtime\dotnet.cmd msbuild".
2022-03-04 19:40:27 -08:00
Jeremy KoritzinskyandAaron Robinson 7099f4b12a Use reflection or a compile-time only shim assembly to reference unexposed corelib types. (#61802)
Co-authored-by: Aaron Robinson <[email protected]>
2021-11-19 19:28:42 -08:00
Tomáš Rylek 3b40c7cfc4 Add support for building just a subset of runtime tests (#57142)
This change adds four new options to the runtime test build command:

1) test <test project path relative to src\tests> - build just that
one test.

2) dir <directory relative to src\tests> - build all tests in the
directory.

3) tree <directory relative to src\tests> - build all tests in the
given subtree.

4) all - use clean rebuild (i.e. don't apply incrementalism)
when building the tests.

Thanks

Tomas
2021-08-12 15:54:17 +02:00
Jeremy Koritzinsky 3dc99e900b Build C++/CLI tests as .NET Core C++/CLI (#56502)
* Build IJW assemblies against LKG SDK ref pack.

* Allow building against the live ref assemblies by passing `-cmakeargs -DCPP_CLI_LIVE_REF_ASSEMBLIES=1` to the test build script.

* Add test instructions

* Error handling

* Add support for the stdcall-mangled _CorDllMain entrypoint on x86 since MSVC uses it if it exists.

* Write out ref-pack path.
2021-08-02 16:53:48 +00:00
Elinor Fung 189829cbf6 Use simpler command in example for building individual coreclr test (#51364)
* Use simpler command in example for building individual coreclr test

* Remove comment about using 'dotnet msbuild'
2021-04-16 10:56:28 -07:00
Elinor Fung 5ca4992150 Clarify instructions for building individual test with native dependency (#50869) 2021-04-07 13:59:03 -07:00
Elinor Fung 5738f60553 Update coreclr test doc to call out LibrariesConfiguration (#50002)
Include build configuration in error message about missing artifacts
2021-03-22 18:02:26 -07:00
Viktor Hofer 3553284bea Rename mention to master branch to main (#48824) 2021-03-01 10:09:31 +01:00
Jan Kotas 10381a2cdc Find&Replace coreclr/src -> coreclr (#45761) 2020-12-08 10:40:17 -08:00
Andrew Au f7530ff152 Fixes paths (#45392) 2020-12-02 17:59:50 -08:00
Elinor Fung 8de9e3b8a0 Add example to test doc for generating Core_Root without building tests (#44504) 2020-11-13 00:46:13 -08:00
Anirudh Agnihotry b37f10a504 Changing Windows_NT -> Windows for enabling TargetPlatformMoniker feature of the sdk for platform specific tfms. (#43651)
* eng change

* coreclr change

* libraries change

* tests change

* installer & mono change

* py files changed

* .md change

* .yml change

* remove redundant targetos property

* Windows_NT -> windows after ninja change

* fixing runtime build failure
2020-11-02 14:25:58 -08:00
Adeel Mujahid 4486164506 Fix various typos (#43073)
* Fix various typos
* `occurence`, `occurance` -> `occurrence`
* `accross` -> `across`
* `adddress`, `addresss` -> `address`
* `alignement`, `aligment` -> `alignment`
* Remove `c` from triple c.
* Remove `s` from triple s.
  * In palsuite, `Successs` (with triple s) was in commented out
    `Trace()` message, removed all commented out `Trace()` calls
    from such files.
* Fix invalid markdown in `unix-test-instructions.md`.

* Revert event source change
2020-10-10 01:54:53 -04:00
Tomáš Rylek bafb24c061 Update docs and comments to reflect the renames around build-test and runtest scripts (#42708)
* Move the script runtesttilstable.sh under src/tests

* Update most references to build-test / runtest in the runtime repo

With this change I can't find any remaining orphaned references to
the old script names except for a few superpmi-related scripts
I need to follow up on separately as I'm not too familiar with
their functionality.

Thanks

Tomas
2020-09-25 14:28:59 +02:00
David Wrighton 0c36a9a209 Run PAL tests in CI (#42049)
Refactor the PAL test framework to be useable in our CI system, and enable it for testing

The existing PAL tests are problematic in a few ways for our CI.
1. They are large in terms of disk space used per test, this interferes with building them properly, especially as they are part of the product build, and not of the test build
2. While part of the product build, the option to build them was well hidden.
3. The tests are not related to our existing tests, and in particular are not driven from managed xunit wrappers.

The change here has 4 components
1. Reduce the volume of the binaries such that they can be passed from a product build to a test job effectively. This is done by merging all tests which are not strictly dependent on secondary libraries.
  - This was done via a tool which parsed and replaced all of the CMakeFiles.txt 
  - And then manual editing to remove all duplicate global symbols
2. The build flag for building the tests has been exposed as a first class option to build-runtime, as well as through the subset mechanism. As of this change, developers who wish to build the tests should use the clr.paltests subset to build the tests.
3. As the tests do not have normal xunit wrappers, but they *do* have a script which will generate xunit output, they cannot quite be run in the existing helix pathway. Add a separate path for launch the appropriate helix workitem as part of outerloop test runs.
4. A new issue exclusion mechanism has been built. Add exclusions by modifying src/coreclr/src/pal/tests/palsuite/issues.targets
  - There are a number of failures in the current test suite that should probably be investigated, but making meaningful changes to the tests should not be part of this change.
2020-09-16 12:55:59 -07:00
Youssef VictorandJan Kotas d14b50ae21 Fix trailing whitespaces (#40891)
* Trim trailing whitespaces

* Match raw with rendered

* Delete extra asterisks and |

* Update ELT Hooks - tail calls.md

Co-authored-by: Jan Kotas <[email protected]>
2020-08-19 17:29:01 -07:00
Stephen Toub 117c9d6e85 Fix a few more license headers (#38973)
* Fix a few more license headers

I missed a few directories outside of src.

* Update Directory.Build.props
2020-07-09 11:32:01 -04:00
Ivan Diaz Sanchez 8b67e34eb7 Added doc with instructions to run ASP.NET Benchmarks with crossgen2 (#38695)
* Added doc with instructions on running basic ASP.NET Benchmarks with crossgen2.

* Shortened clr+libs command in Asp.Net Benchmarks doc.
2020-07-02 16:05:39 -07:00
+89 9e09fe3c26 Dev infra master merge1 (#37274)
* Build all managed coreclr tests on OSX in CI (#36253)

Remove concept of targetGeneric and targetSpecific

Add OSX corelcr managed tests builds to all pipes
Remove all other platform coreclr managed test build

Remove property `TestUnsupportedOutsideWindows`
Rename conditional `DisableProjectBuild` to `CLRTestTargetUnsupported`

Refactor tests to allow all managed tests to be built on OSX.

Split managed tests which based on target properties conditionally:
+ `<Compile Include/>`
+ `<DefineConstant/>`

This creates a separate test for each target configuration permutation.

Add `<CLRTestTargetUnsupported/>` conditions to select these at build and/or
run time

Append split tests with `_Target*` to identify intended test target

For tests which depend on target specific internal details od System.Private.Corlib,
expose a dummy implementation for unsupported targets.

Clean up

Remove <TraitTags/>
Remove <CLRTestNeedTarget/>
Remove managedOSXBuild
Remove managedTestBuildOsGroup
Remove managedTestBuildOsSubGroup

Use issues.target to disable expected failures

Some tests are configured to run on a targets with
specific charecteristics.

Use issues.targets to conditionally disable tests
not intended to run on all targets.

* Setup pr and batch runs for dev/infrsatructure (#36218) (#36299)

Co-authored-by: Jarret Shook <[email protected]>

* Add alias CoreClrTestBuildHost (#36256)

* Add alias CoreClrTestBuildHost

Intended to allow easy switching of test build host between OSX_x64 & Linux_x64
depending on availablility and reliability.

* Add missing issues.targets from #36253 (#36351)

* Add missing issues.targets from #36253

PR #36253 enabled building all tests on OSX. It was intended to include this list of
tests to disable on unsupported platforms. This was dropped as part of rebasing for
dev/infra branch.

Lack of CI on dev/infra allowed this to be missed.

* Revise issues.targets

* Add src/coreclr/tests/src/baseservices/typeequivalence/simple

* Remove #if Windows from DllImportPathTest

* Build scripts while copying native binaries (#36482)

* Build scripts while copying native binaries

Stop building test scripts during the managed build phase
Build after copying the native targets

Fixes issues relative to building scripts on OSX

* Fix superpmi script generation

* Cleanup issues.targets

* Keep 6 failing IJW tests

* Fix IJW when managed tests are built on OSX (#36711)

* Fix IJW when managed tests are built on OSX

- Refactor Interop.setting.targets to Directory.Build.{targets,props}
- Remove include Interop.setting.targets from interop projects rely on SDK including
    Directory.Build.* automatically
- Add new CopyInteropNativeRuntimeDependencies target for copying IJW dependencies
  * Add <Copy/> task
- Delete obsolete instruction in Interop/ReadMe.md

* Cleanup Readme.md

* Optional stress dependencies & don't populate CORE_ROOT twice (#36851)

Bruce noticed that we're downloading and installing stress
runtime dependencies several times during build. I have added a new
option to suppress this behavior in build-test and I fixed the
invocations of build-test based on Bruce's analysis. I have also
patched the build scripts to avoid populating CORE_ROOT in
"copynativeonly" mode.

Thanks

Tomas

Fixes: #36797

* Build test scripts whenever CopyNativeProjectBinaries builds (#37028)

* Fix pri0 test build.

* Clean pri1 test build (#37266)

* Clean pri1 test build

* Undo testing comment

* Make sure weakreferencetest does not run on unix

* Fixup WinRT proj

* Fix path

Co-authored-by: Steve MacLean <[email protected]>
Co-authored-by: Tomáš Rylek <[email protected]>
Co-authored-by: Santiago Fernandez Madero <[email protected]>
Co-authored-by: Alexander Köplinger <[email protected]>
Co-authored-by: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Andy Ayers <[email protected]>
Co-authored-by: Adeel Mujahid <[email protected]>
Co-authored-by: Ganbarukamo41 <[email protected]>
Co-authored-by: monojenkins <[email protected]>
Co-authored-by: thaystg <[email protected]>
Co-authored-by: Viktor Hofer <[email protected]>
Co-authored-by: Aaron Robinson <[email protected]>
Co-authored-by: Kevin Jones <[email protected]>
Co-authored-by: Jeremy Barton <[email protected]>
Co-authored-by: Egor Bogatov <[email protected]>
Co-authored-by: Simon Nattress <[email protected]>
Co-authored-by: Aleksey Kliger (λgeek) <[email protected]>
Co-authored-by: Krzysztof Wicher <[email protected]>
Co-authored-by: Kunal Pathak <[email protected]>
Co-authored-by: Carol Eidt <[email protected]>
Co-authored-by: Shimmy <[email protected]>
Co-authored-by: Stephen Toub <[email protected]>
Co-authored-by: Layomi Akinrinade <[email protected]>
Co-authored-by: Dan Moseley <[email protected]>
Co-authored-by: Eirik Tsarpalis <[email protected]>
Co-authored-by: Jeremy Koritzinsky <[email protected]>
Co-authored-by: Jose Perez Rodriguez <[email protected]>
Co-authored-by: Alexander Chermyanin <[email protected]>
Co-authored-by: Miha Zupan <[email protected]>
Co-authored-by: Sergey Andreenko <[email protected]>
Co-authored-by: Nikola Milosavljevic <[email protected]>
Co-authored-by: Steve Pfister <[email protected]>
Co-authored-by: David Wrighton <[email protected]>
Co-authored-by: buyaa-n <[email protected]>
Co-authored-by: Krzysztof Wicher <[email protected]>
Co-authored-by: Vladimir Sadov <[email protected]>
Co-authored-by: Leandro Pereira <[email protected]>
Co-authored-by: Swaroop Sridhar <[email protected]>
Co-authored-by: Marie Píchová <[email protected]>
Co-authored-by: Michal Strehovský <[email protected]>
Co-authored-by: Manish Godse <[email protected]>
Co-authored-by: Bruce Forstall <[email protected]>
Co-authored-by: Alexis Christoforides <[email protected]>
Co-authored-by: BrzVlad <[email protected]>
Co-authored-by: Alfred Myers <[email protected]>
Co-authored-by: Nick Craver <[email protected]>
Co-authored-by: Nathan Ricci <[email protected]>
Co-authored-by: Thays Grazia <[email protected]>
Co-authored-by: Yoh Deadfall <[email protected]>
Co-authored-by: Eric Erhardt <[email protected]>
Co-authored-by: Jo Shields <[email protected]>
Co-authored-by: Jan Vorlicek <[email protected]>
Co-authored-by: Anirudh Agnihotry <[email protected]>
Co-authored-by: Roman Marusyk <[email protected]>
Co-authored-by: Zoltan Varga <[email protected]>
Co-authored-by: Youssef Victor <[email protected]>
Co-authored-by: Ben Adams <[email protected]>
Co-authored-by: Marek Safar <[email protected]>
Co-authored-by: Anton Lapounov <[email protected]>
Co-authored-by: AraHaan <[email protected]>
Co-authored-by: Tom Deseyn <[email protected]>
Co-authored-by: Tomas Weinfurt <[email protected]>
Co-authored-by: Tomas Weinfurt <[email protected]>
Co-authored-by: David Cantu <[email protected]>
Co-authored-by: Sung Yoon Whang <[email protected]>
Co-authored-by: Levi Broderick <[email protected]>
Co-authored-by: vargaz <[email protected]>
Co-authored-by: David Mason <[email protected]>
Co-authored-by: UnityAlex <[email protected]>
Co-authored-by: Fan Yang <[email protected]>
Co-authored-by: Tanner Gooding <[email protected]>
Co-authored-by: Egor Chesakov <[email protected]>
Co-authored-by: radical <[email protected]>
Co-authored-by: Ivan Diaz Sanchez <[email protected]>
Co-authored-by: Gleb Balykov <[email protected]>
Co-authored-by: Honza Rameš <[email protected]>
Co-authored-by: Eric StJohn <[email protected]>
Co-authored-by: Ivan <[email protected]>
Co-authored-by: Ryan Lucia <[email protected]>
Co-authored-by: SRV <[email protected]>
Co-authored-by: Clinton Ingram <[email protected]>
Co-authored-by: Mikhail Pilin <[email protected]>
Co-authored-by: Jan Kotas <[email protected]>
Co-authored-by: w-flo <[email protected]>
Co-authored-by: Peter Sollich <[email protected]>
Co-authored-by: grendello <[email protected]>
Co-authored-by: Johan Lorensson <[email protected]>
Co-authored-by: Erhan Atesoglu <[email protected]>
Co-authored-by: Matt Mitchell <[email protected]>
Co-authored-by: Josh Schreuder <[email protected]>
Co-authored-by: Josh Schreuder <[email protected]>
Co-authored-by: Andrew Au <[email protected]>
Co-authored-by: Eugene Rozenfeld <[email protected]>
Co-authored-by: Vlad Brezae <[email protected]>
Co-authored-by: Kenneth Pouncey <[email protected]>
Co-authored-by: Kirill Frolov <[email protected]>
Co-authored-by: Tomas Weinfurt <[email protected]>
2020-06-04 08:43:40 -07:00
Adeel 2e0039ac6b Add note about building PAL tests in docs 2020-04-09 22:11:35 +03:00
Aaron Robinson 174f13637c Update documentation for CoreCLR testing. (#34674)
* Update documentation for CoreCLR testing.
2020-04-08 09:07:47 -07:00
Jan Kotas 59be94b698 Unifying duplicate msbuild properties in CoreCLR build (#34261)
- __TargetOS -> TargetOS
- __BuildType, BuildType -> Configuration
- __BuildArch, BuildArch -> TargetArchitecture
2020-03-30 10:06:24 -07:00
Jan Kotas 479067315a .NET Core to .NET branding changes (#33694)
Contributes to #33680
2020-03-28 07:00:19 -07:00
Bruce Forstall a21da8f6d9 Move JIT documentation to new docs/design/coreclr/jit directory (#33321)
Reduce clutter in the shared directory, and make it easier to find
all the JIT-related documentation.
2020-03-10 08:53:57 -07:00
Anirudh AgnihotryandViktor Hofer fef9ca70f6 Replacing OSGroup with TargetOS for coreclr, libraries and installer (#32833)
* Remove OSGroup from coreclr and corefx

* remove from installer

* fixing coreclr tests

* Some documentation changes

Co-Authored-By: Viktor Hofer <[email protected]>

* moving buildos calculation to config.props

* BuildOS -> TargetOS

* remove osgroup suffix

* removing comment and correcting typo

* dotnet msbuild -> dotnet build at relevant places in docs

* moving more properties to configuration.props

* refactoring properties

* moving TargetArchitecture property to loveBuildd.Targets

* adding configuration.props to signing

* Fix installer build

* BuildOS -> Target os and removing slash

Co-authored-by: Viktor Hofer <[email protected]>
2020-03-05 07:51:06 -08:00
Viktor Hofer 33f2807fc6 Remove BuildAndTest and RebuildAndTest target in favor of Test (#33151)
* Implicitly build when invoking the test target

To get closer to the VSTest behavior this changes the Test target to
implicitly invoke the Build target unless /p:TestNoBuild is passed in.
(VSTest uses VSTestNoBuild which is controlled by the
dotnet test --no-build flag)

* Fix error logging for test outputs

* Update dotnet msbuild to build docs

* Update ReportGenerator global tool version

Updating ReportGenerator's version to 4.5.0 which removes unnecessary
logging (args passed in).
2020-03-04 19:40:19 +01:00
Dan Moseley 8497763bbf Fix another 58 URL's (#33003) 2020-02-28 18:54:32 -08:00
Ganbarukamo41 07c52fdfc1 Update windows-test-instructions.md (#31989)
Update old file path
2020-02-09 00:00:30 -05:00
Ben Adams 4adb320cb7 Highlight directory (#31625) 2020-02-01 22:01:50 -08:00
Andrew Au ac1af50ee7 Improve GC stress tests (#2166) 2020-01-29 16:16:59 -08:00
Alexander KöplingerandViktor Hofer 6eb3edf818 Enable Mono build in CI (#1934)
* Enable Mono in default build

* Integrate Mono into the build system

* Fix System.Private.CoreLib build in Mono

Broken by https://github.com/dotnet/runtime/commit/9c82a36c23235c4d50954cb33a4d5d89b787a1aa

* Disable Windows test runs

Fails due to https://github.com/dotnet/runtime/issues/1933

Co-authored-by: Viktor Hofer <[email protected]>
2020-01-22 21:20:13 +01:00
Roman Marusyk 4cb104ee49 Fix some links to coreclr repo (#1991) 2020-01-22 06:41:26 -08:00
Jeremy Koritzinsky 20c28038b7 Enable overriding CoreCLR and Libraries configurations in root… (#1826)
* Override the configuration of the CoreCLR and Libraries builds during the root build when CoreCLRConfiguration and LibrariesConfiguration are specified respectively.

* Add coreclrConfiguration and librariesConfiguration parameters to build scripts.

* Update docs.

* Make arguments lowercase on bash.

* Fix typos.
2020-01-17 14:34:04 -08:00
Bruce Forstall 247c5b96a2 Documentation refinements (#1738)
* Documentation refinements

* Fix a formatting issue

* Code review updates
2020-01-16 11:13:04 -08:00
Michal Strehovský 74ad73e1f0 Update the CoreCLR testing workflow doc (#1806) 2020-01-16 10:26:57 -08:00
9900dfb4b2 Organize some markdowns and fix links (#1159)
* Move files into hierarchy

* fix more links

* Fix botr and features links

* Remove bad apostrophe

* spelling

* Apply suggestions from code review

Co-Authored-By: Youssef Victor <[email protected]>

* Update docs/coding-guidelines/package-projects.md

Co-Authored-By: Jan Kotas <[email protected]>

Co-authored-by: Youssef Victor <[email protected]>
Co-authored-by: Jan Kotas <[email protected]>
2019-12-26 15:22:57 -08:00