xref: /aosp_15_r20/external/flatbuffers/tests/FlatBuffers.Test/NetTest.bat (revision 890232f25432b36107d06881e0a25aaa6b473652)
1*890232f2SAndroid Build Coastguard Worker@echo off
2*890232f2SAndroid Build Coastguard Worker@REM Builds a .NET solution file, adds the project, builds it
3*890232f2SAndroid Build Coastguard Worker@REM and executes it. Cleans up all generated files and directories.
4*890232f2SAndroid Build Coastguard Worker
5*890232f2SAndroid Build Coastguard Workerset TEMP_BIN=.tmp
6*890232f2SAndroid Build Coastguard Worker
7*890232f2SAndroid Build Coastguard Worker@REM Run the .NET Core tests
8*890232f2SAndroid Build Coastguard Workerset CORE_FILE=FlatBuffers.Core.Test
9*890232f2SAndroid Build Coastguard Workerset CORE_PROJ_FILE=%CORE_FILE%.csproj
10*890232f2SAndroid Build Coastguard Workerset CORE_SLN_FILE=%CORE_FILE%.sln
11*890232f2SAndroid Build Coastguard Workerdotnet new sln --force --name %CORE_FILE%
12*890232f2SAndroid Build Coastguard Workerdotnet sln %CORE_SLN_FILE% add %CORE_PROJ_FILE%
13*890232f2SAndroid Build Coastguard Workerdotnet build -c Release -o %TEMP_BIN% -v quiet %CORE_PROJ_FILE%
14*890232f2SAndroid Build Coastguard Worker%TEMP_BIN%\%CORE_FILE%.exe
15*890232f2SAndroid Build Coastguard Workerdel /f %CORE_SLN_FILE%
16*890232f2SAndroid Build Coastguard Worker
17*890232f2SAndroid Build Coastguard Worker@REM TODO(dbaileychess): Support the other configurations in NetTest.sh
18*890232f2SAndroid Build Coastguard Worker
19*890232f2SAndroid Build Coastguard Worker@REM remove the temp bin directory, with files (/S) and quietly (/Q)
20*890232f2SAndroid Build Coastguard WorkerRD /S /Q %TEMP_BIN%
21