1 check that blobmsg is producing expected results:
3 $ [ -n "$TEST_BIN_DIR" ] && export PATH="$TEST_BIN_DIR:$PATH"
5 $ valgrind --quiet --leak-check=full test-blobmsg
17 -9223372036854775808 (i64)
18 9223372036854775807 (i64)
20 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000 (dbl)
23 \tdbl-min : 0.000000 (dbl) (esc)
24 \tdbl-max : 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000 (dbl) (esc)
26 \tpoo : 100 (i8) (esc)
27 \tmoo-min : -128 (i8) (esc)
28 \tmoo-max : 127 (i8) (esc)
29 \tbar-min : -32768 (i16) (esc)
30 \tbar-max : 32767 (i16) (esc)
31 \tbaz-min : -2147483648 (i32) (esc)
32 \tbaz-max : 2147483647 (i32) (esc)
33 \ttaz-min : -9223372036854775808 (i64) (esc)
34 \ttaz-max : 9223372036854775807 (i64) (esc)
35 \tworld : 2 (str) (esc)
38 [*] blobmsg to json: {"message":"Hello, world!","testdata":{"dbl-min":0.000000,"dbl-max":179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000,"foo":false,"poo":true,"moo-min":true,"moo-max":true,"bar-min":-32768,"bar-max":32767,"baz-min":-2147483648,"baz-max":2147483647,"taz-min":-9223372036854775808,"taz-max":9223372036854775807,"world":"2"},"list":[false,true,true,true,-32768,32767,-2147483648,2147483647,-9223372036854775808,9223372036854775807,0.000000,179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000]}
40 [*] blobmsg from json:
41 Message: Hello, world!
51 -9223372036854775808 (i64)
52 9223372036854775807 (i64)
54 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000 (dbl)
57 \tdbl-min : 0.000000 (dbl) (esc)
58 \tdbl-max : 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000 (dbl) (esc)
61 \tmoo-min : 1 (i8) (esc)
62 \tmoo-max : 1 (i8) (esc)
63 \tbar-min : -32768 (i32) (esc)
64 \tbar-max : 32767 (i32) (esc)
65 \tbaz-min : -2147483648 (i32) (esc)
66 \tbaz-max : 2147483647 (i32) (esc)
67 \ttaz-min : -9223372036854775808 (i64) (esc)
68 \ttaz-max : 9223372036854775807 (i64) (esc)
69 \tworld : 2 (str) (esc)
74 Message: Hello, world!
84 -9223372036854775808 (i64)
85 9223372036854775807 (i64)
87 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000 (dbl)
90 \tdbl-min : 0.000000 (dbl) (esc)
91 \tdbl-max : 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000 (dbl) (esc)
93 \tpoo : 100 (i8) (esc)
94 \tmoo-min : -128 (i8) (esc)
95 \tmoo-max : 127 (i8) (esc)
96 \tbar-min : -32768 (i16) (esc)
97 \tbar-max : 32767 (i16) (esc)
98 \tbaz-min : -2147483648 (i32) (esc)
99 \tbaz-max : 2147483647 (i32) (esc)
100 \ttaz-min : -9223372036854775808 (i64) (esc)
101 \ttaz-max : 9223372036854775807 (i64) (esc)
102 \tworld : 2 (str) (esc)
105 [*] blobmsg to json: {"message":"Hello, world!","testdata":{"dbl-min":0.000000,"dbl-max":179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000,"foo":false,"poo":true,"moo-min":true,"moo-max":true,"bar-min":-32768,"bar-max":32767,"baz-min":-2147483648,"baz-max":2147483647,"taz-min":-9223372036854775808,"taz-max":9223372036854775807,"world":"2"},"list":[false,true,true,true,-32768,32767,-2147483648,2147483647,-9223372036854775808,9223372036854775807,0.000000,179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000]}
107 [*] blobmsg from json:
108 Message: Hello, world!
118 -9223372036854775808 (i64)
119 9223372036854775807 (i64)
121 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000 (dbl)
124 \tdbl-min : 0.000000 (dbl) (esc)
125 \tdbl-max : 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000 (dbl) (esc)
128 \tmoo-min : 1 (i8) (esc)
129 \tmoo-max : 1 (i8) (esc)
130 \tbar-min : -32768 (i32) (esc)
131 \tbar-max : 32767 (i32) (esc)
132 \tbaz-min : -2147483648 (i32) (esc)
133 \tbaz-max : 2147483647 (i32) (esc)
134 \ttaz-min : -9223372036854775808 (i64) (esc)
135 \ttaz-max : 9223372036854775807 (i64) (esc)
136 \tworld : 2 (str) (esc)
141 Message: Hello, world!
151 -9223372036854775808 (i64)
152 9223372036854775807 (i64)
154 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000 (dbl)
157 \tdbl-min : 0.000000 (dbl) (esc)
158 \tdbl-max : 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000 (dbl) (esc)
160 \tpoo : 100 (i8) (esc)
161 \tmoo-min : -128 (i8) (esc)
162 \tmoo-max : 127 (i8) (esc)
163 \tbar-min : -32768 (i16) (esc)
164 \tbar-max : 32767 (i16) (esc)
165 \tbaz-min : -2147483648 (i32) (esc)
166 \tbaz-max : 2147483647 (i32) (esc)
167 \ttaz-min : -9223372036854775808 (i64) (esc)
168 \ttaz-max : 9223372036854775807 (i64) (esc)
169 \tworld : 2 (str) (esc)
172 [*] blobmsg to json: {"message":"Hello, world!","testdata":{"dbl-min":0.000000,"dbl-max":179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000,"foo":false,"poo":true,"moo-min":true,"moo-max":true,"bar-min":-32768,"bar-max":32767,"baz-min":-2147483648,"baz-max":2147483647,"taz-min":-9223372036854775808,"taz-max":9223372036854775807,"world":"2"},"list":[false,true,true,true,-32768,32767,-2147483648,2147483647,-9223372036854775808,9223372036854775807,0.000000,179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000]}
174 [*] blobmsg from json:
175 Message: Hello, world!
185 -9223372036854775808 (i64)
186 9223372036854775807 (i64)
188 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000 (dbl)
191 \tdbl-min : 0.000000 (dbl) (esc)
192 \tdbl-max : 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000 (dbl) (esc)
195 \tmoo-min : 1 (i8) (esc)
196 \tmoo-max : 1 (i8) (esc)
197 \tbar-min : -32768 (i32) (esc)
198 \tbar-max : 32767 (i32) (esc)
199 \tbaz-min : -2147483648 (i32) (esc)
200 \tbaz-max : 2147483647 (i32) (esc)
201 \ttaz-min : -9223372036854775808 (i64) (esc)
202 \ttaz-max : 9223372036854775807 (i64) (esc)
203 \tworld : 2 (str) (esc)
208 Message: Hello, world!
218 -9223372036854775808 (i64)
219 9223372036854775807 (i64)
221 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000 (dbl)
224 \tdbl-min : 0.000000 (dbl) (esc)
225 \tdbl-max : 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000 (dbl) (esc)
227 \tpoo : 100 (i8) (esc)
228 \tmoo-min : -128 (i8) (esc)
229 \tmoo-max : 127 (i8) (esc)
230 \tbar-min : -32768 (i16) (esc)
231 \tbar-max : 32767 (i16) (esc)
232 \tbaz-min : -2147483648 (i32) (esc)
233 \tbaz-max : 2147483647 (i32) (esc)
234 \ttaz-min : -9223372036854775808 (i64) (esc)
235 \ttaz-max : 9223372036854775807 (i64) (esc)
236 \tworld : 2 (str) (esc)
239 [*] blobmsg to json: {"message":"Hello, world!","testdata":{"dbl-min":0.000000,"dbl-max":179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000,"foo":false,"poo":true,"moo-min":true,"moo-max":true,"bar-min":-32768,"bar-max":32767,"baz-min":-2147483648,"baz-max":2147483647,"taz-min":-9223372036854775808,"taz-max":9223372036854775807,"world":"2"},"list":[false,true,true,true,-32768,32767,-2147483648,2147483647,-9223372036854775808,9223372036854775807,0.000000,179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000]}
241 [*] blobmsg from json:
242 Message: Hello, world!
252 -9223372036854775808 (i64)
253 9223372036854775807 (i64)
255 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000 (dbl)
258 \tdbl-min : 0.000000 (dbl) (esc)
259 \tdbl-max : 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000 (dbl) (esc)
262 \tmoo-min : 1 (i8) (esc)
263 \tmoo-max : 1 (i8) (esc)
264 \tbar-min : -32768 (i32) (esc)
265 \tbar-max : 32767 (i32) (esc)
266 \tbaz-min : -2147483648 (i32) (esc)
267 \tbaz-max : 2147483647 (i32) (esc)
268 \ttaz-min : -9223372036854775808 (i64) (esc)
269 \ttaz-max : 9223372036854775807 (i64) (esc)
270 \tworld : 2 (str) (esc)