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 echo -n "$test_name... "
38 if [ $VERBOSE -eq 1 ]; then
46 if [ $VERBOSE -eq 1 ]; then
52 [ $STOP -eq 1 ] && break
56 if [ $VERBOSE -eq 0 ]; then
60 if [ -n "$(ls -A $suite_log)" ]; then
61 for test_log in $suite_log/*; do
62 test_name=$(basename $test_log)
63 test_path=$suite_srcdir/$test_name
64 echo "================================================================="
65 echo "$suite_name/$test_name"
66 echo "================================================================="
70 echo "================================================================="