X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=tests%2Fregression%2Frun.sh;h=1ec7e5e722c2f0ab1d54e33411334035ff1bceb4;hp=d99a49325d5f0481c19ceba6b1430478bd8b7eee;hb=e9bea64ae432ec3cdd6d2ccbd691190a35256d97;hpb=a8e7c8d9eabfecc5017053754f6b446a95b00010 diff --git a/tests/regression/run.sh b/tests/regression/run.sh index d99a493..1ec7e5e 100755 --- a/tests/regression/run.sh +++ b/tests/regression/run.sh @@ -1,6 +1,7 @@ #!/bin/bash # # Copyright (C) 2013 - Christian Babeux +# 2016 - Michael Jeanson # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -18,8 +19,16 @@ # INPUT=$1 +ARGS=() shift 1 -[ -z "${INPUT}" ] && echo "Error: No testlist. Please specify a testlist to run." && exit 1 +if [ -z "${INPUT}" ]; then + echo "Error: No testlist. Please specify a testlist to run." + exit 1 +fi -prove ${*} --merge --exec '' - < ${INPUT} +if [ "x$V" == "x1" ]; then + ARGS+=('-v') +fi + +prove "${@}" "${ARGS[@]}" --merge --exec '' - < "${INPUT}"