Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

Enable CoreFX tests on CoreRT #5329

Merged
merged 26 commits into from
Mar 14, 2018
Merged

Enable CoreFX tests on CoreRT #5329

merged 26 commits into from
Mar 14, 2018

Conversation

A-And
Copy link
Contributor

@A-And A-And commented Feb 2, 2018

Dupe of #5287 - can't reopen the PR because of commit history. Adresses #5059
Addressed the comments on the last PR; Added Unix scripts.

The current blocker for is getting the CoreFX.Private.TestUtilities project published as a NuGet package.
Additionally - native assertions will cause the XUnit runner to crash - e.g.

// @TODO: CORERT: GetConservativeUpperBoundForOutgoingArgs
assert(false);

will be called when executing System.Runtime.Tests and freeze the executable until the user hits Ctrl-C. Do we need a way around errors like this?

fi
#!/usr/bin/env bash

# This is the Unix equivalent of build-and-run-test.cmd
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a copy&paste error. The same code included twice.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like something went wrong in revising commit history. Fixed.

:Usage
echo.
echo Usage:
echo %0 BuildArch BuildType [SkipWrapperGeneration] [Exclude EXCLUSION_TARGETS] [TestEnv TEST_ENV_SCRIPT] [VSVersion] CORE_ROOT
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are these extra args after "BuildType"? They are not described in the usage and I don't see a reference to them.

@sergiy-k
Copy link
Contributor

sergiy-k commented Feb 3, 2018

Regarding the assert in GetConservativeUpperBoundForOutgoingArgs. Could you please share the call stack that leads to it?

then
exit ${__exitcode}
fi
#!/usr/bin/env bash
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You probably still want to keep this line.

[
"System.Collections.Tests",
"System.Collections.Immutable.Tests",
"System.Net.Security.Tests"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please delete "System.Net.Security.Tests" from here. Instead, add System.Runtime, System.Runtime.Extensions, System.Threading, System.Threading.Tasks.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree - "System.NET.Security.Tests" needs to be deleted as per previous discussions.
I would prefer to see more tests to be added as a separate PR once we know that this change works reliably.

@sergiy-k
Copy link
Contributor

sergiy-k commented Feb 6, 2018

Regarding this assertion:

// @TODO: CORERT: GetConservativeUpperBoundForOutgoingArgs
assert(false);

It fires when the runtime is scanning GC roots of the following stack:

...
14 0000000e`75eed2a0 00007ff6`fe272ab1 xunit_console_netcore!RhpUniversalTransition_DebugStepTailCall+0x47 [\corert\src\Native\Runtime\amd64\UniversalTransition.asm @ 164] 
15 0000000e`75eed320 00007ff6`fdd5c74c xunit_console_netcore!System_Linq_System_Linq_Enumerable_SelectEnumerableIterator_2<System___Canon__System___Canon>__MoveNext+0xfd
...

@A-And A-And force-pushed the FXTestingFramework branch 4 times, most recently from 33285d6 to 67256bd Compare February 20, 2018 02:16
@A-And A-And force-pushed the FXTestingFramework branch 2 times, most recently from ef4a348 to e339071 Compare February 24, 2018 01:11
@A-And A-And changed the title [WIP] Enable CoreFX tests on CoreRT Enable CoreFX tests on CoreRT Feb 26, 2018
@A-And A-And merged commit bf6b057 into dotnet:master Mar 14, 2018
kbaladurin pushed a commit to kbaladurin/corert that referenced this pull request Mar 15, 2018
* Generate Test projects - Intermittent checkin

* Intermittent check-in running exe, tests need restoring

* Add Test utitilites project

* End-to-End test build Windows

* Change structure

* Fix RDXML and add reflectable types

* Add json parsing and xml logs

* End-to-end test run and display

* Helper project style changes

* Remove direct dll references add package dependencies

* Stylistic changes + deps

* Style fixup

* XML reader escape

* Dependency and comment cleanup

* Respond to PR feedback

* Intermittent checkin - Build helper projects

Shell scripts

* Building and working shell scripts

* End-to-end build and run

* Add error checking

* Style Fixup

* Address PR comments

* Revert line change

* Remove Net.Security.Tests

* OSX Changes

* Update URL; update dependencies

* Remove Collections.Immutable and update to long-lasting URL
@A-And A-And deleted the FXTestingFramework branch May 2, 2018 00:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants