Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit88379e7

Browse files
authored
Merge pull request #3847 from brettfo/skip-test-option
don't run tests if the `PB_SKIPTESTS` variable is set to true
2 parentsb73a0c4 +1658aa0 commit88379e7

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

‎build.cmd‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,17 @@ REM ------------------ Report config -----------------------
389389

390390
REM after this point, ARG variable should not be used, use only BUILD_* or TEST_*
391391

392+
REM if the `PB_SKIPTESTS` variable is set to 'true' then no tests should be built or run, even if explicitly specified
393+
if /i"%PB_SKIPTESTS%"=="true" (
394+
setTEST_NET40_COMPILERUNIT_SUITE=0
395+
setTEST_NET40_COREUNIT_SUITE=0
396+
setTEST_NET40_FSHARP_SUITE=0
397+
setTEST_NET40_FSHARPQA_SUITE=0
398+
setTEST_CORECLR_COREUNIT_SUITE=0
399+
setTEST_CORECLR_FSHARP_SUITE=0
400+
setTEST_VS_IDEUNIT_SUITE=0
401+
)
402+
392403
echo Build/Tests configuration:
393404
echo.
394405
echo BUILD_PROTO=%BUILD_PROTO%
@@ -404,6 +415,7 @@ echo BUILD_NUGET=%BUILD_NUGET%
404415
echo BUILD_CONFIG=%BUILD_CONFIG%
405416
echo BUILD_PUBLICSIGN=%BUILD_PUBLICSIGN%
406417
echo.
418+
echo PB_SKIPTESTS=%PB_SKIPTESTS%
407419
echo TEST_NET40_COMPILERUNIT_SUITE=%TEST_NET40_COMPILERUNIT_SUITE%
408420
echo TEST_NET40_COREUNIT_SUITE=%TEST_NET40_COREUNIT_SUITE%
409421
echo TEST_NET40_FSHARP_SUITE=%TEST_NET40_FSHARP_SUITE%

‎build.sh‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,18 @@ if [ $_autoselect_tests -eq 1 ]; then
350350
fi
351351
fi
352352

353+
# If the `PB_SKIPTESTS` variable is set to 'true' then no tests should be built or run, even if explicitly specified
354+
if [$PB_SKIPTESTS-eq"true" ];then
355+
export TEST_NET40_COMPILERUNIT_SUITE=0
356+
export TEST_NET40_COREUNIT_SUITE=0
357+
export TEST_NET40_FSHARP_SUITE=0
358+
export TEST_NET40_FSHARPQA_SUITE=0
359+
export TEST_CORECLR_COREUNIT_SUITE=0
360+
export TEST_CORECLR_FSHARP_SUITE=0
361+
export TEST_PORTABLE_COREUNIT_SUITE=0
362+
export TEST_VS_IDEUNIT_SUITE=0
363+
fi
364+
353365
#
354366
# Report config
355367
#
@@ -367,6 +379,7 @@ printf "BUILD_SETUP=%s\n" "$BUILD_SETUP"
367379
printf"BUILD_CONFIG=%s\n""$BUILD_CONFIG"
368380
printf"BUILD_PUBLICSIGN=%s\n""$BUILD_PUBLICSIGN"
369381
printf"\n"
382+
printf"PB_SKIPTESTS=%s\n""$PB_SKIPTESTS"
370383
printf"TEST_NET40_COMPILERUNIT_SUITE=%s\n""$TEST_NET40_COMPILERUNIT_SUITE"
371384
printf"TEST_NET40_COREUNIT_SUITE=%s\n""$TEST_NET40_COREUNIT_SUITE"
372385
printf"TEST_NET40_FSHARP_SUITE=%s\n""$TEST_NET40_FSHARP_SUITE"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp