3 # Copyright (c) 2009 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.
8 TESTFILES="${srcdir}/testdata/valid"
14 run_testprog $prog $prefix
16 if ! ${srcdir}/json-compare.py $prefix.in $prefix.$prog.stdout \
17 >$prefix.$prog.cmp-stdout
20 echo "### $prefix ($prog) failed:" >&2
22 if [ -f $prefix.$prog.stdout ]; then
23 echo "### output:" >&2
24 cat $prefix.$prog.stdout >&2
26 if [ -s $prefix.$prog.stdout ]; then
27 echo "### compare output:" >&2
28 cat $prefix.$prog.cmp-stdout >&2