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 virt_qemu_riscv] || [have_board zynq_qemu])} { puts "Autopilot mode is not supported on this platform." exit 0 } 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 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" 120