Skip to content

Commit

Permalink
run gpu test with new package
Browse files Browse the repository at this point in the history
  • Loading branch information
mszhanyi committed Dec 21, 2023
1 parent c1d02b3 commit 1618cf2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,12 @@ IF NOT errorlevel 0 (
%dn% list test\Microsoft.ML.OnnxRuntime.EndToEndTests\Microsoft.ML.OnnxRuntime.EndToEndTests.csproj package
dir test\Microsoft.ML.OnnxRuntime.EndToEndTests\packages\

IF "%PACKAGENAME%"=="Microsoft.ML.OnnxRuntime.Gpu" (
set gpu_package=F
IF "%PACKAGENAME%"=="Microsoft.ML.OnnxRuntime.Gpu" set gpu_package=T
IF "%PACKAGENAME%"=="Microsoft.ML.OnnxRuntime.Gpu.Windows" set gpu_package=T
IF %%gpu_package%%=="T" (
set TESTONGPU=ON
%dn% test -p:DefineConstants=USE_TENSORRT test\Microsoft.ML.OnnxRuntime.EndToEndTests\Microsoft.ML.OnnxRuntime.EndToEndTests.csproj --no-restore --filter TensorRT
%dn% test -p:DefineConstants=USE_TENSORRT test\Microsoft.ML.OnnxRuntime.EndToEndTests\Microsoft.ML.OnnxRuntime.EndToEndTests.csproj --no-restore --filter TensorRT

IF NOT errorlevel 0 (
@echo "Failed to build or execute the end-to-end test"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ if [ $RunTestCsharp = "true" ]; then
exit 1
fi

if [ $PACKAGENAME = "Microsoft.ML.OnnxRuntime.Gpu" ]; then
if [ $PACKAGENAME = "Microsoft.ML.OnnxRuntime.Gpu" ] || [ $PACKAGENAME = "Microsoft.ML.OnnxRuntime.Gpu.Linux" ]; then

Check notice on line 35 in csharp/test/Microsoft.ML.OnnxRuntime.EndToEndTests/runtest.sh

View workflow job for this annotation

GitHub Actions / shellcheck

[shellcheck] csharp/test/Microsoft.ML.OnnxRuntime.EndToEndTests/runtest.sh#L35 <ShellCheck.SC2086>

Double quote to prevent globbing and word splitting.
Raw output
./csharp/test/Microsoft.ML.OnnxRuntime.EndToEndTests/runtest.sh:35:8: info: Double quote to prevent globbing and word splitting. (ShellCheck.SC2086)

Check notice on line 35 in csharp/test/Microsoft.ML.OnnxRuntime.EndToEndTests/runtest.sh

View workflow job for this annotation

GitHub Actions / shellcheck

[shellcheck] csharp/test/Microsoft.ML.OnnxRuntime.EndToEndTests/runtest.sh#L35 <ShellCheck.SC2086>

Double quote to prevent globbing and word splitting.
Raw output
./csharp/test/Microsoft.ML.OnnxRuntime.EndToEndTests/runtest.sh:35:61: info: Double quote to prevent globbing and word splitting. (ShellCheck.SC2086)
export TESTONGPU=ON
dotnet test -p:DefineConstants=USE_CUDA $BUILD_SOURCESDIRECTORY/csharp/test/Microsoft.ML.OnnxRuntime.EndToEndTests/Microsoft.ML.OnnxRuntime.EndToEndTests.csproj --no-restore --verbosity detailed

Check notice on line 37 in csharp/test/Microsoft.ML.OnnxRuntime.EndToEndTests/runtest.sh

View workflow job for this annotation

GitHub Actions / shellcheck

[shellcheck] csharp/test/Microsoft.ML.OnnxRuntime.EndToEndTests/runtest.sh#L37 <ShellCheck.SC2086>

Double quote to prevent globbing and word splitting.
Raw output
./csharp/test/Microsoft.ML.OnnxRuntime.EndToEndTests/runtest.sh:37:45: info: Double quote to prevent globbing and word splitting. (ShellCheck.SC2086)
if [ $? -ne 0 ]; then

Check notice on line 38 in csharp/test/Microsoft.ML.OnnxRuntime.EndToEndTests/runtest.sh

View workflow job for this annotation

GitHub Actions / shellcheck

[shellcheck] csharp/test/Microsoft.ML.OnnxRuntime.EndToEndTests/runtest.sh#L38 <ShellCheck.SC2181>

Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?.
Raw output
./csharp/test/Microsoft.ML.OnnxRuntime.EndToEndTests/runtest.sh:38:10: info: Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. (ShellCheck.SC2181)
Expand Down

0 comments on commit 1618cf2

Please sign in to comment.