tests: fp_sharing: Fix definition of PI_NUM_ITERATIONS
The fp_sharing test has an option to control the number of iterations in the pi calculation, which is used to adjust the duration of the test on different platforms that may have significantly different execution frequencies (e.g., qemu_x86 vs. frdm_k64f). The conversion to CMake did not handle this option correctly and forced the same value for all platforms. The test now completes in about 5 minutes on frdm_k64f. Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
This commit is contained in:
parent
7a587eea8f
commit
cc6f8b524c
1 changed files with 3 additions and 1 deletions
|
@ -6,7 +6,9 @@ project(NONE)
|
||||||
# compensate for this, one can control the number of iterations in the PI
|
# compensate for this, one can control the number of iterations in the PI
|
||||||
# calculation through PI_NUM_ITERATIONS. Lowering this value will increase
|
# calculation through PI_NUM_ITERATIONS. Lowering this value will increase
|
||||||
# the speed of the test but it will come at the expense of precision.
|
# the speed of the test but it will come at the expense of precision.
|
||||||
zephyr_compile_definitions(PI_NUM_ITERATIONS=700000)
|
|
||||||
|
set_ifndef(PI_NUM_ITERATIONS 700000)
|
||||||
|
zephyr_compile_definitions(PI_NUM_ITERATIONS=${PI_NUM_ITERATIONS})
|
||||||
|
|
||||||
FILE(GLOB app_sources src/*.c)
|
FILE(GLOB app_sources src/*.c)
|
||||||
target_sources(app PRIVATE ${app_sources})
|
target_sources(app PRIVATE ${app_sources})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue