Imported Upstream version 0.13.2+dsfg1
This commit is contained in:
commit
fb3990e9e5
2036 changed files with 287360 additions and 0 deletions
1
deps/jansson/test/suites/encoding-flags/array/input
vendored
Normal file
1
deps/jansson/test/suites/encoding-flags/array/input
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
[1, 2]
|
||||
1
deps/jansson/test/suites/encoding-flags/array/output
vendored
Normal file
1
deps/jansson/test/suites/encoding-flags/array/output
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
[1, 2]
|
||||
2
deps/jansson/test/suites/encoding-flags/compact-array/env
vendored
Normal file
2
deps/jansson/test/suites/encoding-flags/compact-array/env
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
JSON_COMPACT=1
|
||||
export JSON_COMPACT
|
||||
1
deps/jansson/test/suites/encoding-flags/compact-array/input
vendored
Normal file
1
deps/jansson/test/suites/encoding-flags/compact-array/input
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
[1, 2]
|
||||
1
deps/jansson/test/suites/encoding-flags/compact-array/output
vendored
Normal file
1
deps/jansson/test/suites/encoding-flags/compact-array/output
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
[1,2]
|
||||
2
deps/jansson/test/suites/encoding-flags/compact-object/env
vendored
Normal file
2
deps/jansson/test/suites/encoding-flags/compact-object/env
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
JSON_COMPACT=1
|
||||
export JSON_COMPACT
|
||||
1
deps/jansson/test/suites/encoding-flags/compact-object/input
vendored
Normal file
1
deps/jansson/test/suites/encoding-flags/compact-object/input
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"a": 1, "b": 2}
|
||||
1
deps/jansson/test/suites/encoding-flags/compact-object/output
vendored
Normal file
1
deps/jansson/test/suites/encoding-flags/compact-object/output
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"a":1,"b":2}
|
||||
2
deps/jansson/test/suites/encoding-flags/ensure-ascii/env
vendored
Normal file
2
deps/jansson/test/suites/encoding-flags/ensure-ascii/env
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
JSON_ENSURE_ASCII=1
|
||||
export JSON_ENSURE_ASCII
|
||||
8
deps/jansson/test/suites/encoding-flags/ensure-ascii/input
vendored
Normal file
8
deps/jansson/test/suites/encoding-flags/ensure-ascii/input
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
[
|
||||
"foo",
|
||||
"å ä ö",
|
||||
"foo åä",
|
||||
"åä foo",
|
||||
"å foo ä",
|
||||
"clef g: 𝄞"
|
||||
]
|
||||
1
deps/jansson/test/suites/encoding-flags/ensure-ascii/output
vendored
Normal file
1
deps/jansson/test/suites/encoding-flags/ensure-ascii/output
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
["foo", "\u00E5 \u00E4 \u00F6", "foo \u00E5\u00E4", "\u00E5\u00E4 foo", "\u00E5 foo \u00E4", "clef g: \uD834\uDD1E"]
|
||||
2
deps/jansson/test/suites/encoding-flags/indent-array/env
vendored
Normal file
2
deps/jansson/test/suites/encoding-flags/indent-array/env
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
JSON_INDENT=4
|
||||
export JSON_INDENT
|
||||
1
deps/jansson/test/suites/encoding-flags/indent-array/input
vendored
Normal file
1
deps/jansson/test/suites/encoding-flags/indent-array/input
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
[1, 2]
|
||||
4
deps/jansson/test/suites/encoding-flags/indent-array/output
vendored
Normal file
4
deps/jansson/test/suites/encoding-flags/indent-array/output
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
[
|
||||
1,
|
||||
2
|
||||
]
|
||||
3
deps/jansson/test/suites/encoding-flags/indent-compact-array/env
vendored
Normal file
3
deps/jansson/test/suites/encoding-flags/indent-compact-array/env
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
JSON_INDENT=4
|
||||
JSON_COMPACT=1
|
||||
export JSON_INDENT JSON_COMPACT
|
||||
1
deps/jansson/test/suites/encoding-flags/indent-compact-array/input
vendored
Normal file
1
deps/jansson/test/suites/encoding-flags/indent-compact-array/input
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
[1, 2]
|
||||
4
deps/jansson/test/suites/encoding-flags/indent-compact-array/output
vendored
Normal file
4
deps/jansson/test/suites/encoding-flags/indent-compact-array/output
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
[
|
||||
1,
|
||||
2
|
||||
]
|
||||
3
deps/jansson/test/suites/encoding-flags/indent-compact-object/env
vendored
Normal file
3
deps/jansson/test/suites/encoding-flags/indent-compact-object/env
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
JSON_INDENT=4
|
||||
JSON_COMPACT=1
|
||||
export JSON_INDENT JSON_COMPACT
|
||||
1
deps/jansson/test/suites/encoding-flags/indent-compact-object/input
vendored
Normal file
1
deps/jansson/test/suites/encoding-flags/indent-compact-object/input
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"a": 1, "b": 2}
|
||||
4
deps/jansson/test/suites/encoding-flags/indent-compact-object/output
vendored
Normal file
4
deps/jansson/test/suites/encoding-flags/indent-compact-object/output
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"a":1,
|
||||
"b":2
|
||||
}
|
||||
2
deps/jansson/test/suites/encoding-flags/indent-object/env
vendored
Normal file
2
deps/jansson/test/suites/encoding-flags/indent-object/env
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
JSON_INDENT=4
|
||||
export JSON_INDENT
|
||||
1
deps/jansson/test/suites/encoding-flags/indent-object/input
vendored
Normal file
1
deps/jansson/test/suites/encoding-flags/indent-object/input
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"a": 1, "b": 2}
|
||||
4
deps/jansson/test/suites/encoding-flags/indent-object/output
vendored
Normal file
4
deps/jansson/test/suites/encoding-flags/indent-object/output
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"a": 1,
|
||||
"b": 2
|
||||
}
|
||||
1
deps/jansson/test/suites/encoding-flags/object/input
vendored
Normal file
1
deps/jansson/test/suites/encoding-flags/object/input
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"a": 1, "b": 2}
|
||||
1
deps/jansson/test/suites/encoding-flags/object/output
vendored
Normal file
1
deps/jansson/test/suites/encoding-flags/object/output
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"a": 1, "b": 2}
|
||||
2
deps/jansson/test/suites/encoding-flags/preserve-order/env
vendored
Normal file
2
deps/jansson/test/suites/encoding-flags/preserve-order/env
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
JSON_PRESERVE_ORDER=1
|
||||
export JSON_PRESERVE_ORDER
|
||||
1
deps/jansson/test/suites/encoding-flags/preserve-order/input
vendored
Normal file
1
deps/jansson/test/suites/encoding-flags/preserve-order/input
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"foo": 1, "bar": 2, "asdf": 3, "deadbeef": 4, "badc0ffee": 5, "qwerty": 6}
|
||||
1
deps/jansson/test/suites/encoding-flags/preserve-order/output
vendored
Normal file
1
deps/jansson/test/suites/encoding-flags/preserve-order/output
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"foo": 1, "bar": 2, "asdf": 3, "deadbeef": 4, "badc0ffee": 5, "qwerty": 6}
|
||||
32
deps/jansson/test/suites/encoding-flags/run
vendored
Executable file
32
deps/jansson/test/suites/encoding-flags/run
vendored
Executable file
|
|
@ -0,0 +1,32 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Copyright (c) 2009-2013 Petri Lehtinen <petri@digip.org>
|
||||
#
|
||||
# Jansson is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the MIT license. See LICENSE for details.
|
||||
|
||||
is_test() {
|
||||
test -d $test_path
|
||||
}
|
||||
|
||||
run_test() {
|
||||
(
|
||||
if [ -f $test_path/env ]; then
|
||||
. $test_path/env
|
||||
fi
|
||||
$json_process --env <$test_path/input >$test_log/stdout 2>$test_log/stderr
|
||||
)
|
||||
valgrind_check $test_log/stderr || return 1
|
||||
cmp -s $test_path/output $test_log/stdout
|
||||
}
|
||||
|
||||
show_error() {
|
||||
valgrind_show_error && return
|
||||
|
||||
echo "EXPECTED OUTPUT:"
|
||||
nl -bn $test_path/output
|
||||
echo "ACTUAL OUTPUT:"
|
||||
nl -bn $test_log/stdout
|
||||
}
|
||||
|
||||
. $top_srcdir/test/scripts/run-tests.sh
|
||||
2
deps/jansson/test/suites/encoding-flags/sort-keys/env
vendored
Normal file
2
deps/jansson/test/suites/encoding-flags/sort-keys/env
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
JSON_SORT_KEYS=1
|
||||
export JSON_SORT_KEYS
|
||||
1
deps/jansson/test/suites/encoding-flags/sort-keys/input
vendored
Normal file
1
deps/jansson/test/suites/encoding-flags/sort-keys/input
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"foo": 1, "bar": 2, "baz": 3, "quux": 4}
|
||||
1
deps/jansson/test/suites/encoding-flags/sort-keys/output
vendored
Normal file
1
deps/jansson/test/suites/encoding-flags/sort-keys/output
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"bar": 2, "baz": 3, "foo": 1, "quux": 4}
|
||||
Loading…
Add table
Add a link
Reference in a new issue