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
|
[ -x "${EXE}" ] || continue
|
||||||
NAME="$(echo "${EXE}" | sed 's,obj/tests/,,')"
|
NAME="$(echo "${EXE}" | sed 's,obj/tests/,,')"
|
||||||
echo -ne "${NAME}\t"
|
echo -ne "${NAME}\t"
|
||||||
LD_LIBRARY_PATH="obj" "${EXE}" --print-summary
|
LD_LIBRARY_PATH="obj:${LD_LIBRARY_PATH}" "${EXE}" --print-summary
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Main script
|
# Main script
|
||||||
if [ $# -eq 0 ]
|
if [ $# -eq 0 ]
|
||||||
then
|
then
|
||||||
|
@ -48,6 +49,6 @@ then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
run_test $*
|
run_test "$@"
|
||||||
|
|
||||||
# vim: @VIM_MODELINE@
|
# vim: @VIM_MODELINE@
|
||||||
|
|
Loading…
Reference in New Issue