2017-12-19 14:18:08 +00:00
|
|
|
#
|
|
|
|
# \brief Test using netperf with a NIC router and with a native driver or
|
|
|
|
# if not available for the platform using usb 3.0 by default
|
|
|
|
# \author Martin Stein
|
|
|
|
# \date 2017-12-19
|
|
|
|
#
|
|
|
|
|
|
|
|
if {[have_include "power_on/qemu"]} {
|
|
|
|
puts "\nNetperf running on Qemu with a router is not supported.\n"
|
|
|
|
exit
|
|
|
|
}
|
|
|
|
|
|
|
|
if {[have_spec omap4]} {
|
|
|
|
puts stderr "\nTest requires 1 Gbit network interface - not supported for omap4\n"
|
|
|
|
exit 0
|
|
|
|
}
|
|
|
|
|
|
|
|
# network configuration
|
|
|
|
set use_nic_bridge 0
|
|
|
|
set use_nic_router 1
|
|
|
|
set use_wifi_driver 0
|
|
|
|
set use_usb_11 "no"
|
|
|
|
set use_usb_20 "no"
|
|
|
|
set use_usb_30 "yes"
|
|
|
|
|
2018-07-10 17:09:40 +00:00
|
|
|
set ip_match_string "ipaddr=(\[0-9\]+\.\[0-9\]+\.\[0-9\]+\.\[0-9\]+).*\n"
|
|
|
|
|
|
|
|
source ${genode_dir}/repos/dde_linux/run/vfs_lxip.inc
|
2017-12-19 14:18:08 +00:00
|
|
|
source ${genode_dir}/repos/ports/run/netperf.inc
|