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

Commit0c11595

Browse files
TIHanKevinRansom
authored andcommitted
Added "no-test" argument for build script (#3970)
* Added 'notest' argument for build* Quick rename* Fixed and* One last fix for and* Fixing build scripts* Simplifying no-test
1 parent3ad6962 commit0c11595

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

‎build.cmd‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ echo ^<proto^|protofx^>
2222
echo^<ci^|ci_part1^|ci_part2^|ci_part3^|microbuild^|nuget^>
2323
echo^<debug^|release^>
2424
echo^<diag^|publicsign^>
25-
echo^<test^|test-net40-coreunit^|test-coreclr-coreunit^|test-compiler-unit^|test-net40-ideunit^|test-net40-fsharp^|test-coreclr-fsharp^|test-net40-fsharpqa^>
25+
echo^<test^|no-test^|test-net40-coreunit^|test-coreclr-coreunit^|test-compiler-unit^|test-net40-ideunit^|test-net40-fsharp^|test-coreclr-fsharp^|test-net40-fsharpqa^>
2626
echo^<include tag^>
2727
echo^<init^>
2828
echo.
@@ -82,6 +82,7 @@ REM ------------------ Parse all arguments -----------------------
8282

8383
set_autoselect=1
8484
set_autoselect_tests=0
85+
setno_test=0
8586
set /acounter=0
8687
for /l%%xin (11 9)do (
8788
set /acounter=!counter!+1
@@ -296,6 +297,10 @@ if /i "%ARG%" == "test" (
296297
set_autoselect_tests=1
297298
)
298299

300+
if /i"%ARG%"=="no-test" (
301+
setno_test=1
302+
)
303+
299304
if /i"%ARG%"=="include" (
300305
set /acounter=!counter!+1
301306
if"!INCLUDE_TEST_SPEC_NUNIT!"=="" (setINCLUDE_TEST_SPEC_NUNIT=cat ==%ARG2% )else (set INCLUDE_TEST_SPEC_NUNIT=cat==%ARG2% or!INCLUDE_TEST_SPEC_NUNIT! )
@@ -714,6 +719,8 @@ echo
714719

715720
if"%TEST_NET40_COMPILERUNIT_SUITE%"=="0"if"%TEST_NET40_COREUNIT_SUITE%"=="0"if"%TEST_CORECLR_COREUNIT_SUITE%"=="0"if"%TEST_VS_IDEUNIT_SUITE%"=="0"if"%TEST_NET40_FSHARP_SUITE%"=="0"if"%TEST_NET40_FSHARPQA_SUITE%"=="0"goto :success
716721

722+
if"%no_test%"=="1"goto :success
723+
717724
echo ---------------- Done with update, starting tests -----------------------
718725

719726
ifNOT"%INCLUDE_TEST_SPEC_NUNIT%"=="" (

‎build.sh‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ build.sh ^<all^|net40^|coreclr^|pcls^|vs^>
2929
^<ci^|ci_part1^|ci_part2^|ci_part3^|microbuild^>
3030
^<debug^|release^>
3131
^<diag^|publicsign^>
32-
^<test^|test-net40-coreunit^|test-coreclr-coreunit^|test-compiler-unit^|test-pcl-coreunit^|test-net40-fsharp^|test-coreclr-fsharp^|test-net40-fsharpqa^>
32+
^<test^|no-test^|test-net40-coreunit^|test-coreclr-coreunit^|test-compiler-unit^|test-pcl-coreunit^|test-net40-fsharp^|test-coreclr-fsharp^|test-net40-fsharpqa^>
3333
^<include tag^>
3434
^<init^>
3535
@@ -104,6 +104,7 @@ export INCLUDE_TEST_TAGS=
104104

105105
# Set up variables used to determine whether we'll automatically select which
106106
# targets to build/run/test. NOTE: These aren't exported, they're only used by this script.
107+
no_test=0
107108
_autoselect=1
108109
_autoselect_tests=0
109110

@@ -250,6 +251,9 @@ do
250251
"test")
251252
_autoselect_tests=1
252253
;;
254+
"no-test")
255+
no_test=1
256+
;;
253257
"include")
254258
failwith"The 'include' option is not (yet) supported by this script."
255259
#export /a counter=!counter!+1
@@ -559,6 +563,11 @@ if [ "$TEST_NET40_COMPILERUNIT_SUITE" = '0' ] && [ "$TEST_PORTABLE_COREUNIT_SUIT
559563
exit 0
560564
fi
561565

566+
if [$no_test-eq 1 ];then
567+
# Successful build; not running tests so exit now.
568+
exit 0
569+
fi
570+
562571
build_status"Done with update, starting tests"
563572

564573
if [-n"$INCLUDE_TEST_SPEC_NUNIT" ];then

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp