2015-02-20 12:39:10 +00:00
#
# \brief Test using netperf with the wifi_drv
# \author Alexander Boettcher
# \date 2013-07-08
#
assert_spec x86
if {[have_include "power_on/qemu"] || [have_include "power_on/linux"]} {
puts stderr "\nNetperf WIFI running on Qemu/Linux is not supported.\n"
exit 0
}
2017-08-14 08:50:00 +00:00
if { [have_spec muen] } {
puts "Run script does not support Muen."
exit 0
}
2017-11-24 13:40:29 +00:00
if {[get_cmd_switch --autopilot] && [have_spec x86_32] && ![have_spec acpi]} {
puts stderr "\nNetperf WIFI running with non-ACPI kernel on native x86_32 test machine is not supported because of wrong interrupt number in pci config space (should be 11 instead 10).\n"
exit
}
2015-02-20 12:39:10 +00:00
# network configuration
set use_nic_bridge 0
2017-12-19 14:18:08 +00:00
set use_nic_router 0
2015-02-20 12:39:10 +00:00
set use_wifi_driver 1
set use_usb_11 "no"
set use_usb_20 "no"
set use_usb_30 "no"
set wifi_ssid $::env(GENODE_WIFI_SSID)
set wifi_psk $::env(GENODE_WIFI_PSK)
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
2015-02-20 12:39:10 +00:00
source ${genode_dir}/repos/ports/run/netperf.inc
# remove firmware images
exec sh -c "rm bin/*.ucode"