System.Data.SQLite
Check-in [99512edafb]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Robustness and consistency enhancements for the test suite wrapper for .NET Standard 2.0.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 99512edafb994445c767076cda48ae7cd8ae2874
User & Date: mistachkin 2018-07-26 01:35:08
Context
2018-07-26
01:38
Update some error messages. check-in: 135d2bad0e user: mistachkin tags: trunk
01:35
Robustness and consistency enhancements for the test suite wrapper for .NET Standard 2.0. check-in: 99512edafb user: mistachkin tags: trunk
00:28
Testing and release management updates for the .NET Standard 2.0. check-in: 228b82e737 user: mistachkin tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to Setup/set_common.bat.

30
31
32
33
34
35
36








37
38
39
40
41
42
43
IF NOT DEFINED TEST_CONFIGURATIONS (
  IF DEFINED TEST_DEBUG (
    SET TEST_CONFIGURATIONS=Debug Release
  ) ELSE (
    SET TEST_CONFIGURATIONS=Release
  )
)









IF NOT DEFINED BAKE_CONFIGURATIONS (
  IF DEFINED BAKE_DEBUG (
    SET BAKE_CONFIGURATIONS=Debug DebugNativeOnly Release ReleaseNativeOnly
  ) ELSE (
    SET BAKE_CONFIGURATIONS=Release ReleaseNativeOnly
  )







>
>
>
>
>
>
>
>







30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
IF NOT DEFINED TEST_CONFIGURATIONS (
  IF DEFINED TEST_DEBUG (
    SET TEST_CONFIGURATIONS=Debug Release
  ) ELSE (
    SET TEST_CONFIGURATIONS=Release
  )
)

IF NOT DEFINED TEST_NATIVE_CONFIGURATIONS (
  IF DEFINED TEST_DEBUG (
    SET TEST_NATIVE_CONFIGURATIONS=DebugNativeOnly ReleaseNativeOnly
  ) ELSE (
    SET TEST_NATIVE_CONFIGURATIONS=ReleaseNativeOnly
  )
)

IF NOT DEFINED BAKE_CONFIGURATIONS (
  IF DEFINED BAKE_DEBUG (
    SET BAKE_CONFIGURATIONS=Debug DebugNativeOnly Release ReleaseNativeOnly
  ) ELSE (
    SET BAKE_CONFIGURATIONS=Release ReleaseNativeOnly
  )

Changes to Setup/test_net_standard_20.bat.

55
56
57
58
59
60
61






62
63
64
65
66






















67
68
69
70
71
72
73
..
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
...
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

IF NOT DEFINED DOTNET (
  SET DOTNET=dotnet.exe
)

%_VECHO% DotNet = '%DOTNET%'







IF NOT DEFINED TEST_CONFIGURATIONS (
  SET TEST_CONFIGURATIONS=Release
)

%_VECHO% TestConfigurations = '%TEST_CONFIGURATIONS%'























IF NOT DEFINED YEARS (
  SET YEARS=NetStandard20
)

%_VECHO% Years = '%YEARS%'

................................................................................
IF ERRORLEVEL 1 (
  ECHO Could not change directory to "%ROOT%".
  GOTO errors
)

SET TEST_ALL=1

FOR %%C IN (%TEST_CONFIGURATIONS%) DO (
  FOR %%Y IN (%YEARS%) DO (
    FOR %%N IN (%NATIVE_YEARS%) DO (
      IF EXIST "bin\%%Y\%%C\bin" (
        IF EXIST "bin\%%N\%PLATFORM%\%%C" (
          %__ECHO% "%DOTNET%" exec "Externals\Eagle\bin\netStandard20\%EAGLESHELL%" %PREARGS% -anyInitialize "set test_year {%%Y}; set test_native_year {%%N}; set test_configuration {%%C}" -file "%TEST_FILE%" %POSTARGS%

          IF ERRORLEVEL 1 (
            ECHO Testing of "%%Y/%%N/%%C" .NET Standard 2.0 assembly failed.
            GOTO errors
          )
        ) ELSE (
          %_AECHO% Native directory "bin\%%N\%PLATFORM%\%%C" not found, skipped.
        )
      ) ELSE (
        %_AECHO% Managed directory "bin\%%Y\%%C\bin" not found, skipped.
      )
    )
  )
)

%__ECHO2% POPD

IF ERRORLEVEL 1 (
................................................................................
  )
  IF NOT DEFINED %DOTNET%_PATH (
    ECHO The .NET Core executable "%DOTNET%" is required to be in the PATH.
    GOTO errors
  )
  GOTO :EOF


































:fn_UnsetVariable
  SETLOCAL


  SET VALUE=%1
  IF DEFINED VALUE (
    SET VALUE=

    ENDLOCAL
    SET %VALUE%=
  ) ELSE (
    ENDLOCAL
  )
  CALL :fn_ResetErrorLevel
  GOTO :EOF

:fn_ResetErrorLevel
  VERIFY > NUL
  GOTO :EOF

:fn_SetErrorLevel







>
>
>
>
>
>
|
|


|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







 







|


|
<
<
<
<
<
<
<
<
<
<
<
<
<







 







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|

>
>
|
<
<
>
|
|
<
<

<







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
...
126
127
128
129
130
131
132
133
134
135
136













137
138
139
140
141
142
143
...
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

IF NOT DEFINED DOTNET (
  SET DOTNET=dotnet.exe
)

%_VECHO% DotNet = '%DOTNET%'

IF NOT DEFINED SUBCOMMANDS (
  SET SUBCOMMANDS=exec
)

%_VECHO% SubCommands = '%SUBCOMMANDS%'

IF NOT DEFINED TEST_NATIVE_CONFIGURATIONS (
  SET TEST_NATIVE_CONFIGURATIONS=ReleaseNativeOnly
)

%_VECHO% TestNativeConfigurations = '%TEST_NATIVE_CONFIGURATIONS%'

IF DEFINED PLATFORM (
  %_AECHO% Skipping platform detection, already set...
  GOTO skip_detectPlatform
)

IF /I "%PROCESSOR_ARCHITECTURE%" == "x86" (
  SET PLATFORM=Win32
)

IF /I "%PROCESSOR_ARCHITECTURE%" == "AMD64" (
  SET PLATFORM=x64
)

:skip_detectPlatform

IF NOT DEFINED PLATFORM (
  ECHO Unsupported platform.
  GOTO errors
)

%_VECHO% Platform = '%PLATFORM%'

IF NOT DEFINED YEARS (
  SET YEARS=NetStandard20
)

%_VECHO% Years = '%YEARS%'

................................................................................
IF ERRORLEVEL 1 (
  ECHO Could not change directory to "%ROOT%".
  GOTO errors
)

SET TEST_ALL=1

FOR %%C IN (%TEST_NATIVE_CONFIGURATIONS%) DO (
  FOR %%Y IN (%YEARS%) DO (
    FOR %%N IN (%NATIVE_YEARS%) DO (
      CALL :fn_RunDotNetCoreTestSuite %%C %%Y %%N













    )
  )
)

%__ECHO2% POPD

IF ERRORLEVEL 1 (
................................................................................
  )
  IF NOT DEFINED %DOTNET%_PATH (
    ECHO The .NET Core executable "%DOTNET%" is required to be in the PATH.
    GOTO errors
  )
  GOTO :EOF

:fn_RunDotNetCoreTestSuite
  SET NATIVE_CONFIGURATION=%1
  IF NOT DEFINED NATIVE_CONFIGURATION (
    ECHO Cannot run test suite, missing native configuration.
    GOTO errors
  )
  SET YEAR=%2
  IF NOT DEFINED YEAR (
    ECHO Cannot run test suite, missing year.
    GOTO errors
  )
  SET NATIVE_YEAR=%3
  IF NOT DEFINED NATIVE_YEAR (
    ECHO Cannot run test suite, missing native year.
    GOTO errors
  )
  SET CONFIGURATION=%NATIVE_CONFIGURATION%
  SET CONFIGURATION=%CONFIGURATION:NativeOnly=%
  IF EXIST "bin\%YEAR%\%CONFIGURATION%\bin" (
    IF EXIST "bin\%NATIVE_YEAR%\%PLATFORM%\%NATIVE_CONFIGURATION%" (
      %__ECHO% "%DOTNET%" %SUBCOMMANDS% "Externals\Eagle\bin\netStandard20\%EAGLESHELL%" %PREARGS% -anyInitialize "set test_year {%YEAR%}; set test_native_year {%NATIVE_YEAR%}; set test_configuration {%CONFIGURATION%}" -file "%TEST_FILE%" %POSTARGS%
      IF ERRORLEVEL 1 (
        ECHO Testing of "%YEAR%/%NATIVE_YEAR%/%CONFIGURATION%" .NET Standard 2.0 assembly failed.
        GOTO errors
      )
    ) ELSE (
      %_AECHO% Native directory "bin\%NATIVE_YEAR%\%PLATFORM%\%NATIVE_CONFIGURATION%" not found, skipped.
    )
  ) ELSE (
    %_AECHO% Managed directory "bin\%YEAR%\%CONFIGURATION%\bin" not found, skipped.
  )
  GOTO :EOF

:fn_SetVariable
  SETLOCAL
  SET __ECHO_CMD=ECHO %%%2%%
  FOR /F "delims=" %%V IN ('%__ECHO_CMD%') DO (
    SET VALUE=%%V


  )
  ENDLOCAL && (
    SET %1=%VALUE%


  )

  GOTO :EOF

:fn_ResetErrorLevel
  VERIFY > NUL
  GOTO :EOF

:fn_SetErrorLevel