corda/test/test.sh
Joel Dice f980ceb13e enable use-frame-pointer=true build
Also, include Continuations, Coroutines, and DynamicWind tests in test
suite for continuations=true build.
2011-01-27 21:06:01 -07:00

45 lines
684 B
Bash

#!/bin/sh
log=build/log.txt
vg="nice valgrind --leak-check=full --num-callers=32 \
--freelist-vol=100000000 --error-exitcode=1"
vm=${1}; shift
mode=${1}; shift
flags=${1}; shift
tests=${@}
echo -n "" >${log}
echo
for test in ${tests}; do
printf "%24s" "${test}: "
case ${mode} in
debug|debug-fast|fast|small )
${vm} ${flags} ${test} >>${log} 2>&1;;
stress* )
${vg} ${vm} ${flags} ${test} \
>>${log} 2>&1;;
* )
echo "unknown mode: ${mode}" >&2
exit 1;;
esac
if [ "${?}" = "0" ]; then
echo "success"
else
echo "fail"
trouble=1
fi
done
echo
if [ -n "${trouble}" ]; then
printf "see ${log} for output\n"
fi