Add slip test to automated testing

This commit is contained in:
Jeremy Lakeman 2013-02-20 10:21:56 +10:30
parent 944486c048
commit e5fa357f07
2 changed files with 10 additions and 1 deletions

View File

@ -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;

View File

@ -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