mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
11 lines
713 B
Text
11 lines
713 B
Text
# @TEST-DOC: Test parsing behavior of RESP.
|
|
#
|
|
# @TEST-EXEC: spicyc ${DIST}/analyzer/resp.spicy ${DIST}/analyzer/redis.spicy -j -d -o redis.hlto
|
|
#
|
|
# TODO: A lot of tests are possible from the docs and having them would be nice.
|
|
# But, a lot of characters ($, -, etc.) cause problems with TEST_EXEC. ugh.
|
|
# @TEST-EXEC: printf "+OK\x0d\x0a" | spicy-dump -p RESP::Data redis.hlto >>output 2>&1
|
|
# @TEST-EXEC: printf ":1000\x0d\x0a" | spicy-dump -p RESP::Data redis.hlto >>output 2>&1
|
|
# @TEST-EXEC: printf ":-1000\x0d\x0a" | spicy-dump -p RESP::Data redis.hlto >>output 2>&1
|
|
# @TEST-EXEC: printf ":+1000\x0d\x0a" | spicy-dump -p RESP::Data redis.hlto >>output 2>&1
|
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER= btest-diff output
|