mirror of
git://git.psyc.eu/libpsyc
synced 2024-08-15 03:19:02 +00:00
more test packets & additional testPsyc debug msgs
This commit is contained in:
parent
bf2a316d43
commit
ac7b059b9c
6 changed files with 20 additions and 0 deletions
4
test/packets/00-body-only
Normal file
4
test/packets/00-body-only
Normal file
|
@ -0,0 +1,4 @@
|
|||
|
||||
_message_private
|
||||
OHAI
|
||||
|
|
1
test/packets/00-empty
Normal file
1
test/packets/00-empty
Normal file
|
@ -0,0 +1 @@
|
|||
|
|
4
test/packets/00-length-body-only
Normal file
4
test/packets/00-length-body-only
Normal file
|
@ -0,0 +1,4 @@
|
|||
22
|
||||
_message_private
|
||||
OHAI
|
||||
|
|
6
test/packets/00-length-no-entity
Normal file
6
test/packets/00-length-no-entity
Normal file
|
@ -0,0 +1,6 @@
|
|||
:_source psyc://foo.example.com/
|
||||
:_target psyc://bar.example.com/
|
||||
22
|
||||
_message_private
|
||||
OHAI
|
||||
|
|
3
test/packets/00-method-only-1
Normal file
3
test/packets/00-method-only-1
Normal file
|
@ -0,0 +1,3 @@
|
|||
|
||||
_
|
||||
|
|
|
@ -80,6 +80,8 @@ int test_input (int i, char *recvbuf, size_t nbytes) {
|
|||
value.length = 0;
|
||||
|
||||
do {
|
||||
if (verbose >= 3)
|
||||
printf("\n# buffer = [%.*s]\n# part = %d\n", (int)parsers[i].buffer.length, parsers[i].buffer.ptr, parsers[i].part);
|
||||
// Parse the next part of the packet (a routing/entity modifier or the body)
|
||||
ret = exit_code = psyc_parse(&parsers[i], &oper, &name, &value);
|
||||
if (verbose >= 2)
|
||||
|
|
Loading…
Reference in a new issue