From c013ef15984e32cf7fc61715e217caaed3ec429e Mon Sep 17 00:00:00 2001 From: Ziye Yang Date: Tue, 19 Jan 2021 19:25:41 +0800 Subject: [PATCH] accel_engine test: Add the test case for accel_engine. This patch is used to create a script to test the accel_engine. It can be used to test both software/hardware approach in acccel_engine. The first usage case is to add the crc32c test. More cases can be added later. Signed-off-by: Ziye Yang Change-Id: I9f7564e39887265f8bbfce3a15ba446fbd7a14bd Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5974 Tested-by: SPDK CI Jenkins Reviewed-by: Paul Luse Reviewed-by: Aleksey Marchuk Reviewed-by: Tomasz Zawadzki --- autotest.sh | 1 + test/accel_engine/accel_engine.sh | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100755 test/accel_engine/accel_engine.sh diff --git a/autotest.sh b/autotest.sh index 75bab1ddf..09cead183 100755 --- a/autotest.sh +++ b/autotest.sh @@ -190,6 +190,7 @@ if [ $SPDK_RUN_FUNCTIONAL_TEST -eq 1 ]; then run_test "spdkcli_tcp" test/spdkcli/tcp.sh run_test "dpdk_mem_utility" test/dpdk_memory_utility/test_dpdk_mem_info.sh run_test "event" test/event/event.sh + run_test "accel_engine" test/accel_engine/accel_engine.sh if [ $SPDK_TEST_BLOCKDEV -eq 1 ]; then run_test "blockdev_general" test/bdev/blockdev.sh diff --git a/test/accel_engine/accel_engine.sh b/test/accel_engine/accel_engine.sh new file mode 100755 index 000000000..0713db27d --- /dev/null +++ b/test/accel_engine/accel_engine.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +testdir=$(readlink -f $(dirname $0)) +rootdir=$(readlink -f $testdir/../..) +source $rootdir/test/common/autotest_common.sh + +#Test case 1: crc32c test +#To save time, only use verification case +run_test "accel_engine" $SPDK_EXAMPLE_DIR/accel_perf -q 128 -o 4096 -t 2 -w crc32c -y