append build_components { core init timer server/nic_router test/nic_stress } append_if [string equal $type "nic_bridge"] build_components { server/nic_bridge } proc exit_support {} { if {[have_spec fiasco]} { return "no" } return "yes" } proc done_string {} { set done_string "" if {[have_spec fiasco]} { append done_string {.*?finished NIC stress test} append done_string {.*?\n} append done_string {.*?finished NIC stress test} append done_string {.*?\n} } else { append done_string {.*?"nic_stress_." exited with exit value 0} append done_string {.*?\n} append done_string {.*?"nic_stress_." exited with exit value 0} append done_string {.*?\n} } return $done_string } proc nr_of_rounds { test_id } { if {[have_spec sel4]} { switch $test_id { 1 { return 9 } 2 { return 7 } } } else { switch $test_id { 1 { return 22 } 2 { return 16 } } } return 0 } proc nr_of_sessions { test_id } { switch $test_id { 1 { return 11 } 2 { return 17 } } return 0 } build $build_components create_boot_directory append config { } append_if [string equal $type "nic_router"] config { } append_if [string equal $type "nic_bridge"] config { } append config { } install_config $config append boot_modules { core init timer nic_router test-nic_stress ld.lib.so } append_if [string equal $type "nic_bridge"] boot_modules { nic_bridge } build_boot_image $boot_modules append qemu_args " -nographic " run_genode_until [done_string] 300