forked from NVIDIA/gpu-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add default test case using end to end scripts
This change adds a default end-to-end test that mirrors what is currently done in the CI with the exception of not installing prerequisites. Signed-off-by: Evan Lezar <[email protected]>
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#! /bin/bash | ||
# This test case runs the operator installation / test case with the default options. | ||
|
||
SCRIPTS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )"/../scripts && pwd )" | ||
source ${SCRIPTS_DIR}/.definitions.sh | ||
|
||
# Run an end-to-end test cycle | ||
${SCRIPT_DIR}/end-to-end.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#! /bin/bash | ||
|
||
# This test cases configures the nvidia-experimental runtime as the default runtime for | ||
# Docker containers. | ||
|
||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )"/../scripts && pwd )" | ||
source ${SCRIPT_DIR}/.definitions.sh | ||
|
||
TOOLKIT_CONTAINER_NVIDIA_RUNTIME="nvidia-experimental" | ||
export TOOLKIT_CONTAINER_OPTIONS="--set toolkit.env[0].name=DOCKER_RUNTIME_NAME --set toolkit.env[0].value=\"${TOOLKIT_CONTAINER_NVIDIA_RUNTIME}\"" | ||
export TOOLKIT_CONTAINER_IMAGE="registry.gitlab.com/elezar/container-config/staging/container-toolkit:e0723e8a-ubuntu18.04" | ||
|
||
# Run an end-to-end test cycle | ||
${SCRIPT_DIR}/end-to-end.sh |