Skip to content

Commit 8d869ac

Browse files
committed
[no-relnote] Add toolkit install unit test
This change adds basic toolkit installation unit tests. This required that the source for files be specified when installing to allow for a testdata folder to be used. This replaces the currently unused shell-based tests in /test/container. Signed-off-by: Evan Lezar <[email protected]>
1 parent 5bc0315 commit 8d869ac

35 files changed

+177
-110
lines changed

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
dist
2-
artifacts
1+
/dist
2+
/artifacts
33
*.swp
44
*.swo
55
/coverage.out*
@@ -10,4 +10,4 @@ artifacts
1010
/nvidia-container-toolkit
1111
/nvidia-ctk
1212
/shared-*
13-
/release-*
13+
/release-*

.gitlab-ci.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -176,12 +176,6 @@ image-packaging:
176176
optional: true
177177

178178
# Define publish test helpers
179-
.test:toolkit:
180-
extends:
181-
- .integration
182-
variables:
183-
TEST_CASES: "toolkit"
184-
185179
.test:docker:
186180
extends:
187181
- .integration

deployments/container/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ build-packaging: PACKAGE_DIST = all
122122
# Test targets
123123
test-%: DIST = $(*)
124124

125-
TEST_CASES ?= toolkit docker crio containerd
125+
TEST_CASES ?= docker crio containerd
126126
$(TEST_TARGETS): test-%:
127127
TEST_CASES="$(TEST_CASES)" bash -x $(CURDIR)/test/container/main.sh run \
128128
$(CURDIR)/shared-$(*) \

test/container/main.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ shopt -s lastpipe
1919
readonly basedir="$(dirname "$(realpath "$0")")"
2020
source "${basedir}/common.sh"
2121

22-
source "${basedir}/toolkit_test.sh"
2322
source "${basedir}/docker_test.sh"
2423
source "${basedir}/crio_test.sh"
2524
source "${basedir}/containerd_test.sh"
@@ -66,7 +65,7 @@ done
6665

6766
trap '"$CLEANUP" && testing::cleanup' ERR
6867

69-
readonly test_cases="${TEST_CASES:-toolkit docker crio containerd}"
68+
readonly test_cases="${TEST_CASES:-docker crio containerd}"
7069

7170
testing::cleanup
7271
for tc in ${test_cases}; do

test/container/toolkit_test.sh

Lines changed: 0 additions & 76 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nvidia-cdi-hook
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nvidia-container-cli
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nvidia-container-runtime
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nvidia-container-runtime-hook
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nvidia-container-runtime.cdi

0 commit comments

Comments
 (0)