runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Support building coreclr tests on Linux

Open tmds opened this issue 9 years ago • 10 comments

cfr https://github.com/dotnet/coreclr/issues/4437, a Windows machine is needed to build artifacts used by the Linux test.

How far are the tests from being buildable on Linux? What are the steps to take?

tmds avatar Jan 11 '17 12:01 tmds

As a non-expert, my approach would be "figure out what dotnet/corefx does and port that."

@gkhanna79 Do you happen to have a more detailed list of steps or otherwise more useful advice?

RussKeldorph avatar Jan 12 '17 23:01 RussKeldorph

@RussKeldorph @gkhanna79

This is probably one of challenges, From https://github.com/dotnet/coreclr/issues/4437#issuecomment-262424688

The current result does not include .sh and .cmd files; CodeTaskFactory is required to generate those files, but MSBuild currently does not support it

tmds avatar Jan 16 '17 13:01 tmds

@gkhanna79 can you give some advice?

tmds avatar Jan 26 '17 19:01 tmds

The most appropriate way to go about this is to enable the existing build of tests (done for Windows) to non-Windows - authoring build-tests.sh, fixing Windows specific assumptions, etc. This is how I approached it last year but had to abandon the effort due to other pressing issues.

I know @russellhadley was also making an attempt at it and could share something more recent he may have built.

CC @ramarag @wtgodbe

gkhanna79 avatar Jan 30 '17 19:01 gkhanna79

@gkhanna79 do you know something more about the 'CodeTaskFactory'? Is that still a blocker?

tmds avatar Jan 30 '17 19:01 tmds

It should not be if we are able to build the tests on Windows using MSBuild that runs on .NET Core. Have not revisited this, so cannot say for sure.

gkhanna79 avatar Jan 30 '17 19:01 gkhanna79

At the time I looked into this, MSBuild was not working on .NET Core, so this was a blocker.

gkhanna79 avatar Jan 30 '17 19:01 gkhanna79

So the reason that we cannot get rid of the Windows build for Linux test is MSBuild was not working on .NET core. I may misunderstanding something but since we can build the source code of coreclr on Linux, we should be able to build the tests on Linux in the same way.

I understand some projects depend on CodeTaskFactory which is not supported by MSBuild on .NET Core. But how about rewrite these projects by leveraging cross-platform features? This makes sense in my opinion as the tests for a cross-platform library should be build-able cross platform either.

I'm willing to try my best to fix this :)

mazong1123 avatar Mar 21 '17 02:03 mazong1123

@rartemev are you in flight with this work? @mazong1123 I think there may be some effort ongoing on this already. Let's make sure there isn't duplicated effort. :)

russellhadley avatar Mar 21 '17 15:03 russellhadley

@russellhadley @mazong1123 I have almost finished with this work. I will make pull-request as soon as possible (today or tomorrow).

rartemev avatar Mar 23 '17 23:03 rartemev