add cram based unit tests
[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]}