mirror of
https://github.com/json-c/json-c.git
synced 2026-03-17 12:09:06 +08:00
More code compression/de-duplication. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
20 lines
384 B
Bash
Executable File
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 $?
|