/
githubmirror
/
acl
Обзор
Документация
Войти
/
githubmirror
/
acl
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v2.4.0
test/runwrapper
20 строк
586 B
Andreas Gruenbacher
test/runwrapper: make testlookup library accessible
28 июн 2026, 23:44
28 июн 2026, 23:44
eb21933
Код
Авторство
О чём код?
#!/bin/bash cleanup() { # remove the temporary location rm -rf "$TESTLOOKUP" } if [ -e ".libs/libtestlookup.so" ]; then # copy the preloaded library to a temporary directory because # the original location might not be accessible by other users export TESTLOOKUP="$(mktemp -d)" chmod 0755 "$TESTLOOKUP" cp -L .libs/libtestlookup.so "$TESTLOOKUP/libtestlookup.so" cp "${srcdir:-.}/test/test.passwd" "$TESTLOOKUP/passwd" cp "${srcdir:-.}/test/test.group" "$TESTLOOKUP/group" export LD_PRELOAD="$TESTLOOKUP/libtestlookup.so" trap cleanup EXIT fi "${srcdir:-.}/test/run" "$@"