mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-18 21:21:17 +00:00
Minor update to NuGet package tests -- allow model download in separate step (#1115)
* Update docker scripts to not fetch model data * Update related files
This commit is contained in:
parent
b9e8aac5f6
commit
2cf56639ed
4 changed files with 21 additions and 20 deletions
|
|
@ -39,7 +39,7 @@ docker run -h $HOSTNAME \
|
|||
-e "IsReleaseBuild=$IsReleaseBuild" \
|
||||
"onnxruntime-$IMAGE" \
|
||||
/bin/bash /onnxruntime_src/csharp/test/Microsoft.ML.OnnxRuntime.EndToEndTests/runtest-gpu.sh \
|
||||
/home/onnxruntimedev/$NUGET_REPO_DIRNAME /onnxruntime_src /home/onnxruntimedev $TestDataUrl $TestDataChecksum &
|
||||
/home/onnxruntimedev/$NUGET_REPO_DIRNAME /onnxruntime_src /home/onnxruntimedev &
|
||||
|
||||
wait -n
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
# build docker image for CPU
|
||||
|
||||
#TODO: Get this working, not tested yet
|
||||
set -x
|
||||
|
||||
SOURCE_ROOT=$1
|
||||
|
|
@ -44,7 +43,7 @@ docker run -h $HOSTNAME \
|
|||
-e "RunTestNative=$RunTestNative" \
|
||||
"onnxruntime-$IMAGE" \
|
||||
/bin/bash /onnxruntime_src/csharp/test/Microsoft.ML.OnnxRuntime.EndToEndTests/runtest.sh \
|
||||
/home/onnxruntimedev/$NUGET_REPO_DIRNAME /onnxruntime_src /home/onnxruntimedev $TestDataUrl $TestDataChecksum &
|
||||
/home/onnxruntimedev/$NUGET_REPO_DIRNAME /onnxruntime_src /home/onnxruntimedev &
|
||||
|
||||
wait -n
|
||||
|
||||
|
|
|
|||
|
|
@ -5,18 +5,19 @@
|
|||
LocalNuGetRepo=$1
|
||||
SourceRoot=$2
|
||||
BuildDir=$3
|
||||
TestDataUrl=$4
|
||||
TestDataChecksum=$5
|
||||
#TestDataUrl=$4
|
||||
#TestDataChecksum=$5
|
||||
|
||||
#TestDataUrl and TestDataChecksum comes from the build env variable
|
||||
set -x
|
||||
|
||||
echo "Downloading test data"
|
||||
python3 $SourceRoot/tools/ci_build/build.py --update --download_test_data --build_dir $BuildDir --test_data_url $TestDataUrl --test_data_checksum $TestDataChecksum
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Failed to download test data"
|
||||
exit 1
|
||||
fi
|
||||
#echo "Downloading test data"
|
||||
#python3 $SourceRoot/tools/ci_build/build.py --update --download_test_data --build_dir $BuildDir --test_data_url $TestDataUrl --test_data_checksum $TestDataChecksum
|
||||
#if [ $? -ne 0 ]; then
|
||||
# echo "Failed to download test data"
|
||||
# exit 1
|
||||
#fi
|
||||
|
||||
set -x
|
||||
|
||||
OldDir=`pwd`
|
||||
cd $SourceRoot
|
||||
|
|
|
|||
|
|
@ -5,17 +5,18 @@
|
|||
LocalNuGetRepo=$1
|
||||
SourceRoot=$2
|
||||
BuildDir=$3
|
||||
TestDataUrl=$4
|
||||
TestDataChecksum=$5
|
||||
#TestDataUrl=$4
|
||||
#TestDataChecksum=$5
|
||||
|
||||
#TestDataUrl and TestDataChecksum comes from the build env variable
|
||||
|
||||
echo "Downloading test data"
|
||||
python3 $SourceRoot/tools/ci_build/build.py --update --download_test_data --build_dir $BuildDir --test_data_url $TestDataUrl --test_data_checksum $TestDataChecksum
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Failed to download test data"
|
||||
exit 1
|
||||
fi
|
||||
#echo "Downloading test data"
|
||||
#python3 $SourceRoot/tools/ci_build/build.py --update --download_test_data --build_dir $BuildDir --test_data_url $TestDataUrl --test_data_checksum $TestDataChecksum
|
||||
#if [ $? -ne 0 ]; then
|
||||
# echo "Failed to download test data"
|
||||
# exit 1
|
||||
#fi
|
||||
set -x
|
||||
|
||||
OldDir=`pwd`
|
||||
cd $SourceRoot
|
||||
|
|
|
|||
Loading…
Reference in a new issue