@@ -196,44 +196,4 @@ jobs:
196196 echo "$output" | grep "have already been linked" || { echo "Missing 'already linked' message"; exit 1; }
197197
198198 echo "Second normal run test passed"
199-
200- - name : Test handling of duplicate libraries
201- run : |
202- echo ">>> Testing handling of duplicate libraries"
203-
204- # Remove existing symlinks to prepare for this test
205- rm -rf /opt/eessi/nvidia/x86_64/host
206-
207- # Run the script with verbose mode
208- output=$(./scripts/gpu_support/nvidia/link_nvidia_host_libraries.sh --verbose || { echo "Script returned non-zero: $?"; echo $output; exit 1; })
209-
210- echo "$output"
211-
212- # Check if libraries with duplicates were correctly handled
213- # For libcuda.so and libnvidia-ml.so, which have duplicates, there should be exactly one symlink
214-
215- # List all symlinks created in the host directory
216- echo ">>> Listing symlinks in host directory"
217- ls -la /opt/eessi/nvidia/x86_64/host/
218-
219- # Check for duplicate entries - there should be only one libcuda.so and one libnvidia-ml.so
220- duplicates=$(find /opt/eessi/nvidia/x86_64/host/ -name "libcuda.so" | wc -l)
221- if [ "$duplicates" -gt 1 ]; then
222- echo "Error: Found multiple libcuda.so symlinks, which indicates a failure in handling duplicates"
223- exit 1
224- fi
225-
226- duplicates=$(find /opt/eessi/nvidia/x86_64/host/ -name "libnvidia-ml.so" | wc -l)
227- if [ "$duplicates" -gt 1 ]; then
228- echo "Error: Found multiple libnvidia-ml.so symlinks, which indicates a failure in handling duplicates"
229- exit 1
230- fi
231-
232- # Verify that the script correctly prioritized one of the duplicates
233- libcuda_target=$(readlink /opt/eessi/nvidia/x86_64/host/libcuda.so)
234- echo "libcuda.so points to: $libcuda_target"
235-
236- libnvidia_ml_target=$(readlink /opt/eessi/nvidia/x86_64/host/libnvidia-ml.so)
237- echo "libnvidia-ml.so points to: $libnvidia_ml_target"
238-
239- echo "Duplicate libraries test passed"
199+
0 commit comments