Skip to content

Commit

Permalink
Add default test case using end to end scripts
Browse files Browse the repository at this point in the history
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
elezar committed Jun 8, 2021
1 parent 7bac5fa commit 813d9ff
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/cases/defaults.sh
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
14 changes: 14 additions & 0 deletions tests/cases/docker-experimental-runtime.sh
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

0 comments on commit 813d9ff

Please sign in to comment.