1 # Copyright (c) 2009-2011 Petri Lehtinen <petri@digip.org>
3 # Jansson is free software; you can redistribute it and/or modify
4 # it under the terms of the MIT license. See LICENSE for details.
6 json_process=$bindir/json_process
9 suite_srcdir=$suites_srcdir/$suite_name
10 suite_builddir=$suites_builddir/$suite_name
11 suite_log=$logdir/$suite_name
14 [ -z "$VERBOSE" ] && VERBOSE=0
15 [ -z "$STOP" ] && STOP=0
17 . $scriptdir/valgrind.sh
22 for test_path in $suite_srcdir/*; do
23 test_name=$(basename $test_path)
24 test_builddir=$suite_builddir/$test_name
25 test_log=$suite_log/$test_name
27 [ "$test_name" = "run" ] && continue
32 if [ $VERBOSE -eq 1 ]; then
33 printf '%s... ' "$test_name"
40 if [ $VERBOSE -eq 1 ]; then
50 if [ $VERBOSE -eq 1 ]; then
60 if [ $VERBOSE -eq 1 ]; then
66 [ $STOP -eq 1 ] && break
71 if [ $VERBOSE -eq 0 ]; then
75 if [ -n "$(ls -A $suite_log)" ]; then
76 for test_log in $suite_log/*; do
77 test_name=$(basename $test_log)
78 test_path=$suite_srcdir/$test_name
79 echo "================================================================="
80 echo "$suite_name/$test_name"
81 echo "================================================================="
85 echo "================================================================="