mirror of
https://github.com/json-c/json-c.git
synced 2026-03-24 07:29:07 +08:00
tests: compress test_utile_file with test_basic
More code compression/de-duplication. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
This commit is contained in:
@@ -11,5 +11,9 @@ fi
|
||||
filename=$(basename "$0")
|
||||
filename="${filename%.*}"
|
||||
|
||||
run_output_test $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 $?
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Common definitions
|
||||
if test -z "$srcdir"; then
|
||||
srcdir="${0%/*}"
|
||||
test "$srcdir" = "$0" && srcdir=.
|
||||
test -z "$srcdir" && srcdir=.
|
||||
fi
|
||||
. "$srcdir/test-defs.sh"
|
||||
|
||||
cp -f "$srcdir/valid.json" .
|
||||
run_output_test test_util_file "$srcdir"
|
||||
_err=$?
|
||||
|
||||
exit $_err
|
||||
1
tests/test_util_file.test
Symbolic link
1
tests/test_util_file.test
Symbolic link
@@ -0,0 +1 @@
|
||||
test_basic.test
|
||||
Reference in New Issue
Block a user