Commit cedcbfc3 authored by Krzysztof Sprzaczkowski's avatar Krzysztof Sprzaczkowski Committed by Jim Harris
Browse files

test/accel: Add script to test accel RPC methods for IAA module



The accel iaa_scan_accel_module may be performed to use
the IAA Module before starting the framework but double-calling
of this function is not allowed.

Change-Id: I033084d389b891523fe28d0e21681e6a9f66f685
Signed-off-by: default avatarKrzysztof Sprzaczkowski <krzysztof.sprzaczkowski@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/21310


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: default avatarJim Harris <jim.harris@samsung.com>
parent 7fcc8afc
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -22,6 +22,14 @@ function accel_scan_dsa_modules_test_suite() {
	NOT $rpc_py dsa_scan_accel_module
}

# The RPC iaa_scan_accel_module method may be performed to use the IAA Module
# before starting the framework.
# Should FAIL - double-calling of this function is not allowed.
function accel_scan_iaa_modules_test_suite() {
	$rpc_py iaa_scan_accel_module
	NOT $rpc_py iaa_scan_accel_module
}

# The RPC accel_assign_opc method may be performed to override the operation code
# assignments to modules before starting the framework.
# Should PASS - opcode assignments can be verified after starting the framework.
@@ -38,6 +46,10 @@ if [[ $CONFIG_IDXD == y && $SPDK_TEST_ACCEL_DSA -gt 0 ]]; then
	run_test "accel_scan_dsa_modules" accel_scan_dsa_modules_test_suite
fi

if [[ $CONFIG_IDXD == y && $SPDK_TEST_ACCEL_IAA -gt 0 ]]; then
	run_test "accel_scan_iaa_modules" accel_scan_iaa_modules_test_suite
fi

run_test "accel_assign_opcode" accel_assign_opcode_test_suite

killprocess $spdk_tgt_pid
+2 −1
Original line number Diff line number Diff line
@@ -38,8 +38,9 @@ vmd_hello_world
vmd_identify
vmd_perf

# Waiting for CI tests on the platform equipped with DSA
# Waiting for CI tests on the platform equipped DSA and IAA accelerators
accel_scan_dsa_modules
accel_scan_iaa_modules

# nightly tests
bdev_fio_rw_verify_ext