# # See os/src/test/nic_router_dhcp/README for a documentation. # create_boot_directory import_from_depot [depot_user]/src/[base_src] set build_components { init server/dynamic_rom test/nic_router_dhcp/client server/nic_router } lappend_if [nic_router_2_managed] build_components test/nic_router_dhcp/manager lappend_if [nic_router_2_managed] build_components server/report_rom build $build_components append config { } append_if [expr ![nic_router_2_managed]] config { } append config { } append_if [nic_router_2_managed] config { } append config { } append_if [nic_router_2_managed] config { } append config { } install_config $config set boot_modules { init dynamic_rom nic_router test-nic_router_dhcp-client } lappend_if [nic_router_2_managed] boot_modules test-nic_router_dhcp-manager lappend_if [nic_router_2_managed] boot_modules report_rom build_boot_image $boot_modules append qemu_args " -nographic " append_qemu_nic_args append done_string ".*DHCP request completed:.*\n" append done_string ".* IP lease time: 3600 seconds.*\n" append done_string ".* Interface: 10.0.3.2/24.*\n" append done_string ".* Router: 10.0.3.1.*\n" append done_string ".* DNS server #1: 1.2.3.4.*\n" append done_string ".* DNS server #2: 2.3.4.5.*\n" append done_string ".* DNS server #3: 3.4.5.6.*\n" append done_string ".*DHCP request completed:.*\n" append done_string ".* IP lease time: 3600 seconds.*\n" append done_string ".* Interface: 10.0.3.2/24.*\n" append done_string ".* Router: 10.0.3.1.*\n" append done_string ".* DNS server #1: 4.5.6.7.*\n" append done_string ".* DNS server #2: 5.6.7.8.*\n" append done_string ".*DHCP request completed:.*\n" append done_string ".* IP lease time: 3600 seconds.*\n" append done_string ".* Interface: 10.0.3.2/24.*\n" append done_string ".* Router: 10.0.3.1.*\n" append done_string ".* DNS server #1: 6.7.8.9.*\n" append done_string ".*DHCP request completed:.*\n" append done_string ".* IP lease time: 3600 seconds.*\n" append done_string ".* Interface: 10.0.3.2/24.*\n" append done_string ".* Router: 10.0.3.1.*\n" append done_string ".*DHCP request completed:.*\n" append done_string ".* IP lease time: 3600 seconds.*\n" append done_string ".* Interface: 10.0.3.2/24.*\n" append done_string ".* Router: 10.0.3.1.*\n" append done_string ".*DHCP request completed:.*\n" append done_string ".* IP lease time: 3600 seconds.*\n" append done_string ".* Interface: 10.0.3.2/24.*\n" append done_string ".* Router: 10.0.3.1.*\n" append done_string ".* DNS server #1: 1.2.3.4.*\n" append done_string ".* DNS server #2: 2.3.4.5.*\n" append done_string ".* DNS server #3: 3.4.5.6.*\n" run_genode_until $done_string 30