mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2025-06-26 18:18:24 +00:00
[no-relnote] Add test for libcuda lookup
This change adds a test for locating libcuda as a driver library. This includes a failing test on a system where libcuda.so.1 is in the ldcache, but not at one of the predefined library search paths. A testdata folder with sample root filesystems is included to test various combinations. Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
0
testdata/go.mod
vendored
Normal file
0
testdata/go.mod
vendored
Normal file
2
testdata/lookup/rootfs-1/README.md
vendored
Normal file
2
testdata/lookup/rootfs-1/README.md
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
This rootfs represents a host with the CUDA driver libraries installed in
|
||||
/lib/x86_64-linux-gnu. The included /etc/ld.so.cache was copied from such as system.
|
||||
BIN
testdata/lookup/rootfs-1/etc/ld.so.cache
vendored
Normal file
BIN
testdata/lookup/rootfs-1/etc/ld.so.cache
vendored
Normal file
Binary file not shown.
1
testdata/lookup/rootfs-1/lib/x86_64-linux-gnu/libcuda.so.1
vendored
Symbolic link
1
testdata/lookup/rootfs-1/lib/x86_64-linux-gnu/libcuda.so.1
vendored
Symbolic link
@@ -0,0 +1 @@
|
||||
libcuda.so.999.88.77
|
||||
0
testdata/lookup/rootfs-1/lib/x86_64-linux-gnu/libcuda.so.999.88.77
vendored
Normal file
0
testdata/lookup/rootfs-1/lib/x86_64-linux-gnu/libcuda.so.999.88.77
vendored
Normal file
3
testdata/lookup/rootfs-2/README.md
vendored
Normal file
3
testdata/lookup/rootfs-2/README.md
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
This rootfs represents a host with the CUDA driver libraries installed in
|
||||
/var/lib/nvidia/lib64. The included /etc/ld.so.cache was generated in a container
|
||||
simulating such as system.
|
||||
BIN
testdata/lookup/rootfs-2/etc/ld.so.cache
vendored
Normal file
BIN
testdata/lookup/rootfs-2/etc/ld.so.cache
vendored
Normal file
Binary file not shown.
1
testdata/lookup/rootfs-2/var/lib/nvidia/lib64/libcuda.so.1
vendored
Symbolic link
1
testdata/lookup/rootfs-2/var/lib/nvidia/lib64/libcuda.so.1
vendored
Symbolic link
@@ -0,0 +1 @@
|
||||
libcuda.so.999.88.77
|
||||
0
testdata/lookup/rootfs-2/var/lib/nvidia/lib64/libcuda.so.999.88.77
vendored
Normal file
0
testdata/lookup/rootfs-2/var/lib/nvidia/lib64/libcuda.so.999.88.77
vendored
Normal file
1
testdata/lookup/rootfs-empty/README.md
vendored
Normal file
1
testdata/lookup/rootfs-empty/README.md
vendored
Normal file
@@ -0,0 +1 @@
|
||||
The folders represents an empty rootfs.
|
||||
1
testdata/lookup/rootfs-no-cache-lib64/usr/lib64/libcuda.so.1
vendored
Symbolic link
1
testdata/lookup/rootfs-no-cache-lib64/usr/lib64/libcuda.so.1
vendored
Symbolic link
@@ -0,0 +1 @@
|
||||
libcuda.so.999.88.77
|
||||
0
testdata/lookup/rootfs-no-cache-lib64/usr/lib64/libcuda.so.999.88.77
vendored
Normal file
0
testdata/lookup/rootfs-no-cache-lib64/usr/lib64/libcuda.so.999.88.77
vendored
Normal file
Reference in New Issue
Block a user