b0a5cd8a28
For improved QA etc. For the start with initial test cases for avl, base64, jshn and list components. Moved runqueue and blobmsg from examples to tests. Converted just a few first test cases from json-script example into the new cram based unit test, more to come. Signed-off-by: Petr Štetiar <ynezz@true.cz>
14 lines
403 B
Raku
14 lines
403 B
Raku
check that runqueue is producing expected results:
|
|
|
|
$ [ -n "$TEST_BIN_DIR" ] && export PATH="$TEST_BIN_DIR:$PATH"
|
|
$ valgrind --quiet --leak-check=full test-runqueue
|
|
[1/1] start 'sleep 1'
|
|
[1/1] cancel 'sleep 1'
|
|
[0/1] finish 'sleep 1'
|
|
[1/1] start 'sleep 1'
|
|
[1/1] cancel 'sleep 1'
|
|
[0/1] finish 'sleep 1'
|
|
[1/1] start 'sleep 1'
|
|
[1/1] cancel 'sleep 1'
|
|
[0/1] finish 'sleep 1'
|
|
All done!
|