Support running netperf test on qemu

Set environment variable FORCE_QEMU to run the test on qemu.
This commit is contained in:
Christian Helmuth 2016-11-29 14:40:49 +01:00
parent 262259cd09
commit 85fa4d340b
1 changed files with 4 additions and 1 deletions

View File

@ -4,7 +4,10 @@
# \date 2013-04-18
#
if {[have_include "power_on/qemu"]} {
# setting environment variable FORCE_QEMU permits running netperf in qemu
set force_qemu [info exists ::env(FORCE_QEMU)]
if {[expr [have_include "power_on/qemu"] && !$force_qemu]} {
puts "\nNetperf running on Qemu is not recommended.\n"
exit
}