Files
json-c/tests/test_basic.test
Alexandru Ardelean 9d47ae824c tests: compress test_utile_file with test_basic
More code compression/de-duplication.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-07-11 10:38:25 +03:00

20 lines
384 B
Bash
Executable File

#!/bin/sh
# Common definitions
if test -z "$srcdir"; then
srcdir="${0%/*}"
test "$srcdir" = "$0" && srcdir=.
test -z "$srcdir" && srcdir=.
fi
. "$srcdir/test-defs.sh"
filename=$(basename "$0")
filename="${filename%.*}"
# This is only for the test_util_file.test ;
# more stuff could be extended
cp -f "$srcdir/valid.json" .
run_output_test $filename "$srcdir"
exit $?