mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 13:47:56 +00:00
nic_router_flood.run: be more flexible
Do not simply wait for the good ping test to finish, but for the other flood tests to trigger the RAM exhaustion. This makes the test more robust with slower platforms or a different timing. Issue #2857
This commit is contained in:
parent
2733d3fea5
commit
2af9cb7952
@ -85,6 +85,7 @@ append config {
|
|||||||
<provides><service name="Nic"/></provides>
|
<provides><service name="Nic"/></provides>
|
||||||
<config verbose="no"
|
<config verbose="no"
|
||||||
verbose_packets="no"
|
verbose_packets="no"
|
||||||
|
verbose_packet_drop="yes"
|
||||||
verbose_domain_state="yes"
|
verbose_domain_state="yes"
|
||||||
dhcp_discover_timeout_sec="1"
|
dhcp_discover_timeout_sec="1"
|
||||||
tcp_idle_timeout_sec="3600"
|
tcp_idle_timeout_sec="3600"
|
||||||
@ -156,7 +157,7 @@ append config {
|
|||||||
<resource name="RAM" quantum="8M"/>
|
<resource name="RAM" quantum="8M"/>
|
||||||
<config dst_ip="} [good_dst_ip] {"
|
<config dst_ip="} [good_dst_ip] {"
|
||||||
period_sec="2"
|
period_sec="2"
|
||||||
count="20"/>
|
count="999"/>
|
||||||
<route>
|
<route>
|
||||||
<service name="Nic"> <child name="nic_router"/> </service>
|
<service name="Nic"> <child name="nic_router"/> </service>
|
||||||
<any-service> <parent/> <any-child/> </any-service>
|
<any-service> <parent/> <any-child/> </any-service>
|
||||||
@ -195,4 +196,10 @@ append_if [have_spec lan9118] qemu_args " -net nic,model=lan9118 "
|
|||||||
|
|
||||||
append qemu_args " -net user -nographic "
|
append qemu_args " -net user -nographic "
|
||||||
|
|
||||||
run_genode_until ".*\"ping\" exited with exit value 0.*\n" 60
|
set done_string ""
|
||||||
|
for {set i 0} {$i < 2} {incr i 1} {
|
||||||
|
append done_string {.*nic_router\] \[flood_links\] drop packet \(RAM quota exhausted.*\n}
|
||||||
|
append done_string {.*ping\] 64 bytes from 10\.0\.2\.2.*\n}
|
||||||
|
}
|
||||||
|
|
||||||
|
run_genode_until $done_string 120
|
||||||
|
Loading…
Reference in New Issue
Block a user