mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-02-20 09:26:37 +00:00
Add slip test to automated testing
This commit is contained in:
parent
944486c048
commit
e5fa357f07
@ -1390,7 +1390,7 @@ int app_slip_test(const struct cli_parsed *parsed, void *context)
|
||||
unsigned char bufin[8192];
|
||||
unsigned char bufout[8192];
|
||||
int count=0;
|
||||
for(count=0;count<1000000;count++) {
|
||||
for(count=0;count<50000;count++) {
|
||||
len=1+random()%1500;
|
||||
int i;
|
||||
for(i=0;i<len;i++) bufin[i]=random()&0xff;
|
||||
|
@ -116,6 +116,15 @@ test_mismatched_encap() {
|
||||
assertStdoutGrep --matches=1 "^$SIDB:BROADCAST UNICAST :"
|
||||
}
|
||||
|
||||
doc_slip_encoding="Test slip encoding and decoding"
|
||||
setup_slip_encoding() {
|
||||
setup_servald
|
||||
assert_no_servald_processes
|
||||
}
|
||||
test_slip_encoding() {
|
||||
executeOk_servald test slip
|
||||
}
|
||||
|
||||
doc_multiple_nodes="Multiple nodes on one link"
|
||||
setup_multiple_nodes() {
|
||||
setup_servald
|
||||
|
Loading…
x
Reference in New Issue
Block a user