mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-03 23:49:44 +00:00
* added end-to-end nuget package test * reset the changes in OnnxRuntime.CSharp.proj * revert the testdata directory path * revert inference tests proj file * added script for running end-to-end tests * fix in the runtest.bat * added error checking in runtest * fixed paths in the test project * added runtest.sh * fix protoc path * updated executable attributes for the runtest scripts * added some log to debug protoc failures * removed the protoc and duplicate test code, reuse unit-test code for end-to-end test * copy always * fix working dir paths in runtest.sh * added a build.py flag to download test data without running the c++ tests * added a script for running the test under docker * added script for docker run of the test
29 lines
No EOL
1,004 B
Batchfile
Executable file
29 lines
No EOL
1,004 B
Batchfile
Executable file
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.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
|
|
) |