test_blobmsg.t 727 B

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