# # Let the host Linux ping a Genode in Qemu through a Wireguard tunnel. # source ${genode_dir}/repos/dde_linux/run/wg_qemu_tap_preamble.inc create_boot_directory import_from_depot [depot_user]/src/[base_src] \ [depot_user]/pkg/[drivers_nic_pkg] \ [depot_user]/src/init \ [depot_user]/src/nic_router install_config { } build { app/wireguard } build_boot_image { wireguard } run_genode_until "uplink\] dynamic IP config: interface 10.0.2.3" 10 set timeout 60 append wait_for_string "64 bytes from 10.0.9.2.*" append wait_for_string "64 bytes from 10.0.9.2.*" append wait_for_string "64 bytes from 10.0.9.2.*\n" eval spawn ping 10.0.9.2 expect { -re $wait_for_string { } eof { puts stderr "Error: Spawned process died unexpectedly"; exit -3 } timeout { puts stderr "Error: Test execution timed out"; exit -2 } }