mirror of
https://github.com/json-c/json-c.git
synced 2026-09-07 08:36:50 +08:00
22 lines
529 B
Bash
Executable File
22 lines
529 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"
|
|
|
|
set -x -v
|
|
|
|
printf '%s' '"tenant=blue;note=CANARY_STACK_WINDOW_2026;status=ok"' > file1.dat
|
|
(printf '"' ; printf 'A%.0s' $(seq 1 16) ; echo 'e2' | xxd -r -p) > file2.dat
|
|
|
|
TESTNAME="${0##*/}"
|
|
TESTNAME="${TESTNAME%.test}"
|
|
( cat file1.dat ; cat file2.dat ) | run_output_test -o "${TESTNAME}" --exit 1 ../apps/json_parse -u -N -n -
|
|
_err=$?
|
|
|
|
exit $_err
|