mirror of
https://github.com/corda/corda.git
synced 2024-12-29 09:18:58 +00:00
27 lines
347 B
Bash
27 lines
347 B
Bash
#!/bin/bash
|
|
|
|
log=build/log.txt
|
|
|
|
vm=${1}; shift
|
|
flags=${1}; shift
|
|
tests=${@}
|
|
|
|
echo -n "" >${log}
|
|
|
|
for test in ${tests}; do
|
|
printf "${test}: "
|
|
|
|
${vm} ${flags} ${test} >>${log} 2>&1
|
|
|
|
if (( ${?} == 0 )); then
|
|
echo "success"
|
|
else
|
|
echo "fail"
|
|
trouble=1
|
|
fi
|
|
done
|
|
|
|
if [ -n "${trouble}" ]; then
|
|
printf "\nsee ${log} for output\n"
|
|
fi
|