Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Nisbet <nischris@gmail.com>2020-02-12 11:08:44 +0300
committerJo-Philipp Wich <jo@mein.io>2020-02-27 23:56:20 +0300
commit7da66430de3fc235bfc6ebb0b85fb90ea246138d (patch)
tree1ca313551f82815aeb125ac1652e917cc45a45a4 /tests/cram
parent75e300aeec25e032a9778bea34c713969960d1f0 (diff)
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>
Diffstat (limited to 'tests/cram')
-rw-r--r--tests/cram/test_blobmsg_check_array.t8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/cram/test_blobmsg_check_array.t b/tests/cram/test_blobmsg_check_array.t
new file mode 100644
index 0000000..f01bdbf
--- /dev/null
+++ b/tests/cram/test_blobmsg_check_array.t
@@ -0,0 +1,8 @@
+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