Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Add 'skiptests' option to corefx/build.sh#6823

Merged
stephentoub merged 1 commit intodotnet:masterfrom
leemgs:upstream-skiptests
Mar 11, 2016
Merged

Add 'skiptests' option to corefx/build.sh#6823
stephentoub merged 1 commit intodotnet:masterfrom
leemgs:upstream-skiptests

Conversation

@leemgs
Copy link

@leemgs leemgs commented Mar 11, 2016

We have to wait for a long time even though we don't need to make test files
(e.g. *Tests.dll and *Tests.pdb). This patch is to add 'skiptests' option to
the existing build.sh of corefx.

Sample usage:
u14.04$> time ./build.sh managed debug clean verbose skiptests
u14.04$> time ./build.sh managed release clean verbose skiptests

Signed-off-by: Geunsik Lim geunsik.lim@samsung.com
Signed-off-by: Prajwal A N an.prajwal@samsung.com
Signed-off-by: MyungJoo Ham myungjoo.ham@samsung.com

We have to wait for a long time even though we don't need to make test files
(e.g. *Tests.dll and *Tests.pdb). This patch is to add 'skiptests' option to
the existing build.sh of corefx.

Sample usage:
u14.04$> time  ./build.sh managed debug   clean verbose  skiptests
u14.04$> time  ./build.sh managed release clean verbose  skiptests

Signed-off-by: Geunsik Lim geunsik.lim@samsung.com
Signed-off-by: Prajwal A N an.prajwal@samsung.com
Signed-off-by: MyungJoo Ham myungjoo.ham@samsung.com
@leemgs
Copy link
Author

leemgs commented Mar 11, 2016

Let's add "skiptests" option to support optional compilation
on test files (e.g. *Tests.dll and *Tests.pdb) of corefx.

/cc @stephentoub , @jkotas, @benpye , @myungjoo, @prajwal-aithal

@Clockwork-Muse
Copy link

There's another reason for this too: when the build tools version changes, it's not possible to build a single project anymore. You have to kick off the root build instead to grab the new tools/initialize them...

@leemgs
Copy link
Author

leemgs commented Mar 11, 2016

You have to kick off the root build instead to grab the new tools/initialize them...

@Clockwork-Muse Do you mean ./clean.sh ?

@Clockwork-Muse
Copy link

@leemgs - it's possible that would work, I haven't tried it (easy to test though). When the new tools version shows up trying to build a single project complains about some other file not being present (one of the .dir or .props, can't recall). So I wouldn't have anticipated something labeled "clean" pulling down the correct version (given how cleaning builds normally just removes all built objects, as near as I understand).

@akoeplinger
Copy link
Member

What's the benefit over just using build.sh /p:SkipTests=true right now?

@leemgs
Copy link
Author

leemgs commented Mar 11, 2016

What's the benefit over just using build.sh /p:SkipTests=true right now?

@akoeplinger, Good question. When embedded guys try to build managed corefx on their local PC after modifying/updating a source code of the corefx for some enhancements, they have to wait for a long time until build.sh command finish all compilation procedures. This patch helps to skip the test procedure alternatively to save their time. It is motivated from skiptests option of the coreCLR.

@akoeplinger
Copy link
Member

@leemgs what I meant was that build.sh /p:SkipTests=true works already with the current version, because all unrecognized parameters to build.sh are passed along to msbuild, so skipping tests is already possible without an additional skiptests.

But if the option makes the script more consistent with CoreCLR then I think it's worthwhile 👍

@leemgs
Copy link
Author

leemgs commented Mar 11, 2016

@akoeplinger, Right. That is why. As you mentioned, build.sh skiptests is better than build.sh /p:SkipTests=true in order to keep more consistent usage between coreCLR and coreFX for Linux-based platform developers.

@jkotas
Copy link
Member

jkotas commented Mar 11, 2016

LGTM

From my own experience, this option is very convenient for people moving accross coreclr/corert and corefx repos. I tend to accidentally run build.sh skiptests myself in corefx too.

@ghost
Copy link

ghost commented Mar 11, 2016

+1 for consistency between corefx/coreclr build scripts.

@stephentoub
Copy link
Member

LGTM

stephentoub added a commit that referenced this pull request Mar 11, 2016
Add 'skiptests' option to corefx/build.sh
@stephentoub stephentoub merged commit 1279775 into dotnet:master Mar 11, 2016
@karelz karelz modified the milestone: 1.0.0-rtm Dec 3, 2016
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Add 'skiptests' option to corefx/build.sh

Commit migrated from dotnet/corefx@1279775
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.

7 participants