Commit Graph
273 Commits
Author SHA1 Message Date
Elinor Fung 78083e7dd0 Add test for comhost with managed host (#66360) 2022-03-09 20:52:18 -08:00
Elinor Fung 627851323f Add tests for ijwhost (#66308) 2022-03-08 09:14:43 -08:00
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
Andrew WangandJuan Hoyos acbd20e673 Update linux-instructions.md for .NET 6/7 (#65160)
* Update linux build instructions for .NET 6/7
* Add linux musl arm to the list

Co-authored-by: Juan Hoyos <[email protected]>
2022-02-10 14:56:09 -08:00
Marek Fišera 1ac45f5161 [wasm] Fix WebSocket tests on NodeJS (#64330)
- Move all SetScriptCommands to a target, so they are placed after scenario in the generated script.
- Add WasmXHarnessArgsCli as an alternative variable that can be used from cli.
- Fix NodeJS symbolic links on Helix.
- Copy TestEchoMiddleware and RemoteLoopMiddleware even for Scenario=NodeJS.
- Enable System.Net.WebSockets.Client.Tests on NodeJS.
2022-02-09 10:27:24 +01:00
Michal Strehovský 87777b624b Change the way we build CoreCLR tests for NativeAOT (#64738)
* Remove NativeAOT testing added in dotnet/runtime#62704 to make room for the different strategy.
* Build NativeAOT as part of test build, not test run
2022-02-09 07:23:13 +09:00
Michal Strehovský b11469f658 NativeAOT ARM64 libraries testing (#64373)
Enable ARM64 libraries testing for NativeAOT.

* Copy the crosstargeting build approach from crossgen2. We'll now build two ILC compilers when targeting ARM64 from x64: an arm64-hosted one that is useless on the build machine, and a x64-hosted one, that will work on the build machine. The `ILCompiler.csproj/props/_crossarch.csproj` projects mirror crossgen's approach.
* Limit the number of libraries tests to one. Hopefully it avoids the build races that we'd see until we can update the repo build to .NET 7 Preview 1.
* Create an ARM64 NativeAOT CI leg that sends the libraries tests to Helix to run.
2022-02-08 13:33:47 +09:00
Michał Zegan e836ce548a Fix test build command in docs/workflow/building/coreclr/nativeaot.md (#64690)
The command `src/tests/build[.cmd|.sh] nativeaot [Debug|Release] tree nativeaot` seems not to work as expected.
Namely it seems to build not only the nativeaot smoke tests.
Fixed to be `src\tests\build[.cmd|.sh] -nativeaot [Debug|Release] -tree:nativeaot`
2022-02-03 20:35:43 +09:00
Fan Yang bccc18bb6c [Mono] Add incremental build instructions when ... (#64396)
... you need to need to run library tests or run HelloWorld sample with your change to mono.
2022-02-01 16:01:19 -05:00
Michal Strehovský e824d399a6 Fix NativeAOT official build (#64432)
Official builds are currently not building NativeAOT CoreLib.

For unknown reasons the official build splits native build and managed build of the CoreCLR partition.

We had a convenient clr.nativeaotlibs subset that built both the native part and managed part. Managed part can't be built without the native part, so it makes sense.

To satisfy official build's weirdness, we need to split this into two subsets so that we can tell the official build to build the managed part. (Official builds already build everything in the native part, so we're good there.)
2022-01-28 21:26:43 +09:00
fe0d9200f4 [docs] Collecting stack traces with native symbols on WebAssembly (#64383)
* [docs] Collecting stack traces with native symbols on WebAssembly

* Apply suggestions from code review

Co-authored-by: Larry Ewing <[email protected]>
Co-authored-by: Ankit Jain <[email protected]>

Co-authored-by: Larry Ewing <[email protected]>
Co-authored-by: Ankit Jain <[email protected]>
2022-01-27 14:16:21 -05:00
Mitchell Hwang 1c50993492 [Android][libs] Enable Internal.Console.Write in System.Private.CoreLib (#63949)
* [Android][libs] Enable Internal.Console.Write in System.Private.CoreLib

* [docs] Add debugging System.Private.CoreLib Internal.Console.Write

* Elaborate on debugging corelib log

* Address feedback
2022-01-24 15:06:56 -05:00
Kevin Jones 22e2db1228 Update the macOS CoreCLR building documentation. (#63932)
This updates the documentation to refer to the up-to-date location of
requirements and prerequisites.
2022-01-20 23:26:05 -08:00
Andrii Kurdiumov 4e2102b73b Add dependency analysis documentation from CoreRT (#63665) 2022-01-12 16:52:01 +09:00
Thefrank bc7f6c2754 Add Running on FreeBSD Instructions (#63417) 2022-01-07 20:45:32 -08:00
Eric Erhardt 8ce1c54005 Update Codespaces instructions for latest (#63376) 2022-01-04 17:58:26 -06:00
Michal Strehovský 046cbf0c41 Unify threading between crossgen2 and ilc (#63282)
They don't have to differ in the `--parallelism` vs `--singlethreaded` argument.
2022-01-04 05:00:43 +09:00
Michal Strehovský 07ed923f57 Switch to objwriter from the dotnet/llvm-project repo (#63177) 2021-12-31 13:34:33 +09:00
Maxim Lipnin 0b17270554 Update the apple testing doc (#63119) 2021-12-24 15:33:24 +03:00
Pavel Savara a73d44f100 [wasm] Testing with NodeJs on CI (#62779)
* enable testing with NodeJS on CI
* Fix task marshal tests.
Co-authored-by: Marek Fišera <[email protected]>
2021-12-18 10:14:01 +01:00
Michal Strehovský f44b0ba183 Add docs around NativeAOT workflows (#62837) 2021-12-16 10:35:54 +09:00
Tomáš Rylek c3683b06b0 Rename 'excludemonofailures' to 'mono' (#62749) 2021-12-14 07:38:55 +01:00
Fan Yang 8965454989 Add instructions to skip restoring nuget packages (#62634)
Add build instructions to skip restoring nuget packages, when you only made change to mono.
2021-12-10 16:38:15 +01:00
Nathan Ricci 1d4b5f684c Updated testing document; patching and various mono-specific msbuild targets are no longer needed. (#62588) 2021-12-09 13:40:03 -05:00
Simon RozsivalandAlexander Köplinger 6cf785d9fb Support Process.Start() on MacCatalyst (#61507)
* Modify existing tests

* Enable process start and kill on MacCatalyst

* Typo

* Temporarily enable ProcessTests for MacCatalyst

* Temporarily enable ProcessTests for MacCatalyst - attempt 2

* Allow running Mac Catalyst builds in App Sandbox

* Allow enabling app sandbox for the other Mac Catalyst sample

* Add missing parameter to XCode project generator

* Remove unnecessary MacCatalyst detection

* Enable App Sandbox for Mac Catalyst tests

* Create a separate test branch for App Sandbox

* Remove the restriction to enable app sandbox just for Mac Catalyst apps

* Do not throw PNSE for Mac Catalyst

* Clean-up platform-specific conditions

* Build correct Process implementation for MacCatalyst

* Try to get more information from CI for further investigation of the failing build

* Revert "Try to get more information from CI for further investigation of the failing build"

This reverts commit fc63a370d688aa0d1dc890e6928a8d031d148e56.

* Add MacCatalyst target framework for System.Diagnostics.Process

* Add supported platform annotations for Mac Catalyst

* Fix annotations

* Remove incorrectly placed attributes

* Update attributes including the reference file

* Change platform attributes

* Generate app.entitlements in the BuildAppleAppBundles test build target

* Revert "Generate app.entitlements in the BuildAppleAppBundles test build target"

This reverts commit abbe2241586e3469c3d3e9d4ecd2cea2e09d3641.

* Enable AppSandbox when generating CMakeLists.txt for libraries tests

* Try implementing a workaround for app sandbox mode

* Fix app sandbox detection bug

* Add explanation comment

* Enable more tests for MacCatalyst

* Add apple app builder input validation

* Add Mac Catalyst w/ App Sandbox enabled to runtime-manual test pipeline

* Enable networking in App Sandbox mode

* Skip test which won't work on Mac Catalyst

* Skip some tests in app sandbox mode

* Update src/tasks/AppleAppBuilder/AppleAppBuilder.cs

Co-authored-by: Alexander Köplinger <[email protected]>

* Add a clarification comment for a networking entitlement

* Simplify supported platform condition

* Remove temporarily enabled test

* Remove unnecessary attributes

* Replace checking env variable with checking errno in libproc

* Update docs

* Remove unnecessary changes

* Temporarily enable running System.Diagnostics.Process.Tests for this PR

This reverts commit 02d370c2cf730bf67a3cf6fca8fcb8c5e4ff1ccd.

* Revert "Temporarily enable running System.Diagnostics.Process.Tests for this PR"

This reverts commit dc72f0f1d068314317d088d33ec87f9aa6447854.

* Fix job suffix in runtime-manual

* Remove attributes

* Revert "Remove attributes"

This reverts commit 704e9fa73cd40854d1becc2889569bab3c47d62d.

* Try changing the order of attributes to please CI

* Update ApiCompat baseline

* ApiCompat step 1: remove all attributes for MaxWorkingSet setter

* Revert "Update ApiCompat baseline"

This reverts commit a2ad03207c5f9f40b9dd2c335a1b0f31c37a0ac5.

* Revert "ApiCompat step 1: remove all attributes for MaxWorkingSet setter"

This reverts commit be72a3d2564afb89a83198ef010b3d4622799601.

* Update ApiCompat baseline

* Update ApiCompat baseline after pulling upstream main

* Remove trailing whitespace

Co-authored-by: Alexander Köplinger <[email protected]>
2021-12-07 20:33:38 +01:00
9872424ada Update windows-requirements.md (#62476)
* Update windows-requirements.md

* Update docs/workflow/requirements/windows-requirements.md

Co-authored-by: Stephen Toub <[email protected]>

Co-authored-by: Dan Moseley <[email protected]>
Co-authored-by: Stephen Toub <[email protected]>
2021-12-07 07:46:42 -07:00
Eric Erhardt f53075c582 Update creating codespace instructions (#62213) 2021-11-30 15:13:21 -06:00
Adeel Mujahid 7414af2a5f Reorganize libs.native (#61958)
* Reorganize libs.native

* Fix darwin build

* Fix wasm-win32 build

* Fix pipelines path evaluation
2021-11-24 14:47:45 -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
Kevin Jones a888829fc6 Update workflow docs to indicate ARM64 macOS works (#61575) 2021-11-15 09:09:02 -08:00
Eric Erhardt 3dfdcb918b Add instructions for using Codespaces (#60996)
* Add instructions for using Codespaces

* Automate resetting the HEAD to the same commit ID used to build the pre-built container

* - Add notes about testing changes.

- Add 4-core machines

* Revert 4-core change since prebuild doesn't support multiple sku_names.
2021-11-08 20:18:05 -06:00
Maxim Lipnin b9a2c48aa8 Clean up the documentation for the library testing (#59401) 2021-11-08 12:11:54 +03:00
Steve DunnandSantiago Fernandez Madero 5c8ea45eda Removed two unused packages from .vsconfig (#60798)
These packages are unused as described in #60794

Co-authored-by: Santiago Fernandez Madero <[email protected]>
2021-11-02 17:40:45 +01:00
4682098d3a Move optdata and version file generation up to MSBuild from build-runtime (#58674)
* Move optdata and version file generation from the native build scripts up into the managed scripts. The native build scripts will now by default copy a fallback version file in place if the version files do not exist and will disable PGO if no pgo file path is passed in to the build-runtime scripts.

This removes all cases of build-runtime calling into MSBuild.

* Update CI to use the new prereqs model.

* Remove some old MSBuild arg pass-through that's no longer needed as build-runtime no longer calls into any MSBuild processes.

* Apply suggestions from code review

Co-authored-by: Viktor Hofer <[email protected]>
Co-authored-by: Jan Kotas <[email protected]>

* Move some targets around based on feedback.

* Output version files in the artifacts/obj dir so they can be easily shared.

* Move native pgo into a targets file instead of being a separate project to be more static-graph friendly.

* Fix subsets.

* Share version file path by default

* Fix VER_FILEDESCRIPTION_STR

* Fix version fallback copies.

* Fix include path for the version headers.

* Update src/coreclr/dlls/mscordac/CMakeLists.txt

Co-authored-by: Juan Hoyos <[email protected]>

* Enable easily sharing the fallback version files between all components of the repo.

* Remove some now-unused command-line options from our build scripts.

* Bump importance output to pass the pgo path between steps.

* Add eval statement to run copy_version_files script

* Rename some files and and standardize on a _version.c file name for Linux.

* Remove temp proj ref.

* Fix permissions

* Reference targets to produce version file in libraries native build.

* Fix CoreCLR build breaks

* Generate the version files for Mono

* include configurepaths.cmake on the Windows CoreFX build.

* Restore mono.proj when building it through monoaotcross.proj.

* Update copy script to work on macos.

* Make sure mono pulls in the shared version files.

* Add artifcats/obj dir as include dir for CoreCLR diagonstic components included in Mono

* Add artifacts/obj include for the whole mono build.

* Update CMakeLists.txt

* Fix NativeVersion.rc path on Windows.

* Fix linux version parsing to point at the right file.

* Fix mono version parsing (apparently the quotes make a difference here)

* Update src/coreclr/build-runtime.sh

Co-authored-by: Adeel Mujahid <[email protected]>

* Update eng/native/version/copy_version_files.sh

Co-authored-by: Adeel Mujahid <[email protected]>

* Update copy_version_files.sh to insert the current commit hash into _version.c.

* Apply suggestions from code review

Co-authored-by: Adeel Mujahid <[email protected]>

* Update the _version.c writing script to only update the placeholder version file if it actually is a placeholder (not a real generated file).

* Generate the version files for wasm/browser as well.

* Fix Mono WASM cross build.

* Update eng/nativepgo.targets

Co-authored-by: Juan Hoyos <[email protected]>

* Fix comparison for NativeOptimizationDataSupported.

Co-authored-by: Viktor Hofer <[email protected]>
Co-authored-by: Jan Kotas <[email protected]>
Co-authored-by: Juan Hoyos <[email protected]>
Co-authored-by: Adeel Mujahid <[email protected]>
2021-10-27 10:03:34 -07:00
Elinor Fung 760a76bf4d Add configureonly option to host native build (#60889) 2021-10-26 20:28:48 -07:00
Aleksey Kliger (λgeek) 72bcf2f77a [tests] In test wrapper scripts if -debug is gdb or lldb, add separator before corerun and args (#60416)
* [tests] If -debug is LLDB, add separator before corerun and args

   For runtime test shell scripts, if a debugger is specified with `-debug=/usr/bin/lddb` or the like, add a separator so that `lldb` doesn't try to interpret `-p` as a PID argument.

   Also update mono workflow doc

* Also support gdb as the debugger
2021-10-20 10:17:54 -04:00
Aleksey Kliger (λgeek) 10d8964fb0 [docs] Add LLDB debugging instructions for Mono running a runtime test (#60410)
* [docs] Add LLDB debugging instructions for Mono running a runtime test

* Also add a note about building a single test
2021-10-14 12:54:31 -04:00
Stephen Toub e118d3fc71 Update Microsoft.CodeAnalysis.CSharp.CodeStyle version (#59783) 2021-10-03 10:14:02 -04:00
Jason Pugsley dff742a06b FreeBSD12 version cleanup and process and thread enhancements (#59339)
* Set FreeBSD 12 as minimum version

This is a small clean-up to remove reliance on FreeBSD versions
prior to 12 and more specifically 12.2 which is the lowest currently
supported version of FreeBSD. 11.4 becomes unsupported as of
October 2021. See https://www.freebsd.org/releases/

* Add functionality for FreeBSD process and threads

Added support for naming native threads, the process disambiguation
key and detecting if the process is running under a debugger.

Changed references to thr_self to pthread_getthreadid_np already
used elsewhere - it returns the same value.
2021-09-25 22:37:11 -07:00
Aleksey Kliger (λgeek) 7e67f8763d [docs] macOS: add note about Xcode command line tools (#59477) 2021-09-23 14:54:23 -04:00
Aleksey Kliger (λgeek) 89cea2e659 [docs] Add instructions for debugging native runtime code on Android (#59183) 2021-09-17 09:01:13 -04:00
Viktor Hofer 67354a2fb4 Upgrade to net7.0 and remove target frameworks (#58011)
* Remove EOL tfms and upgrade to net7.0

* Make linker tests net7 aware

Make installer tests run on net7.0

Don't attempt to use live apphost

Fix payloads

Regenerate test files

Fix package testing
2021-09-08 22:04:23 +02:00
Jeremy KoritzinskyandAaron Robinson f3c705ef29 Implement support for passing a .env file to corerun to easily set environment variables for stress testing. (#58222)
* Implement support for passing a .env file to corerun to easily set environment variables for stress testing.

* Load the parsed dotenv into the process.

* Implement support for # comments

* Clean up code

* Avoid copy

* PR feedback

* Update docs and bash/batch scripts to support the dotenv files.

* Use what clang recommends to not copy

* Apply suggestions from code review

Co-authored-by: Aaron Robinson <[email protected]>

Co-authored-by: Aaron Robinson <[email protected]>
2021-09-03 02:18:59 +00:00
Aleksey Kliger (λgeek) d033e1a902 Don't build ReferenceSystemPrivateCoreLib tests with Mono (#58232)
New tests that extend the System.Private.CoreLib API should add to the ref assemblies in src/libraries and the tests themselves should be library tests.

Updated the workflow doc: the Clr.Native subset is all that is need if we're interested in testing Mono.

Contributes to https://github.com/dotnet/runtime/issues/58266

* [tests] Use RuntimeFlavor to build ReferenceSystemPrivateCoreLib tests

   When building tests that reference System.Private.CoreLib, use the one from the specified RuntimeFlavor (or fall back to coreclr if it's unset - although src/tests/build.sh sets it always)

* Update docs: We only need to build the Clr.Native subset if we're interested in testing Mono.

* flavor the pipelines to build the runtime-specific System.Private.CoreLib for the runtime tests.

* Don't build ReferenceSystemPrivateCoreLib tests with Mono

   We should avoid adding new ReferenceSystemPrivateCoreLib tests
2021-08-30 12:11:42 -04:00
Vitek Karas 0042240dd8 Add zip tool to the install list for Android tests (#57569)
On default WSL Ubuntu `zip` is not installed, and trying to build Android tests fails with rather cryptic errors.
2021-08-17 08:00:48 -07: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
Adam SitnikandSingleAccretion 2ce426a7b3 update Windows ARM build requirements (#57275)
* update Windows ARM build requirements

* Apply suggestions from code review

Co-authored-by: SingleAccretion <[email protected]>
2021-08-12 13:19:48 +02:00
Fan YangandJuan Hoyos e0ba450d7f [Mono] Update instructions for running runtime tests on Android (#57166)
* Update instructions for running runtime tests on Android

* Update docs/workflow/testing/mono/testing.md

Co-authored-by: Juan Hoyos <[email protected]>

Co-authored-by: Juan Hoyos <[email protected]>
2021-08-11 12:13:29 -04:00
Viktor Hofer 22cee85aa0 Clean-up pkgproj leftovers in libs and apply fixes (#56899)
* Clean-up pkgproj leftovers in libs and apply fixes

Remove any pkgproj infrastructure that was only used by src/libraries
(which is the majority). Delete the packageindex *YAY*.
Update the documentation that covered the packageindex and the pkgprojs.

Avoid any incremental builds during packaging by removing
libraries-packages.proj and use src.proj for packaging instead. Make use
of the `GeneratePackageOnBuild` property to build package during the
allconfigurations without requiring a different entry target.

Fix the addition of the DocumentationFile during packaging when
`GeneratePackageOnBuid` is used by hooking onto the
`DocumentationProjectOutputGroup` that NuGet uses and replacing the
generated documentation file with the one that comes via the
intellisense package.
Also introduce a property to choose the generated documentation file
over the one from the intellisense package:
<UseIntellisenseDocumentationFile>false</UseIntellisenseDocumentationFile>

Removing a few leftover PackageDescription properties from the projects'
Directory.Build.props file.

Cleaning up properties in Directory.Build.props & Directory.Build.targets
files.

* Actually run packaging during the allconfigurations build

* Update docs

* make runtime specific pkgs non packable

* io.ports native pkg fixes
2021-08-06 12:01:36 +02:00
Chris Ross b8a9eabb16 Update windows-requirements.md (#56476) 2021-08-03 08:48:59 -06:00