cpu_bench: fixes to make it work reliably
Added missing build dependency. Eliminated race condition when processing test output. Fixes #3412
This commit is contained in:
parent
eaefcc2c6f
commit
4189157d10
|
@ -5,7 +5,7 @@ if { [get_cmd_switch --autopilot] } {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
build "core init test/cpu_bench"
|
build "core init timer test/cpu_bench"
|
||||||
|
|
||||||
create_boot_directory
|
create_boot_directory
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ proc run_test {name serial_id} {
|
||||||
return [expr {$t2 - $t1}]
|
return [expr {$t2 - $t1}]
|
||||||
}
|
}
|
||||||
|
|
||||||
run_genode_until "Cpu testsuite started.*\n" 60
|
run_genode_until "Cpu testsuite started" 60
|
||||||
set serial_id [output_spawn_id]
|
set serial_id [output_spawn_id]
|
||||||
set bogomips [run_test "bogomips" $serial_id]
|
set bogomips [run_test "bogomips" $serial_id]
|
||||||
puts "bogomips: 2G Bogus instructions in $bogomips milliseconds ([expr {2000000.0 / $bogomips}] BogoMIPS)"
|
puts "bogomips: 2G Bogus instructions in $bogomips milliseconds ([expr {2000000.0 / $bogomips}] BogoMIPS)"
|
||||||
|
|
Loading…
Reference in New Issue