Mercurial > ~dholland > hg > tradcpp > index.cgi
changeset 53:937d310debaa
Don't leak full path into output. Print FAILED like dhtest does.
author | Joerg Sonnenberger <joerg@bec.de> |
---|---|
date | Sun, 31 Mar 2013 06:15:48 +0200 |
parents | ebdc6a4cb0f8 |
children | cf2830e5b81f |
files | tests/tradcpp.sh |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/tradcpp.sh Sun Mar 31 06:07:44 2013 +0200 +++ b/tests/tradcpp.sh Sun Mar 31 06:15:48 2013 +0200 @@ -18,7 +18,7 @@ options=$(cat ${options_file}) fi eval "${name}_body() { \ - atf_check -s eq:0 -o ${stdout} -x '${tradcpp} ${options} ${source} 2>&1'; \ + atf_check -s eq:0 -o ${stdout} -x '${tradcpp} ${options} ${source} 2>&1 || echo FAILED'; \ }" } @@ -27,8 +27,9 @@ if [ ! -x ${tradcpp} ]; then tradcpp=/usr/bin/tradcpp fi - for testfile in $(atf_get_srcdir)/t*.c; do - local name=$(basename ${testfile%%.c}) + cd $(atf_get_srcdir) + for testfile in t*.c; do + local name=${testfile%%.c} test_case ${name} ${testfile} ${tradcpp} atf_add_test_case ${name} done