Skip to content

Commit

Permalink
test: dma_perf: run new mode and segment types
Browse files Browse the repository at this point in the history
Add tests for the new SW copy mode and new sparse segment types to be
run in the runner script.

Signed-off-by: Tuomas Taipale <tuomas.taipale@nokia.com>
  • Loading branch information
TuomasTaipale committed Dec 5, 2023
1 parent 5bfc238 commit 934516e
Showing 1 changed file with 26 additions and 5 deletions.
31 changes: 26 additions & 5 deletions test/performance/odp_dma_perf_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,45 @@ check_result()
fi
}

echo "odp_dma_perf: synchronous transfer"
echo "odp_dma_perf: synchronous DMA transfer 1"
echo "===================================="

${TEST_DIR}/${BIN_NAME}${EXEEXT} -t 0 -i $SEGC -o $SEGC -s $SEGS -S 0 -f $INFL -T $TIME

check_result $?

echo "odp_dma_perf: asynchronous transfer 1"
echo "odp_dma_perf: synchronous DMA transfer 2"
echo "===================================="

${TEST_DIR}/${BIN_NAME}${EXEEXT} -t 0 -i $SEGC -o $SEGC -s $SEGS -S 1 -f $INFL -T $TIME

check_result $?

echo "odp_dma_perf: asynchronous DMA transfer 1"
echo "====================================="

${TEST_DIR}/${BIN_NAME}${EXEEXT} -t 1 -i $SEGC -o $SEGC -s $SEGS -S 2 -m 0 -f $INFL -T $TIME

check_result $?

echo "odp_dma_perf: asynchronous DMA transfer 2"
echo "====================================="

${TEST_DIR}/${BIN_NAME}${EXEEXT} -t 1 -i $SEGC -o $SEGC -s $SEGS -S 3 -m 1 -f $INFL -T $TIME

check_result $?

echo "odp_dma_perf: SW transfer 1"
echo "====================================="

${TEST_DIR}/${BIN_NAME}${EXEEXT} -t 1 -i $SEGC -o $SEGC -s $SEGS -S 1 -m 0 -f $INFL -T $TIME
${TEST_DIR}/${BIN_NAME}${EXEEXT} -t 2 -i $SEGC -o $SEGC -s $SEGS -S 0 -f $INFL -T $TIME

check_result $?

echo "odp_dma_perf: asynchronous transfer 2"
echo "odp_dma_perf: SW transfer 2"
echo "====================================="

${TEST_DIR}/${BIN_NAME}${EXEEXT} -t 1 -i $SEGC -o $SEGC -s $SEGS -S 1 -m 1 -f $INFL -T $TIME
${TEST_DIR}/${BIN_NAME}${EXEEXT} -t 2 -i $SEGC -o $SEGC -s $SEGS -S 2 -f $INFL -T $TIME

check_result $?

Expand Down

0 comments on commit 934516e

Please sign in to comment.