Skip to content

Commit

Permalink
test: timer_accuracy_run: run all modes
Browse files Browse the repository at this point in the history
Run all timer_accuracy modes, not just the default.

Signed-off-by: Jere Leppänen <[email protected]>
  • Loading branch information
JereLeppanen committed Jan 29, 2025
1 parent 06dc476 commit bea0d63
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions test/performance/odp_timer_accuracy_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@

TEST_DIR="${TEST_DIR:-$(dirname $0)}"

$TEST_DIR/odp_timer_accuracy${EXEEXT} -p 100000000 -n 10
for mode in 0 1 2 3 4; do

RET_VAL=$?
if [ $RET_VAL -ne 0 ] ; then
echo odp_timer_accuracy FAILED
exit $RET_VAL
fi
$TEST_DIR/odp_timer_accuracy${EXEEXT} -m $mode -p 100000000 -n 10

RET_VAL=$?
if [ $RET_VAL -ne 0 ] ; then
echo "odp_timer_accuracy (mode $mode) FAILED"
exit $RET_VAL
fi

done

exit 0

0 comments on commit bea0d63

Please sign in to comment.