3 # Copyright (c) 2009-2011 Petri Lehtinen <petri@digip.org>
5 # Jansson is free software; you can redistribute it and/or modify
6 # it under the terms of the MIT license. See LICENSE for details.
14 if [ -f $test_path/env ]; then
17 $json_process <$test_path/input >$test_log/stdout 2>$test_log/stderr
19 valgrind_check $test_log/stderr || return 1
20 cmp -s $test_path/output $test_log/stdout
24 valgrind_show_error && return
26 echo "EXPECTED OUTPUT:"
27 nl -bn $test_path/output
29 nl -bn $test_log/stdout
32 . $top_srcdir/test/scripts/run-tests.sh