show test function name while running tests.

git-svn-id: file:///Users/aamine/c/gitwork/public/cbc/trunk@4055 1b9489fe-b721-0410-924e-b54b9192deb8
This commit is contained in:
Minero Aoki 2008-09-27 19:52:06 +00:00
parent f94faf7fde
commit 7f25d1a693
1 changed files with 3 additions and 1 deletions

View File

@ -50,6 +50,8 @@ run_tests() {
while read f
do
echo 1>&2
print "$(echo $f | sed 's/^test_//')" 1>&2
$f
done
shunit_report_result
@ -60,7 +62,7 @@ defined_tests() {
}
defined_functions() {
typeset +f
typeset +f | awk '/^[^ ]+ \(\)/ { print $1 }'
}
main "$@"