3a5801a5a0f4cf731e61377dd2e50a3c669d6176
[project/libubox.git] / tests / cram / test_blobmsg.t
1 check that blobmsg is producing expected results:
2
3 $ [ -n "$TEST_BIN_DIR" ] && export PATH="$TEST_BIN_DIR:$PATH"
4 $ valgrind --quiet --leak-check=full test-blobmsg
5 Message: Hello, world!
6 List: {
7 0
8 1
9 2
10 133.700000
11 }
12 Testdata: {
13 \tdouble : 133.700000 (esc)
14 \thello : 1 (esc)
15 \tworld : 2 (esc)
16 }
17 json: {"message":"Hello, world!","testdata":{"double":133.700000,"hello":1,"world":"2"},"list":[0,1,2,133.700000]}
18
19 $ test-blobmsg-san
20 Message: Hello, world!
21 List: {
22 0
23 1
24 2
25 133.700000
26 }
27 Testdata: {
28 \tdouble : 133.700000 (esc)
29 \thello : 1 (esc)
30 \tworld : 2 (esc)
31 }
32 json: {"message":"Hello, world!","testdata":{"double":133.700000,"hello":1,"world":"2"},"list":[0,1,2,133.700000]}