Improve run-test.sh script
· don't override ${LD_LIBRRAY_PATH}; add to it · expand arguments correctly
This commit is contained in:
parent
0e9f48ff2d
commit
6c82a113a6
|
@ -36,11 +36,12 @@ print_tests() {
|
|||
[ -x "${EXE}" ] || continue
|
||||
NAME="$(echo "${EXE}" | sed 's,obj/tests/,,')"
|
||||
echo -ne "${NAME}\t"
|
||||
LD_LIBRARY_PATH="obj" "${EXE}" --print-summary
|
||||
LD_LIBRARY_PATH="obj:${LD_LIBRARY_PATH}" "${EXE}" --print-summary
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
|
||||
# Main script
|
||||
if [ $# -eq 0 ]
|
||||
then
|
||||
|
@ -48,6 +49,6 @@ then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
run_test $*
|
||||
run_test "$@"
|
||||
|
||||
# vim: @VIM_MODELINE@
|
||||
|
|
Loading…
Reference in New Issue