51baf04dc6
This helps us avoid situations where other bdev modules will break the rte_pci_bus mappings for qat devices before we have an opportunity to initialize the qat pmd. Also, update the blobstore match file to handle the possibility of using a crypto driver and improve the json_config and spdkcli scripts to handle allocating qat_crypto drivers. Change-Id: I7359c67d1992df1d5bb85585eca6d5c342787649 Signed-off-by: Seth Howell <seth.howell@intel.com> Reviewed-on: https://review.gerrithub.io/430393 Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
27 lines
797 B
Bash
27 lines
797 B
Bash
set -xe
|
|
|
|
testdir=$(readlink -f $(dirname $0))
|
|
SPDKCLI_BUILD_DIR=$(readlink -f $testdir/../..)
|
|
spdkcli_job="$SPDKCLI_BUILD_DIR/test/spdkcli/spdkcli_job.py"
|
|
. $SPDKCLI_BUILD_DIR/test/common/autotest_common.sh
|
|
|
|
function on_error_exit() {
|
|
set +e
|
|
killprocess $spdk_tgt_pid
|
|
rm -f $testdir/${MATCH_FILE} $testdir/match_files/spdkcli_details_vhost.test /tmp/sample_aio /tmp/sample_pmem
|
|
print_backtrace
|
|
exit 1
|
|
}
|
|
|
|
function run_spdk_tgt() {
|
|
$SPDKCLI_BUILD_DIR/app/spdk_tgt/spdk_tgt -m 0x3 -p 0 -s 4096 &
|
|
spdk_tgt_pid=$!
|
|
waitforlisten $spdk_tgt_pid
|
|
}
|
|
|
|
function check_match() {
|
|
$SPDKCLI_BUILD_DIR/scripts/spdkcli.py ll $SPDKCLI_BRANCH > $testdir/match_files/${MATCH_FILE}
|
|
$SPDKCLI_BUILD_DIR/test/app/match/match -v $testdir/match_files/${MATCH_FILE}.match
|
|
rm -f $testdir/match_files/${MATCH_FILE}
|
|
}
|