diff --git a/test/accel/accel.sh b/test/accel/accel.sh index 7886de457..ee985cf13 100755 --- a/test/accel/accel.sh +++ b/test/accel/accel.sh @@ -28,3 +28,15 @@ if [[ $CONFIG_ISAL == y ]]; then run_test "accel_decomp_mthread" $SPDK_EXAMPLE_DIR/accel_perf -t 1 -w decompress -l $testdir/bib -y -T 2 run_test "accel_deomp_full_mthread" $SPDK_EXAMPLE_DIR/accel_perf -t 1 -w decompress -l $testdir/bib -y -o 0 -T 2 fi + +trap 'killprocess $spdk_tgt_pid; exit 1' ERR + +$SPDK_BIN_DIR/spdk_tgt --wait-for-rpc & +spdk_tgt_pid=$! +waitforlisten $spdk_tgt_pid + +$rpc_py accel_assign_opc -o copy -m software +$rpc_py framework_start_init +$rpc_py accel_get_opc_assignments | jq -r '.copy' | grep software + +killprocess $spdk_tgt_pid