if {![have_include power_on/qemu] || [have_spec foc] || [have_board rpi3] || [have_board imx53_qsb_tz]} { puts "Run script is not supported on this platform." exit 0 } if {[get_cmd_switch --autopilot] && [have_board riscv_qemu]} { puts "Autopilot mode is not supported on this platform." exit 0 } proc test_timeout { } { if {[have_spec sel4] && [have_spec x86]} { return 240 } if {[have_spec okl4] || [have_spec pistachio]} { return 240 } return 120 } 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 build { app/ping test/net_flood server/nic_router server/dynamic_rom } install_config { } build_boot_image { test-net_flood ping nic_router dynamic_rom } append qemu_args " -nographic " append_qemu_nic_args run_genode_until {.*ping\] 64 bytes from 10\.0\.2\.2: icmp_seq=30 .*\n} [test_timeout]