mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-04 23:59:56 +00:00
Fix shellcheck warning (#11489)
* fix shellcheck warning * Update java_linux_final_test.sh
This commit is contained in:
parent
b14c1fd479
commit
5709ed2e16
1 changed files with 8 additions and 4 deletions
|
|
@ -3,11 +3,14 @@
|
|||
# This is for testing GPU final jar on Linux
|
||||
set -e -o -x
|
||||
|
||||
usage() { echo "Usage: $0 [-r <binary directory>] [-v <version number>]" 1>&2; exit 1; }
|
||||
|
||||
while getopts r:v: parameter_Option
|
||||
do case "${parameter_Option}"
|
||||
in
|
||||
r) BINARY_DIR=${OPTARG};;
|
||||
v) VERSION_NUMBER=${OPTARG};;
|
||||
*) usage ;;
|
||||
esac
|
||||
done
|
||||
|
||||
|
|
@ -15,20 +18,21 @@ EXIT_CODE=1
|
|||
|
||||
uname -a
|
||||
|
||||
cd $BINARY_DIR/final-jar
|
||||
cd "$BINARY_DIR/final-jar"
|
||||
|
||||
mkdir test
|
||||
|
||||
echo "Directories created"
|
||||
echo "Library path:" $LD_LIBRARY_PATH
|
||||
echo "Library path:" "$LD_LIBRARY_PATH"
|
||||
|
||||
pushd test
|
||||
jar xf $BINARY_DIR/final-jar/testing.jar
|
||||
jar xf "$BINARY_DIR/final-jar/testing.jar"
|
||||
popd
|
||||
|
||||
curl -O -sSL https://oss.sonatype.org/service/local/repositories/releases/content/org/junit/platform/junit-platform-console-standalone/1.6.2/junit-platform-console-standalone-1.6.2.jar
|
||||
curl -O -sSL https://oss.sonatype.org/service/local/repositories/releases/content/com/google/protobuf/protobuf-java/3.20.1/protobuf-java-3.20.1.jar
|
||||
java -DUSE_CUDA=1 -jar ./junit-platform-console-standalone-1.6.2.jar -cp .:./test:./protobuf-java-3.20.1.jar:./onnxruntime_gpu-${VERSION_NUMBER}.jar --scan-class-path --fail-if-no-tests --disable-banner
|
||||
java -DUSE_CUDA=1 -jar ./junit-platform-console-standalone-1.6.2.jar -cp .:./test:./protobuf-java-3.20.1.jar:./onnxruntime_gpu-"${VERSION_NUMBER}".jar --scan-class-path --fail-if-no-tests --disable-banner
|
||||
|
||||
|
||||
EXIT_CODE=$?
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue