Skip to content

Commit 4378e11

Browse files
authored
test: RHEL Filesystem Tests (#7788)
1 parent 03a82ba commit 4378e11

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

qa/L0_storage_S3/test.sh

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# Copyright (c) 2018-2023, NVIDIA CORPORATION. All rights reserved.
2+
# Copyright (c) 2018-2024, NVIDIA CORPORATION. All rights reserved.
33
#
44
# Redistribution and use in source and binary forms, with or without
55
# modification, are permitted provided that the following conditions
@@ -45,6 +45,7 @@ CLIENT_LOG_BASE="./client"
4545
INFER_TEST="../common/infer_test.py"
4646
EXPECTED_NUM_TESTS="3"
4747
TEST_RESULT_FILE='test_results.txt'
48+
BACKENDS=${BACKENDS:="graphdef savedmodel onnx libtorch plan"}
4849

4950
# S3 credentials are necessary for this test. Pass via ENV variables
5051
aws configure set default.region $AWS_DEFAULT_REGION && \
@@ -164,15 +165,16 @@ for ENV_VAR in "env" "env_dummy" "config"; do
164165

165166
# Now start model tests
166167

167-
for FW in graphdef savedmodel onnx libtorch plan; do
168+
for FW in ${BACKENDS}; do
168169
cp -r /data/inferenceserver/${REPO_VERSION}/qa_model_repository/${FW}_float32_float32_float32/ models/
170+
# Copy models with string inputs and remove nobatch (bs=1) models. Model does not exist for plan backend.
171+
if [[ ${FW} != "plan" ]]; then
172+
cp -r /data/inferenceserver/${REPO_VERSION}/qa_model_repository/${FW}*_object_object_object/ models/
173+
rm -rf models/*nobatch*
174+
fi
169175
done
170176

171-
# Copy models with string inputs and remove nobatch (bs=1) models
172-
cp -r /data/inferenceserver/${REPO_VERSION}/qa_model_repository/*_object_object_object/ models/
173-
rm -rf models/*nobatch*
174-
175-
for FW in graphdef savedmodel onnx libtorch plan; do
177+
for FW in ${BACKENDS}; do
176178
for MC in `ls models/${FW}*/config.pbtxt`; do
177179
echo "instance_group [ { kind: ${KIND} }]" >> $MC
178180
done

qa/L0_storage_azure/test.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# Copyright 2020-2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# Copyright 2020-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
33
#
44
# Redistribution and use in source and binary forms, with or without
55
# modification, are permitted provided that the following conditions
@@ -105,11 +105,12 @@ function setup_model_repo() {
105105
rm -rf models && mkdir -p models
106106
for FW in $BACKENDS; do
107107
cp -r /data/inferenceserver/${REPO_VERSION}/qa_model_repository/${FW}_float32_float32_float32 models/
108+
# Copy models with string inputs and remove nobatch (bs=1) models. Model does not exist for plan backend.
109+
if [[ ${FW} != "plan" ]]; then
110+
cp -r /data/inferenceserver/${REPO_VERSION}/qa_model_repository/${FW}*_object_object_object/ models/
111+
rm -rf models/*nobatch*
112+
fi
108113
done
109-
110-
# Copy models with string inputs and remove nobatch (bs=1) models
111-
cp -r /data/inferenceserver/${REPO_VERSION}/qa_model_repository/*_object_object_object models/
112-
rm -rf models/*nobatch*
113114
}
114115

115116
setup_model_repo

0 commit comments

Comments
 (0)