libubox/tests/cram/test_blobmsg_check_array.t
Chris Nisbet 7da66430de tests: blobmsg: add test case
* add a test for blobmsg_check_array() to test an array with a string in it

This test was added in conjunction with a change to blobmsg_check_array() to
get it to pass the length obtained from blob_len() rather than blobmsg_len().

Signed-off-by: Chris Nisbet <nischris@gmail.com>
2020-02-27 21:56:20 +01:00

8 lines
251 B
Raku

check that blobmsg_check_array() is producing expected results:
$ [ -n "$TEST_BIN_DIR" ] && export PATH="$TEST_BIN_DIR:$PATH"
$ test-blobmsg_check_array
Process array_a: entry 0
array_b contains string: 1
blobmsg_check_array() test passed