Import ubus tools.
This commit is contained in:
22
3P/json/tests/test2.test
Executable file
22
3P/json/tests/test2.test
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Common definitions
|
||||
if test -z "$srcdir"; then
|
||||
srcdir="${0%/*}"
|
||||
test "$srcdir" = "$0" && srcdir=.
|
||||
test -z "$srcdir" && srcdir=.
|
||||
fi
|
||||
. "$srcdir/test-defs.sh"
|
||||
|
||||
run_output_test test2
|
||||
_err=$?
|
||||
|
||||
for flag in plain spaced pretty ; do
|
||||
run_output_test -o test2Formatted_${flag} test2Formatted ${flag}
|
||||
_err2=$?
|
||||
if [ $_err -eq 0 ] ; then
|
||||
_err=$_err2
|
||||
fi
|
||||
done
|
||||
|
||||
exit $_err
|
||||
Reference in New Issue
Block a user