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

Commit274cec2

Browse files
committed
Merge pull requestfsharp#237 from 7sharp9/fsharp_30_tests
Tests for F# 3.0 (F#3.1 back port)
2 parents05219cb +f0824c7 commit274cec2

File tree

1,318 files changed

+157658
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,318 files changed

+157658
-0
lines changed

‎tests/ChompErr.bat‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
@if"%_echo%"==""echooff
2+
if /I%1EQU0 (goto Skip )
3+
4+
ifnotdefined _UNATTENDEDLOG (gotoExit )
5+
6+
echo ERRORLEVEL=%1: in%2>>%_UNATTENDEDLOG%
7+
echo current directory is%CD%>>%_UNATTENDEDLOG%
8+
:LOG_ERRORS
9+
if"%~3"=="" (
10+
echo.>>%_UNATTENDEDLOG%
11+
exit /b0
12+
)
13+
echo"%~3">>%_UNATTENDEDLOG%
14+
shift /3
15+
goto LOG_ERRORS
16+
17+
18+
:Skip
19+
exit /b0
20+
21+
:Exit
22+
echo ERRORLEVEL=%1 : in%2
23+
echo current directory is%CD%
24+
:ECHO_ERRORS
25+
if"%~3"=="" (
26+
echo
27+
exit /b1
28+
)
29+
echo%~3
30+
shift /3
31+
goto ECHO_ERRORS

‎tests/build-and-run.bat‎

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
@if"%_echo%"==""echooff
2+
3+
setlocal
4+
set_ScriptHome=%~dp0%
5+
6+
if"%_UNATTENDEDLOG%"==""set_UNATTENDEDLOG=%~dp0%\build-and-run.log
7+
echo Start:>_UNATTENDEDLOG
8+
9+
ifexist tdirs (
10+
for /f%%iin (tdirs)do (
11+
ifexist"%%i" (
12+
pushd%%i
13+
echo **************************************************
14+
cd
15+
cd>>%_UNATTENDEDLOG%
16+
echo **************************************************
17+
call%_ScriptHome%\build-and-run.bat
18+
ifERRORLEVEL1gotoExit
19+
popd
20+
)
21+
)
22+
)
23+
24+
ifNOTexist tdirs (
25+
ifexist build.bat (
26+
call .\build.bat
27+
ifERRORLEVEL1exit /b1
28+
)
29+
30+
ifexist run.bat (
31+
call .\run.bat
32+
ifERRORLEVEL1exit /b1
33+
)
34+
35+
ifNOTexist build.bat (
36+
ifNOTexist run.bat (
37+
echo FAILURE: build.bat and run.bat not found. Check%CD%\..\tdirs
38+
call .\build.bat>NUL2>&1
39+
ifERRORLEVEL1goto Error
40+
)
41+
)
42+
)
43+
44+
:Exit
45+
endlocal
46+
47+
exit /b%ERRORLEVEL%
48+
49+
:Error
50+
call%_ScriptHome%\ChompErr.bat%ERRORLEVEL%%~f0
51+
endlocal
52+
exit /b%ERRORLEVEL%

‎tests/build.bat‎

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
@if"%_echo%"==""echooff
2+
3+
setlocal
4+
set_ScriptHome=%~dp0%
5+
6+
ifexist tdirs (
7+
for /f%%iin (tdirs)do (
8+
ifexist%%i (
9+
pushd%%i
10+
echo **************************************************
11+
cd
12+
echo **************************************************
13+
call%_ScriptHome%\build.bat
14+
ifERRORLEVEL1goto Error
15+
popd
16+
)
17+
)
18+
)
19+
20+
ifNOTexist tdirs (
21+
ifexist build.bat (
22+
call .\build.bat
23+
ifERRORLEVEL1goto Error
24+
)
25+
)
26+
27+
echo Built fsharp ok.
28+
:Ok
29+
endlocal
30+
exit /b0
31+
32+
:Error
33+
endlocal
34+
exit /b%ERRORLEVEL%
35+
36+
37+

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp