source ${genode_dir}/repos/os/run/assert_qemu_nic.inc proc num_ping_rounds { } { if {[have_spec sel4] && [have_spec x86]} { return 10 } if {[have_spec okl4] || [have_spec pistachio]} { return 10 } return 30 } proc good_dst_ip { } { return "10.0.2.2" } proc bad_dst_ip { } { return "10.0.0.123" } create_boot_directory import_from_depot [depot_user]/src/[base_src] \ [depot_user]/pkg/[drivers_nic_pkg] \ [depot_user]/src/init \ [depot_user]/src/report_rom build { app/ping test/net_flood server/nic_router server/dynamic_rom } install_config { } build_boot_image [build_artifacts] append qemu_args " -nographic " append_qemu_nic_args run_genode_until ".*ping\] 64 bytes from 10\.0\.2\.2: icmp_seq=[num_ping_rounds] .*\n" 125