mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-31 23:27:43 +00:00
* add file for cshar test using CUDA docker image * add gpu csharp end to end test scripts * uncomment data download * minor change to kick off ci build * small change to kick off build * Add windows GPU test runner script
29 lines
1,009 B
Batchfile
29 lines
1,009 B
Batchfile
REM Copyright (c) Microsoft Corporation. All rights reserved.
|
|
REM Licensed under the MIT License.
|
|
|
|
@echo off
|
|
SETLOCAL EnableDelayedExpansion
|
|
|
|
set LocalNuGetRepo=%1
|
|
REM WorkingDirectory is Build.SourcesDirectory\csharp
|
|
set /p MajorVersionNumber=<..\VERSION_NUMBER
|
|
set VersionSuffix=
|
|
IF NOT DEFINED IsReleaseBuild (
|
|
FOR /F "tokens=* USEBACKQ" %%F IN (`git rev-parse --short HEAD`) DO (
|
|
set VersionSuffix=-dev-%%F
|
|
)
|
|
)
|
|
|
|
set CurrentOnnxRuntimeVersion=%MajorVersionNumber%%VersionSuffix%
|
|
@echo %CurrentOnnxRuntimeVersion%
|
|
dotnet restore test\Microsoft.ML.OnnxRuntime.EndToEndTests\Microsoft.ML.OnnxRuntime.EndToEndTests.Gpu.csproj -s %LocalNuGetRepo% --configfile .\Nuget.CSharp.config
|
|
if NOT errorlevel 0 (
|
|
@echo "Failed to restore nuget packages for the test project"
|
|
Exit 1
|
|
)
|
|
|
|
dotnet test test\Microsoft.ML.OnnxRuntime.EndToEndTests\Microsoft.ML.OnnxRuntime.EndToEndTests.csproj --no-restore
|
|
if NOT errorlevel 0 (
|
|
@echo "Failed to build or execute the end-to-end test"
|
|
Exit 1
|
|
)
|