Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ereslibre committed Aug 18, 2024
1 parent ac87639 commit 74e4892
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions nixos/tests/nvidia-container-toolkit.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,8 @@ import ./make-test-python.nix (
}
check_file_referential_integrity() {
echo "checking $file referential integrity"
files=$(set -o pipefail && \
${pkgs.glibc.bin}/bin/ldd "$1" | \
${lib.getExe pkgs.gnugrep} '=>' | \
${lib.getExe pkgs.gnused} "s/.* => //" | \
${lib.getExe pkgs.gnused} "s/ (.*//") || exit 1
for file in $files; do
if [ ! -f "$file" ]; then
die "$file does not exist in the container filesystem"
fi
done
echo "checking $1 referential integrity"
( ( ${pkgs.glibc.bin}/bin/ldd "$1" | ${lib.getExe pkgs.gnugrep} "not found" ) && exit 1 ) || exit 0
}
check_directory_referential_integrity() {
Expand Down

0 comments on commit 74e4892

Please sign in to comment.