# # Build components # proc enable_test_1 { } { return 1 } proc enable_test_2 { } { return 1 } proc enable_test_3 { } { return 1 } proc enable_test_4 { } { return 1 } proc enable_test_5 { } { return 1 } proc enable_test_6 { } { return 1 } source ${genode_dir}/repos/libports/run/nic_router.inc build $targets create_boot_directory proc test_1_config { } { if {[enable_test_1]} { return " [client_config udp 1 10.0.98.55 10.0.98.33 255.255.255.0 nic_router 1337 10.0.98.33] [server_config udp 1 10.0.99.55 10.0.99.33 255.255.255.0 nic_router 1337 ]" } } proc test_2_config { } { if {[enable_test_2]} { return " [client_config udp 2 10.0.2.212 10.0.2.1 255.255.255.0 nic_bridge 1 10.0.2.55] [server_config udp 2 18.17.16.15 18.17.16.14 255.255.0.0 nic_router 1 ]" } } proc test_3_config { } { if {[enable_test_3]} { return " [client_config udp 3 217.13.192.2 217.13.192.1 255.255.192.0 nic_router 65535 10.0.2.213] [server_config udp 3 10.0.2.213 10.0.2.55 255.255.255.0 nic_bridge 65535 ]" } } proc test_4_config { } { if {[enable_test_4]} { return " [client_config http 1 10.0.2.201 10.0.2.1 255.255.255.0 nic_bridge 80 10.0.2.55] [server_config http 1 192.168.1.18 192.168.1.1 255.255.255.0 nic_router 80 ]" } } proc test_5_config { } { if {[enable_test_5]} { return " [client_config http 2 10.0.2.202 10.0.2.1 255.255.255.0 nic_bridge 8080 10.0.2.55] [server_config http 2 192.168.2.72 192.168.2.1 255.255.255.0 nic_router 8080 ]" } } proc test_6_config { } { if {[enable_test_6]} { return " [client_config http 3 100.200.0.128 100.200.0.1 255.255.0.0 nic_router 2345 10.0.2.203] [server_config http 3 10.0.2.203 10.0.2.1 255.255.255.0 nic_bridge 2345 ]" } } append config { } [gpio_drv_config] { } [nic_drv_config] { } [platform_drv_config] { } [test_1_config] { } [test_2_config] { } [test_3_config] { } [test_4_config] { } [test_5_config] { } [test_6_config] { } install_config $config build_boot_image $boot_modules run_genode_until {.*Test done.*\n.*Test done.*\n.*Test done.*\n.*Test done.*\n.*Test done.*\n.*Test done.*\n} 240