mirror of
https://github.com/json-c/json-c.git
synced 2026-04-03 20:39:07 +08:00
Allow USE_VALGRIND to be set to anything starting with 0, N or n to disable valgrind during tests.
This commit is contained in:
@@ -50,6 +50,14 @@ echo "=== Running test $progname"
|
|||||||
CMP="${CMP-cmp}"
|
CMP="${CMP-cmp}"
|
||||||
|
|
||||||
use_valgrind=${USE_VALGRIND-1}
|
use_valgrind=${USE_VALGRIND-1}
|
||||||
|
case "${use_valgrind}" in
|
||||||
|
[0Nn]*)
|
||||||
|
use_valgrind=0
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
use_valgrind=1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
valgrind_path=$(which valgrind 2> /dev/null)
|
valgrind_path=$(which valgrind 2> /dev/null)
|
||||||
if [ -z "${valgrind_path}" -o ! -x "${valgrind_path}" ] ; then
|
if [ -z "${valgrind_path}" -o ! -x "${valgrind_path}" ] ; then
|
||||||
use_valgrind=0
|
use_valgrind=0
|
||||||
|
|||||||
Reference in New Issue
Block a user