Improve run-test.sh script

· don't override ${LD_LIBRRAY_PATH}; add to it
 · expand arguments correctly
This commit is contained in:
Laurence Withers 2011-04-18 15:28:23 +00:00
parent 0e9f48ff2d
commit 6c82a113a6
1 changed files with 3 additions and 2 deletions

View File

@ -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@