forked from dotnet/fsharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.cmd
1182 lines (963 loc) · 41.9 KB
/
build.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
rem Copyright (c) Microsoft Corporation. All Rights Reserved. See License.txt in the project root for license information.
@if "%_echo%"=="" echo off
setlocal enableDelayedExpansion
:ARGUMENTS_VALIDATION
if /I "%1" == "--help" (goto :USAGE)
if /I "%1" == "/help" (goto :USAGE)
if /I "%1" == "/h" (goto :USAGE)
if /I "%1" == "/?" (goto :USAGE)
goto :ARGUMENTS_OK
:USAGE
echo Build and run a subset of test suites
echo.
echo Usage:
echo.
echo build.cmd ^<all^|net40^|coreclr^|vs^>
echo ^<proto^|protofx^>
echo ^<ci^|ci_part1^|ci_part2^|ci_part3^|ci_part4^|microbuild^|nuget^>
echo ^<debug^|release^>
echo ^<diag^|publicsign^>
echo ^<nobuild^|test^|no-test^|test-net40-coreunit^|test-coreclr-coreunit^|test-compiler-unit^|test-net40-ideunit^|test-net40-fsharp^|test-coreclr-fsharp^|test-net40-fsharpqa^|end-2-end^>
echo ^<include tag^>
echo ^<init^>
echo.
echo No arguments default to default", meaning this (no testing)
echo.
echo build.cmd net40
echo.
echo.Other examples:
echo.
echo. build.cmd net40 (build compiler for .NET Framework)
echo. build.cmd coreclr (build compiler for .NET Core)
echo. build.cmd buildfromsource (build compiler for .NET Core -- Verify that buildfromsource works)
echo. build.cmd vs (build Visual Studio IDE Tools)
echo. build.cmd all (build everything)
echo. build.cmd test (build and test default targets)
echo. build.cmd net40 test (build and test compiler for .NET Framework)
echo. build.cmd coreclr test (build and test compiler for .NET Core)
echo. build.cmd vs test (build and test Visual Studio IDE Tools)
echo. build.cmd all test (build and test everything)
echo. build.cmd nobuild test include Conformance (run only tests marked with Conformance category)
echo. build.cmd nobuild test include Expensive (run only tests marked with Expensive category)
echo.
goto :success
:ARGUMENTS_OK
rem disable setup build by setting FSC_BUILD_SETUP=0
if /i "%FSC_BUILD_SETUP%" == "" (set FSC_BUILD_SETUP=1)
rem by default don't build coreclr lkg. However allow configuration by setting an environment variable : set BUILD_PROTO_WITH_CORECLR_LKG = 1
if "%BUILD_PROTO_WITH_CORECLR_LKG%" =="" (set BUILD_PROTO_WITH_CORECLR_LKG=0)
set BUILD_PROTO=0
set BUILD_PHASE=1
set BUILD_NET40=0
set BUILD_NET40_FSHARP_CORE=0
set BUILD_CORECLR=0
set BUILD_FROMSOURCE=0
set BUILD_VS=0
set BUILD_FCS=0
set BUILD_CONFIG=release
set BUILD_DIAG=
set BUILD_PUBLICSIGN=0
set TEST_NET40_COMPILERUNIT_SUITE=0
set TEST_NET40_COREUNIT_SUITE=0
set TEST_NET40_FSHARP_SUITE=0
set TEST_NET40_FSHARPQA_SUITE=0
set TEST_CORECLR_COREUNIT_SUITE=0
set TEST_CORECLR_FSHARP_SUITE=0
set TEST_VS_IDEUNIT_SUITE=0
set TEST_FCS=0
set TEST_END_2_END=0
set INCLUDE_TEST_SPEC_NUNIT=
set INCLUDE_TEST_TAGS=
set SIGN_TYPE=%PB_SIGNTYPE%
REM ------------------ Parse all arguments -----------------------
set _autoselect=1
set _autoselect_tests=0
set no_test=0
set /a counter=0
for /l %%x in (1 1 9) do (
set /a counter=!counter!+1
set /a nextcounter=!counter!+1
call :PROCESS_ARG %%!counter! %%!nextcounter! "!counter!"
)
for %%i in (%BUILD_FSC_DEFAULT%) do ( call :PROCESS_ARG %%i )
REM apply defaults
if /i "%_buildexit%" == "1" (
exit /B %_buildexitvalue%
)
if /i "%_autoselect%" == "1" (
set BUILD_NET40_FSHARP_CORE=1
set BUILD_NET40=1
)
if /i "%_autoselect_tests%" == "1" (
if /i "%BUILD_NET40_FSHARP_CORE%" == "1" (
set TEST_NET40_COREUNIT_SUITE=1
)
if /i "%BUILD_NET40%" == "1" (
set TEST_NET40_COMPILERUNIT_SUITE=1
set TEST_NET40_COREUNIT_SUITE=1
set TEST_NET40_FSHARP_SUITE=1
set TEST_NET40_FSHARPQA_SUITE=1
)
if /i "%BUILD_FCS%" == "1" (
set TEST_FCS=1
)
if /i "%BUILD_CORECLR%" == "1" (
set TEST_CORECLR_FSHARP_SUITE=1
set TEST_CORECLR_COREUNIT_SUITE=1
)
if /i "%BUILD_VS%" == "1" (
set TEST_VS_IDEUNIT_SUITE=1
)
)
goto :MAIN
REM ------------------ Procedure to parse one argument -----------------------
:PROCESS_ARG
set ARG=%~1
set ARG2=%~2
if "%ARG%" == "1" if "%2" == "" (set ARG=default)
if "%2" == "" if not "%ARG%" == "default" goto :EOF
rem Do no work
if /i "%ARG%" == "none" (
set _buildexit=1
set _buildexitvalue=0
)
if /i "%ARG%" == "net40-lib" (
set _autoselect=0
set BUILD_NET40_FSHARP_CORE=1
)
if /i "%ARG%" == "net40" (
set _autoselect=0
set BUILD_NET40_FSHARP_CORE=1
set BUILD_NET40=1
)
if /i "%ARG%" == "coreclr" (
set _autoselect=0
set BUILD_PROTO_WITH_CORECLR_LKG=1
set BUILD_CORECLR=1
set BUILD_FROMSOURCE=1
)
if /i "%ARG%" == "buildfromsource" (
set _autoselect=0
set BUILD_PROTO_WITH_CORECLR_LKG=1
set BUILD_FROMSOURCE=1
)
if /i "%ARG%" == "vs" (
set _autoselect=0
set BUILD_NET40=1
set BUILD_VS=1
)
if /i "%ARG%" == "fcs" (
set _autoselect=0
set BUILD_FCS=1
)
if /i "%ARG%" == "vstest" (
set TEST_VS_IDEUNIT_SUITE=1
)
if /i "%ARG%" == "nobuild" (
set BUILD_PHASE=0
)
if /i "%ARG%" == "all" (
set _autoselect=0
set BUILD_PROTO=1
set BUILD_PROTO_WITH_CORECLR_LKG=1
set BUILD_NET40=1
set BUILD_CORECLR=1
set BUILD_VS=1
set BUILD_FCS=1
set BUILD_SETUP=%FSC_BUILD_SETUP%
set BUILD_NUGET=1
set CI=1
)
if /i "%ARG%" == "microbuild" (
set _autoselect=0
set BUILD_PROTO=1
set BUILD_NET40=1
set BUILD_NET40_FSHARP_CORE=1
set BUILD_PROTO_WITH_CORECLR_LKG=1
set BUILD_CORECLR=1
set BUILD_VS=1
set BUILD_SETUP=%FSC_BUILD_SETUP%
set BUILD_NUGET=1
set BUILD_MICROBUILD=1
set TEST_NET40_COMPILERUNIT_SUITE=1
set TEST_NET40_COREUNIT_SUITE=1
set TEST_NET40_FSHARP_SUITE=1
set TEST_NET40_FSHARPQA_SUITE=1
set TEST_CORECLR_COREUNIT_SUITE=0
set TEST_CORECLR_FSHARP_SUITE=0
set TEST_VS_IDEUNIT_SUITE=1
set CI=1
REM redirecting TEMP directories
set TEMP=%~dp0%BUILD_CONFIG%\TEMP
set TMP=%~dp0%BUILD_CONFIG%\TEMP
)
if /i "%ARG%" == "nuget" (
set _autoselect=0
set BUILD_PROTO=1
set BUILD_NET40_FSHARP_CORE=1
set BUILD_PROTO_WITH_CORECLR_LKG=1
set BUILD_CORECLR=1
set BUILD_NUGET=1
)
REM These divide "ci" into three chunks which can be done in parallel
if /i "%ARG%" == "ci_part1" (
set _autoselect=0
REM what we do - build and test Visual F# Tools, including setup and nuget
set BUILD_PROTO=1
set BUILD_NUGET=1
set BUILD_NET40=1
set BUILD_NET40_FSHARP_CORE=1
set BUILD_VS=1
set TEST_VS_IDEUNIT_SUITE=1
set BUILD_CORECLR=1
set BUILD_SETUP=%FSC_BUILD_SETUP%
set CI=1
)
if /i "%ARG%" == "ci_part2" (
set _autoselect=0
REM what we do - test F# on .NET Framework
set BUILD_PROTO=1
set BUILD_NET40=1
set BUILD_NET40_FSHARP_CORE=1
set TEST_NET40_COMPILERUNIT_SUITE=1
set TEST_NET40_COREUNIT_SUITE=1
set TEST_NET40_FSHARPQA_SUITE=1
set TEST_NET40_FSHARP_SUITE=1
set CI=1
)
if /i "%ARG%" == "ci_part3" (
set _autoselect=0
REM what we do: test F# on Core CLR: nuget requires coreclr, fcs requires coreclr
set BUILD_PROTO_WITH_CORECLR_LKG=1
set BUILD_PROTO=1
set BUILD_CORECLR=1
set BUILD_NET40_FSHARP_CORE=1
set BUILD_NET40=1
set TEST_CORECLR_FSHARP_SUITE=1
set TEST_CORECLR_COREUNIT_SUITE=1
set CI=1
)
if /i "%ARG%" == "ci_part4" (
set _autoselect=0
REM what we do: test F# on Core CLR: nuget requires coreclr, fcs requires coreclr
set BUILD_PROTO_WITH_CORECLR_LKG=1
set BUILD_PROTO=1
set BUILD_CORECLR=1
set BUILD_NET40_FSHARP_CORE=1
set BUILD_NET40=1
set BUILD_FCS=1
set TEST_FCS=1
set CI=1
)
if /i "%ARG%" == "end-2-end" (
set BUILD_PROTO=1
set BUILD_CORECLR=1
set BUILD_NET40_FSHARP_CORE=1
set BUILD_NET40=1
set TEST_END_2_END=1
)
if /i "%ARG%" == "proto" (
set _autoselect=0
set BUILD_PROTO=1
)
if /i "%ARG%" == "diag" (
set BUILD_DIAG=/v:detailed
if not defined APPVEYOR ( set BUILD_LOG=fsharp_build_log.log )
)
if /i "%ARG%" == "debug" (
set BUILD_CONFIG=debug
)
if /i "%ARG%" == "release" (
set BUILD_CONFIG=release
)
if /i "%ARG%" == "test-sign" (
set SIGN_TYPE=test
)
if /i "%ARG%" == "real-sign" (
set SIGN_TYPE=real
)
if /i "%ARG%" == "test" (
set _autoselect_tests=1
)
if /i "%ARG%" == "no-test" (
set no_test=1
)
if /i "%ARG%" == "include" (
set /a counter=!counter!+1
if "!INCLUDE_TEST_SPEC_NUNIT!" == "" ( set INCLUDE_TEST_SPEC_NUNIT=cat == %ARG2% ) else (set INCLUDE_TEST_SPEC_NUNIT=cat == %ARG2% or !INCLUDE_TEST_SPEC_NUNIT! )
if "!INCLUDE_TEST_TAGS!" == "" ( set INCLUDE_TEST_TAGS=%ARG2% ) else (set INCLUDE_TEST_TAGS=%ARG2%;!INCLUDE_TEST_TAGS! )
)
if /i "%ARG%" == "test-all" (
set _autoselect=0
set BUILD_PROTO=1
set BUILD_PROTO_WITH_CORECLR_LKG=1
set BUILD_NET40=1
set BUILD_NET40_FSHARP_CORE=1
set BUILD_CORECLR=1
set BUILD_VS=1
set BUILD_FCS=1
set BUILD_SETUP=%FSC_BUILD_SETUP%
set BUILD_NUGET=1
set TEST_NET40_COMPILERUNIT_SUITE=1
set TEST_NET40_COREUNIT_SUITE=1
set TEST_NET40_FSHARP_SUITE=1
set TEST_NET40_FSHARPQA_SUITE=1
set TEST_CORECLR_COREUNIT_SUITE=1
set TEST_VS_IDEUNIT_SUITE=1
set TEST_FCS=1
set TEST_END_2_END=1
)
if /i "%ARG%" == "test-net40-fsharpqa" (
set _autoselect=0
set BUILD_NET40=1
set BUILD_NET40_FSHARP_CORE=1
set TEST_NET40_FSHARPQA_SUITE=1
)
if /i "%ARG%" == "test-compiler-unit" (
set _autoselect=0
set BUILD_NET40=1
set BUILD_NET40_FSHARP_CORE=1
set TEST_NET40_COMPILERUNIT_SUITE=1
)
if /i "%ARG%" == "test-net40-ideunit" (
set _autoselect=0
set BUILD_NET40=1
set BUILD_NET40_FSHARP_CORE=1
set BUILD_VS=1
set TEST_VS_IDEUNIT_SUITE=1
)
if /i "%ARG%" == "test-net40-coreunit" (
set _autoselect=0
set BUILD_NET40_FSHARP_CORE=1
set TEST_NET40_COREUNIT_SUITE=1
)
if /i "%ARG%" == "test-coreclr-coreunit" (
set _autoselect=0
set BUILD_PROTO_WITH_CORECLR_LKG=1
set BUILD_CORECLR=1
set TEST_CORECLR_COREUNIT_SUITE=1
)
if /i "%ARG%" == "test-net40-fsharp" (
set _autoselect=0
set BUILD_NET40=1
set BUILD_NET40_FSHARP_CORE=1
set TEST_NET40_FSHARP_SUITE=1
)
if /i "%ARG%" == "test-fcs" (
set _autoselect=0
set BUILD_FCS=1
set TEST_FCS=1
)
if /i "%ARG%" == "test-coreclr-fsharp" (
set _autoselect=0
set BUILD_NET40=1
set BUILD_NET40_FSHARP_CORE=1
set BUILD_PROTO_WITH_CORECLR_LKG=1
set BUILD_CORECLR=1
set TEST_CORECLR_FSHARP_SUITE=1
)
if /i "%ARG%" == "publicsign" (
set BUILD_PUBLICSIGN=1
)
if /i "%ARG%" == "init" (
set BUILD_PROTO_WITH_CORECLR_LKG=1
)
goto :EOF
:: Note: "goto :EOF" returns from an in-batchfile "call" command
:: in preference to returning from the entire batch file.
REM ------------------ Report config -----------------------
:MAIN
REM after this point, ARG variable should not be used, use only BUILD_* or TEST_*
REM all PB_* variables override any settings
REM if the `PB_SKIPTESTS` variable is set to 'true' then no tests should be built or run, even if explicitly specified
if /i "%PB_SKIPTESTS%" == "true" (
set TEST_NET40_COMPILERUNIT_SUITE=0
set TEST_NET40_COREUNIT_SUITE=0
set TEST_NET40_FSHARP_SUITE=0
set TEST_NET40_FSHARPQA_SUITE=0
set TEST_CORECLR_COREUNIT_SUITE=0
set TEST_CORECLR_FSHARP_SUITE=0
set TEST_VS_IDEUNIT_SUITE=0
)
if /i "%TEST_NET40_FSHARP_SUITE" == "1" (
if /i "%TEST_CORECLR_FSHARP_SUITE%" == "1" (
TEST_END_2_END=1
)
)
if /i "%BUILD_PROTO_WITH_CORECLR_LKG%" == "1" (
set NEEDS_DOTNET_CLI_TOOLS=1
)
if /i "%BUILD_CORECLR%" == "1" (
set NEEDS_DOTNET_CLI_TOOLS=1
)
if /i "%BUILD_FROMSOURCE%" == "1" (
set NEEDS_DOTNET_CLI_TOOLS=1
)
if /i "%BUILD_FCS%" == "1" (
set NEEDS_DOTNET_CLI_TOOLS=1
)
rem Decide if Proto need building
if NOT EXIST Proto\net40\bin\fsc.exe (
set BUILD_PROTO=1
)
rem
rem This stops the dotnet cli from hunting around and
rem finding the highest possible dotnet sdk version to use.
rem
rem description of dotnet lookup here:
rem https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet?tabs=netcore2x
set DOTNET_MULTILEVEL_LOOKUP=false
echo Build/Tests configuration:
echo.
echo BUILD_PROTO=%BUILD_PROTO%
echo BUILD_PROTO_WITH_CORECLR_LKG=%BUILD_PROTO_WITH_CORECLR_LKG%
echo BUILD_NET40=%BUILD_NET40%
echo BUILD_NET40_FSHARP_CORE=%BUILD_NET40_FSHARP_CORE%
echo BUILD_CORECLR=%BUILD_CORECLR%
echo BUILD_FROMSOURCE=%BUILD_FROMSOURCE%
echo BUILD_VS=%BUILD_VS%
echo BUILD_FCS=%BUILD_FCS%
echo BUILD_SETUP=%BUILD_SETUP%
echo BUILD_NUGET=%BUILD_NUGET%
echo BUILD_CONFIG=%BUILD_CONFIG%
echo BUILD_PUBLICSIGN=%BUILD_PUBLICSIGN%
echo BUILD_MICROBUILD=%BUILD_MICROBUILD%
echo.
echo PB_SKIPTESTS=%PB_SKIPTESTS%
echo PB_RESTORESOURCE=%PB_RESTORESOURCE%
echo.
echo SIGN_TYPE=%SIGN_TYPE%
echo TEST_FCS=%TEST_FCS%
echo TEST_NET40_COMPILERUNIT_SUITE=%TEST_NET40_COMPILERUNIT_SUITE%
echo TEST_NET40_COREUNIT_SUITE=%TEST_NET40_COREUNIT_SUITE%
echo TEST_NET40_FSHARP_SUITE=%TEST_NET40_FSHARP_SUITE%
echo TEST_NET40_FSHARPQA_SUITE=%TEST_NET40_FSHARPQA_SUITE%
echo TEST_CORECLR_COREUNIT_SUITE=%TEST_CORECLR_COREUNIT_SUITE%
echo TEST_CORECLR_FSHARP_SUITE=%TEST_CORECLR_FSHARP_SUITE%
echo TEST_VS_IDEUNIT_SUITE=%TEST_VS_IDEUNIT_SUITE%
echo INCLUDE_TEST_SPEC_NUNIT=%INCLUDE_TEST_SPEC_NUNIT%
echo INCLUDE_TEST_TAGS=%INCLUDE_TEST_TAGS%
echo TEMP=%TEMP%
:: load Visual Studio 2017 developer command prompt if VS150COMNTOOLS is not set
:: If this is not set, VsDevCmd.bat will change %cd% to [USERPROFILE]\source, causing the build to fail.
SET VSCMD_START_DIR=%cd%
:: Try find installation path of VS2017 with vswhere.exe
if "%VS150COMNTOOLS%" EQU "" if exist "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\" (
for /f "usebackq delims=" %%i in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -latest -prerelease -property installationPath`) do set VS_INSTALLATION_PATH=%%i
)
if "%VS_INSTALLATION_PATH%" NEQ "" (
call "%VS_INSTALLATION_PATH%\Common7\Tools\VsDevCmd.bat"
)
:: If there's no installation of VS2017 or VS2017 Preview, use the build tools
if "%VS150COMNTOOLS%" EQU "" if exist "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\BuildTools\Common7\Tools\VsDevCmd.bat" (
call "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\BuildTools\Common7\Tools\VsDevCmd.bat"
)
echo.
echo Environment
set
echo.
echo.
echo ---------------- Done with arguments, starting preparation -----------------
set BuildToolsPackage=Microsoft.VSSDK.BuildTools.15.1.192
if "%VSSDKInstall%"=="" (
set VSSDKInstall=%~dp0packages\%BuildToolsPackage%\tools\vssdk
)
if "%VSSDKToolsPath%"=="" (
set VSSDKToolsPath=%~dp0packages\%BuildToolsPackage%\tools\vssdk\bin
)
if "%VSSDKIncludes%"=="" (
set VSSDKIncludes=%~dp0packages\%BuildToolsPackage%\tools\vssdk\inc
)
if "%RestorePackages%"=="" (
set RestorePackages=true
)
@echo VSSDKInstall: %VSSDKInstall%
@echo VSSDKToolsPath: %VSSDKToolsPath%
@echo VSSDKIncludes: %VSSDKIncludes%
@call src\update.cmd signonly
:: Check prerequisites
if not "%VisualStudioVersion%" == "" goto vsversionset
if exist "%VS150COMNTOOLS%\..\ide\devenv.exe" set VisualStudioVersion=15.0
if not "%VisualStudioVersion%" == "" goto vsversionset
if not "%VisualStudioVersion%" == "" goto vsversionset
if exist "%VS150COMNTOOLS%\..\..\ide\devenv.exe" set VisualStudioVersion=15.0
if not "%VisualStudioVersion%" == "" goto vsversionset
if exist "%VS140COMNTOOLS%\..\ide\devenv.exe" set VisualStudioVersion=14.0
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\common7\ide\devenv.exe" set VisualStudioVersion=14.0
if exist "%ProgramFiles%\Microsoft Visual Studio 14.0\common7\ide\devenv.exe" set VisualStudioVersion=14.0
if not "%VisualStudioVersion%" == "" goto vsversionset
if exist "%VS120COMNTOOLS%\..\ide\devenv.exe" set VisualStudioVersion=12.0
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\common7\ide\devenv.exe" set VisualStudioVersion=12.0
if exist "%ProgramFiles%\Microsoft Visual Studio 12.0\common7\ide\devenv.exe" set VisualStudioVersion=12.0
:vsversionset
if "%VisualStudioVersion%" == "" echo Error: Could not find an installation of Visual Studio && goto :failure
if exist "%VS150COMNTOOLS%\..\..\MSBuild\15.0\Bin\MSBuild.exe" (
set _msbuildexe="%VS150COMNTOOLS%\..\..\MSBuild\15.0\Bin\MSBuild.exe"
goto :havemsbuild
)
if exist "%ProgramFiles(x86)%\MSBuild\%VisualStudioVersion%\Bin\MSBuild.exe" (
set _msbuildexe="%ProgramFiles(x86)%\MSBuild\%VisualStudioVersion%\Bin\MSBuild.exe"
goto :havemsbuild
)
if exist "%ProgramFiles%\MSBuild\%VisualStudioVersion%\Bin\MSBuild.exe" (
set _msbuildexe="%ProgramFiles%\MSBuild\%VisualStudioVersion%\Bin\MSBuild.exe"
goto :havemsbuild
)
echo Error: Could not find MSBuild.exe. && goto :failure
goto :eof
:havemsbuild
set _nrswitch=/nr:false
set msbuildflags=%_nrswitch% /nologo
REM set msbuildflags=%_nrswitch% /nologo
set _ngenexe="%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\ngen.exe"
if not exist %_ngenexe% echo Error: Could not find ngen.exe. && goto :failure
echo ---------------- Done with prepare, starting package restore ----------------
set _nugetexe="%~dp0.nuget\NuGet.exe"
set _nugetconfig="%~dp0NuGet.Config"
if "%RestorePackages%" == "true" (
if "%BUILD_FCS%" == "1" (
cd fcs
.paket\paket.exe restore
cd..
@if ERRORLEVEL 1 echo Error: Paket restore failed && goto :failure
)
%_ngenexe% install %_nugetexe% /nologo
set _nugetoptions=-PackagesDirectory packages -ConfigFile %_nugetconfig%
if not "%PB_RESTORESOURCE%" == "" (
set _nugetoptions=!_nugetoptions! -FallbackSource %PB_RESTORESOURCE%
)
echo _nugetoptions=!_nugetoptions!
%_nugetexe% restore packages.config !_nugetoptions!
@if ERRORLEVEL 1 echo Error: Nuget restore failed && goto :failure
if "%BUILD_SETUP%" == "1" (
%_nugetexe% restore setup\packages.config !_nugetoptions!
@if ERRORLEVEL 1 echo Error: Nuget restore failed && goto :failure
)
if not "%SIGN_TYPE%" == "" (
set signtoolnugetoptions=-PackagesDirectory %USERPROFILE%\.nuget\packages -ConfigFile %_nugetconfig%
if not "%PB_RESTORESOURCE%" == "" set signtoolnugetoptions=!signtoolnugetoptions! -FallbackSource %PB_RESTORESOURCE%
%_nugetexe% restore build\config\packages.config !signtoolnugetoptions!
@if ERRORLEVEL 1 echo Error: Nuget restore failed && goto :failure
)
set restore_fsharp_suite=0
if "%TEST_NET40_FSHARP_SUITE%" == "1" set restore_fsharp_suite=1
if "%TEST_CORECLR_FSHARP_SUITE%" == "1" set restore_fsharp_suite=1
if "!restore_fsharp_suite!" == "1" (
%_nugetexe% restore tests\fsharp\packages.config !_nugetoptions!
@if ERRORLEVEL 1 echo Error: Nuget restore failed && goto :failure
)
)
if "%NEEDS_DOTNET_CLI_TOOLS%" == "1" (
:: Restore the Tools directory
call %~dp0init-tools.cmd
)
set _dotnetcliexe=%~dp0Tools\dotnetcli\dotnet.exe
set _dotnet20exe=%~dp0Tools\dotnet20\dotnet.exe
set NUGET_PACKAGES=%~dp0packages
set path=%~dp0Tools\dotnet20\;%path%
echo ----------- Done with package restore, starting dependency uptake check -------------
if not "%PB_PackageVersionPropsUrl%" == "" (
set dependencyUptakeDir=%~dp0Tools\dependencyUptake
if not exist "!dependencyUptakeDir!" mkdir "!dependencyUptakeDir!"
:: download package version overrides
echo powershell -noprofile -executionPolicy RemoteSigned -command "Invoke-WebRequest -Uri '%PB_PackageVersionPropsUrl%' -OutFile '!dependencyUptakeDir!\PackageVersions.props'"
powershell -noprofile -executionPolicy RemoteSigned -command "Invoke-WebRequest -Uri '%PB_PackageVersionPropsUrl%' -OutFile '!dependencyUptakeDir!\PackageVersions.props'"
if ERRORLEVEL 1 echo Error downloading package version properties && goto :failure
:: prepare dependency uptake files
echo %_msbuildexe% %msbuildflags% %~dp0build\projects\PrepareDependencyUptake.proj /t:Build
%_msbuildexe% %msbuildflags% %~dp0build\projects\PrepareDependencyUptake.proj /t:Build
if ERRORLEVEL 1 echo Error building dependency uptake files && goto :failure
:: restore dependencies
%_nugetexe% restore !dependencyUptakeDir!\packages.config -PackagesDirectory packages -ConfigFile !dependencyUptakeDir!\NuGet.config
if ERRORLEVEL 1 echo Error restoring dependency uptake packages && goto :failure
:: set DotNetPackageVersionPropsPath
set DotNetPackageVersionPropsPath=!dependencyUptakeDir!\PackageVersions.props
)
set _fsiexe="packages\FSharp.Compiler.Tools.4.1.27\tools\fsi.exe"
if not exist %_fsiexe% echo Error: Could not find %_fsiexe% && goto :failure
%_ngenexe% install %_fsiexe% /nologo
if not exist %_nugetexe% echo Error: Could not find %_nugetexe% && goto :failure
%_ngenexe% install %_nugetexe% /nologo
echo ---------------- Done with package restore, verify buildfrom source ---------------
if "%BUILD_PROTO_WITH_CORECLR_LKG%" == "1" (
pushd src
call buildfromsource.cmd
@if ERRORLEVEL 1 echo Error: buildfromsource.cmd failed && goto :failure
popd
)
echo ---------------- Done with package restore, starting proto ------------------------
rem Build Proto
if "%BUILD_PROTO%" == "1" (
rmdir /s /q Proto
if "%BUILD_PROTO_WITH_CORECLR_LKG%" == "1" (
echo %_msbuildexe% %msbuildflags% src\fsharp-proto-build.proj /p:BUILD_PROTO_WITH_CORECLR_LKG=%BUILD_PROTO_WITH_CORECLR_LKG% /p:Configuration=Proto /p:DisableLocalization=true
%_msbuildexe% %msbuildflags% src\fsharp-proto-build.proj /p:BUILD_PROTO_WITH_CORECLR_LKG=%BUILD_PROTO_WITH_CORECLR_LKG% /p:Configuration=Proto /p:DisableLocalization=true
@if ERRORLEVEL 1 echo Error: compiler proto build failed && goto :failure
)
if "%BUILD_PROTO_WITH_CORECLR_LKG%" == "0" (
echo %_ngenexe% install packages\FSharp.Compiler.Tools.4.1.27\tools\fsc.exe /nologo
%_ngenexe% install packages\FSharp.Compiler.Tools.4.1.27\tools\fsc.exe /nologo
echo %_msbuildexe% %msbuildflags% src\fsharp-proto-build.proj /p:BUILD_PROTO_WITH_CORECLR_LKG=%BUILD_PROTO_WITH_CORECLR_LKG% /p:Configuration=Proto /p:DisableLocalization=true
%_msbuildexe% %msbuildflags% src\fsharp-proto-build.proj /p:BUILD_PROTO_WITH_CORECLR_LKG=%BUILD_PROTO_WITH_CORECLR_LKG% /p:Configuration=Proto /p:DisableLocalization=true
@if ERRORLEVEL 1 echo Error: compiler proto build failed && goto :failure
)
echo %_ngenexe% install Proto\net40\bin\fsc.exe /nologo
%_ngenexe% install Proto\net40\bin\fsc.exe /nologo
@if ERRORLEVEL 1 echo Error: NGen of proto failed && goto :failure
)
if "%NEEDS_DOTNET_CLI_TOOLS%" == "1" (
echo ---------------- Done with proto, starting SDK restore ------------------------
:: Restore projects using dotnet CLI tool
echo %_dotnet20exe% restore -v:d build-everything.proj %msbuildflags% %BUILD_DIAG%
%_dotnet20exe% restore -v:d build-everything.proj %msbuildflags% %BUILD_DIAG%
)
echo ---------------- Done with SDK restore, starting build ------------------------
if "%BUILD_PHASE%" == "1" (
echo %_msbuildexe% %msbuildflags% build-everything.proj /t:Restore %BUILD_DIAG%
%_msbuildexe% %msbuildflags% build-everything.proj /t:Restore %BUILD_DIAG%
echo %_msbuildexe% %msbuildflags% build-everything.proj /p:Configuration=%BUILD_CONFIG% %BUILD_DIAG% /p:BUILD_PUBLICSIGN=%BUILD_PUBLICSIGN%
%_msbuildexe% %msbuildflags% build-everything.proj /p:Configuration=%BUILD_CONFIG% %BUILD_DIAG% /p:BUILD_PUBLICSIGN=%BUILD_PUBLICSIGN%
@if ERRORLEVEL 1 echo Error build failed && goto :failure
)
echo ---------------- Done with build, starting assembly version checks ---------------
set asmvercheckpath=%~dp0tests\fsharpqa\testenv\src\AssemblyVersionCheck
if "%BUILD_NET40%" == "1" (
echo "%~dp0%BUILD_CONFIG%\net40\bin\fsi.exe" %asmvercheckpath%\AssemblyVersionCheck.fsx -- "%~dp0build\config\AssemblySignToolData.json" "%~dp0%BUILD_CONFIG%"
"%~dp0%BUILD_CONFIG%\net40\bin\fsi.exe" %asmvercheckpath%\AssemblyVersionCheck.fsx -- "%~dp0build\config\AssemblySignToolData.json" "%~dp0%BUILD_CONFIG%"
if ERRORLEVEL 1 echo Error verifying assembly versions and commit hashes. && goto :failure
)
echo ---------------- Done with assembly version checks, starting assembly signing ---------------
if not "%SIGN_TYPE%" == "" (
echo build\scripts\run-signtool.cmd -MSBuild %_msbuildexe% -SignType %SIGN_TYPE% -ConfigFile build\config\AssemblySignToolData.json
call build\scripts\run-signtool.cmd -MSBuild %_msbuildexe% -SignType %SIGN_TYPE% -ConfigFile build\config\AssemblySignToolData.json
if ERRORLEVEL 1 echo Error running sign tool && goto :failure
)
echo ---------------- Done with assembly signing, start package creation ---------------
echo %_msbuildexe% %msbuildflags% build-nuget-packages.proj /p:Configuration=%BUILD_CONFIG%
%_msbuildexe% %msbuildflags% build-nuget-packages.proj /p:Configuration=%BUILD_CONFIG%
if ERRORLEVEL 1 echo Error building NuGet packages && goto :failure
if "%BUILD_SETUP%" == "1" (
echo %_msbuildexe% %msbuildflags% setup\build-msi.proj /p:Configuration=%BUILD_CONFIG%
%_msbuildexe% %msbuildflags% setup\build-msi.proj /p:Configuration=%BUILD_CONFIG%
if ERRORLEVEL 1 echo Error building MSI && goto :failure
)
if not "%SIGN_TYPE%" == "" (
echo build\scripts\run-signtool.cmd -MSBuild %_msbuildexe% -SignType %SIGN_TYPE% -ConfigFile build\config\MsiSignToolData.json
call build\scripts\run-signtool.cmd -MSBuild %_msbuildexe% -SignType %SIGN_TYPE% -ConfigFile build\config\MsiSignToolData.json
if ERRORLEVEL 1 echo Error running sign tool && goto :failure
)
if "%BUILD_SETUP%" == "1" (
echo %_msbuildexe% %msbuildflags% setup\build-insertion.proj /p:Configuration=%BUILD_CONFIG%
%_msbuildexe% %msbuildflags% setup\build-insertion.proj /p:Configuration=%BUILD_CONFIG%
if ERRORLEVEL 1 echo Error building insertion packages && goto :failure
)
if not "%SIGN_TYPE%" == "" (
echo build\scripts\run-signtool.cmd -MSBuild %_msbuildexe% -SignType %SIGN_TYPE% -ConfigFile build\config\InsertionSignToolData.json
call build\scripts\run-signtool.cmd -MSBuild %_msbuildexe% -SignType %SIGN_TYPE% -ConfigFile build\config\InsertionSignToolData.json
if ERRORLEVEL 1 echo Error running sign tool && goto :failure
)
echo ---------------- Done with signing, building insertion files ---------------
if "%BUILD_SETUP%" == "1" (
echo %_msbuildexe% %msbuildflags% setup\Swix\Microsoft.FSharp.vsmanproj /p:Configuration=%BUILD_CONFIG%
%_msbuildexe% %msbuildflags% setup\Swix\Microsoft.FSharp.vsmanproj /p:Configuration=%BUILD_CONFIG%
if ERRORLEVEL 1 echo Error building .vsmanproj && goto :failure
)
echo ---------------- Done building insertion files, starting pack/update/prepare ---------------
if "%BUILD_NET40_FSHARP_CORE%" == "1" (
echo ---------------- start update.cmd ---------------
call src\update.cmd %BUILD_CONFIG% -ngen
)
@echo set NUNITPATH=packages\NUnit.Console.3.0.0\tools\
set NUNITPATH=packages\NUnit.Console.3.0.0\tools\
if not exist %NUNITPATH% echo Error: Could not find %NUNITPATH% && goto :failure
@echo xcopy "%NUNITPATH%*.*" "%~dp0tests\fsharpqa\testenv\bin\nunit\*.*" /S /Q /Y
xcopy "%NUNITPATH%*.*" "%~dp0tests\fsharpqa\testenv\bin\nunit\*.*" /S /Q /Y
@echo xcopy "%~dp0tests\fsharpqa\testenv\src\nunit*.*" "%~dp0tests\fsharpqa\testenv\bin\nunit\*.*" /S /Q /Y
xcopy "%~dp0tests\fsharpqa\testenv\src\nunit*.*" "%~dp0tests\fsharpqa\testenv\bin\nunit\*.*" /S /Q /Y
set X86_PROGRAMFILES=%ProgramFiles%
if "%OSARCH%"=="AMD64" set X86_PROGRAMFILES=%ProgramFiles(x86)%
set SYSWOW64=.
if "%OSARCH%"=="AMD64" set SYSWOW64=SysWoW64
if not "%OSARCH%"=="x86" set REGEXE32BIT=%WINDIR%\syswow64\reg.exe
echo SDK environment vars from Registry
echo ==================================
for /d %%i in (%WINDIR%\Microsoft.NET\Framework\v4.0.?????) do set CORDIR=%%i
set PATH=%PATH%;%CORDIR%
set REGEXE32BIT=reg.exe
IF NOT DEFINED SNEXE32 IF EXIST "%WINSDKNETFXTOOLS%\sn.exe" set SNEXE32=%WINSDKNETFXTOOLS%sn.exe
IF NOT DEFINED SNEXE64 IF EXIST "%WINSDKNETFXTOOLS%x64\sn.exe" set SNEXE64=%WINSDKNETFXTOOLS%x64\sn.exe
echo.
echo SDK environment vars
echo =======================
echo WINSDKNETFXTOOLS: %WINSDKNETFXTOOLS%
echo SNEXE32: %SNEXE32%
echo SNEXE64: %SNEXE64%
echo
if "%TEST_NET40_COMPILERUNIT_SUITE%" == "0" if "%TEST_FCS%" == "0" if "%TEST_NET40_COREUNIT_SUITE%" == "0" if "TEST_CORECLR_FSHARP_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
if "%no_test%" == "1" goto :success
echo ---------------- Done with update, starting tests -----------------------
if NOT "%INCLUDE_TEST_SPEC_NUNIT%" == "" (
set WHERE_ARG_NUNIT=--where "%INCLUDE_TEST_SPEC_NUNIT%"
)
if NOT "%INCLUDE_TEST_TAGS%" == "" (
set TTAGS_ARG_RUNALL=-ttags:%INCLUDE_TEST_TAGS%
)
echo WHERE_ARG_NUNIT=!WHERE_ARG_NUNIT!
set NUNITPATH=%~dp0tests\fsharpqa\testenv\bin\nunit\
set NUNIT3_CONSOLE=%~dp0packages\NUnit.Console.3.0.0\tools\nunit3-console.exe
set link_exe=%~dp0tests\fsharpqa\testenv\bin\link\link.exe
if not exist "%link_exe%" (
echo Error: failed to find "%link_exe%" use nuget to restore the VisualCppTools package
goto :failure
)
if /I not "%single_threaded%" == "true" (set PARALLEL_ARG=-procs:%NUMBER_OF_PROCESSORS%) else set PARALLEL_ARG=-procs:0
set FSCBINPATH=%~dp0%BUILD_CONFIG%\net40\bin
set RESULTSDIR=%~dp0tests\TestResults
if not exist "%RESULTSDIR%" (mkdir "%RESULTSDIR%")
ECHO FSCBINPATH=%FSCBINPATH%
ECHO RESULTSDIR=%RESULTSDIR%
ECHO link_exe=%link_exe%
ECHO NUNIT3_CONSOLE=%NUNIT3_CONSOLE%
ECHO NUNITPATH=%NUNITPATH%
REM ---------------- test-net40-fsharp -----------------------
if "%TEST_NET40_FSHARP_SUITE%" == "1" (
set OUTPUTARG=
set ERRORARG=
set OUTPUTFILE=
set ERRORFILE=
set XMLFILE=!RESULTSDIR!\test-net40-fsharp-results.xml
if "%CI%" == "1" (
set OUTPUTFILE=!RESULTSDIR!\test-net40-fsharp-output.log
set OUTPUTARG=--output:"!OUTPUTFILE!"
set ERRORFILE=!RESULTSDIR!\test-net40-fsharp-errors.log
set ERRORARG=--err:"!ERRORFILE!"
)
echo "!NUNIT3_CONSOLE!" --verbose "!FSCBINPATH!\FSharp.Tests.FSharpSuite.dll" --framework:V4.0 --work:"!FSCBINPATH!" !OUTPUTARG! !ERRORARG! --result:"!XMLFILE!;format=nunit3" !WHERE_ARG_NUNIT!
"!NUNIT3_CONSOLE!" --verbose "!FSCBINPATH!\FSharp.Tests.FSharpSuite.dll" --framework:V4.0 --work:"!FSCBINPATH!" !OUTPUTARG! !ERRORARG! --result:"!XMLFILE!;format=nunit3" !WHERE_ARG_NUNIT!
if errorlevel 1 (
type "!ERRORFILE!"
echo -----------------------------------------------------------------
echo Error: Running tests net40-fsharp failed, see log above -- FAILED
echo -----------------------------------------------------------------
goto :failure
)
)
REM ---------------- test-fcs -----------------------
if "%TEST_FCS%" == "1" (
del /q fcs\FSharp.Compiler.Service.Tests\TestResults\*.trx
echo "!_dotnet20exe!" test fcs/FSharp.Compiler.Service.Tests/FSharp.Compiler.Service.Tests.fsproj -c Release --logger:trx
"!_dotnet20exe!" test fcs/FSharp.Compiler.Service.Tests/FSharp.Compiler.Service.Tests.fsproj -c Release --logger:trx
if errorlevel 1 (
type fcs\FSharp.Compiler.Service.Tests\TestResults\*.trx
echo -----------------------------------------------------------------
echo Error: Running FCS tests failed. See XML logging output above. Search for 'outcome="Failed"' or 'Failed '
echo .
echo Error: Note that tests were run with both .NET Core and .NET Framework.
echo Error: Try running tests locally and using
echo .
echo dotnet test fcs/FSharp.Compiler.Service.Tests/FSharp.Compiler.Service.Tests.fsproj -c Release --logger:trx
echo .
echo Error: and look for results in
echo .
echo fcs\FSharp.Compiler.Service.Tests\TestResults\*.trx
echo .
echo -----------------------------------------------------------------
goto :failure
)
)
REM ---------------- end2end -----------------------
if "%TEST_END_2_END%" == "1" (
pushd %~dp0tests\EndToEndBuildTests
echo Execute end to end compiler tests
echo call EndToEndBuildTests.cmd
call EndToEndBuildTests.cmd
if errorlevel 1 (
popd
Echo end to end tests failed.
goto :failure
)
)
REM ---------------- net40-fsharpqa -----------------------
set OSARCH=%PROCESSOR_ARCHITECTURE%
rem Set this to 1 in order to use an external compiler host process
rem This only has an effect when running the FSHARPQA tests, but can
rem greatly speed up execution since fsc.exe does not need to be spawned thousands of times
set HOSTED_COMPILER=1
if "%TEST_NET40_FSHARPQA_SUITE%" == "1" (
set CSC_PIPE=%~dp0packages\Microsoft.Net.Compilers.2.7.0\tools\csc.exe
set FSC=!FSCBINPATH!\fsc.exe
set FSCOREDLLPATH=!FSCBinPath!\FSharp.Core.dll
set PATH=!FSCBINPATH!;!PATH!
set perlexe=%~dp0packages\StrawberryPerl64.5.22.2.1\Tools\perl\bin\perl.exe
if not exist !perlexe! (echo Error: perl was not downloaded from check the packages directory: !perlexe! && goto :failure )
set OUTPUTFILE=test-net40-fsharpqa-results.log
set ERRORFILE=test-net40-fsharpqa-errors.log
set FAILENV=test-net40-fsharpqa-errors
pushd %~dp0tests\fsharpqa\source
echo !perlexe! %~dp0tests\fsharpqa\testenv\bin\runall.pl -resultsroot !RESULTSDIR! -results !OUTPUTFILE! -log !ERRORFILE! -fail !FAILENV! -cleanup:no !TTAGS_ARG_RUNALL! !PARALLEL_ARG!
!perlexe! %~dp0tests\fsharpqa\testenv\bin\runall.pl -resultsroot !RESULTSDIR! -results !OUTPUTFILE! -log !ERRORFILE! -fail !FAILENV! -cleanup:no !TTAGS_ARG_RUNALL! !PARALLEL_ARG!
popd
if ERRORLEVEL 1 (
type "%RESULTSDIR%\!OUTPUTFILE!"
echo -----------------------------------------------------------------
type "%RESULTSDIR%\!ERRORFILE!"
echo -----------------------------------------------------------------
echo Error: Running tests net40-fsharpqa failed, see logs above -- FAILED
echo -----------------------------------------------------------------
goto :failure
)
)
REM ---------------- net40-compilerunit -----------------------