X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=test%2Fscripts%2Frun-tests.sh;h=48dfae843639655fd8191b3cfa4c8817d8de1fdc;hb=e54ea1f7c904a5beef64ca0fe986cf7dc4f62296;hp=2559766e12bf4bd591255b0833182852a537b5aa;hpb=f9febb64c5dc15e03ecf3ca552e0654ee919b52e;p=jansson.git diff --git a/test/scripts/run-tests.sh b/test/scripts/run-tests.sh index 2559766..48dfae8 100644 --- a/test/scripts/run-tests.sh +++ b/test/scripts/run-tests.sh @@ -1,4 +1,4 @@ -# Copyright (c) 2009 Petri Lehtinen +# Copyright (c) 2009-2011 Petri Lehtinen # # Jansson is free software; you can redistribute it and/or modify # it under the terms of the MIT license. See LICENSE for details. @@ -12,6 +12,7 @@ suite_log=$logdir/$suite_name [ -z "$VERBOSE" ] && VERBOSE=0 +[ -z "$STOP" ] && STOP=0 . $scriptdir/valgrind.sh @@ -29,7 +30,7 @@ for test_path in $suite_srcdir/*; do rm -rf $test_log mkdir -p $test_log if [ $VERBOSE -eq 1 ]; then - echo -n "$name... " + echo -n "$test_name... " fi if run_test; then @@ -47,6 +48,8 @@ for test_path in $suite_srcdir/*; do else echo -n "F" fi + + [ $STOP -eq 1 ] && break fi done