numam-spdk/test/common/applications.sh
Michal Berger 731cd47e66 test/common: Add SPDK_APP wrapper for spdk_tgt
Change-Id: Ia085576c88c1824dca6b3b419259414cbb60c8a8
Signed-off-by: Michal Berger <michalx.berger@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5736
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Karol Latecki <karol.latecki@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2021-01-07 13:38:26 +00:00

27 lines
818 B
Bash

# Default set of apps used in functional testing
_root=$(readlink -f "$(dirname "${BASH_SOURCE[0]}")")
_root=${_root%/test/common}
_app_dir=$_root/build/bin
_test_app_dir=$_root/test/app
VHOST_FUZZ_APP=("$_test_app_dir/fuzz/vhost_fuzz/vhost_fuzz")
ISCSI_APP=("$_app_dir/iscsi_tgt")
NVMF_APP=("$_app_dir/nvmf_tgt")
VHOST_APP=("$_app_dir/vhost")
DD_APP=("$_app_dir/spdk_dd")
SPDK_APP=("$_app_dir/spdk_tgt")
# Check if apps should execute under debug flags
if [[ -e $_root/include/spdk/config.h ]]; then
if [[ $(< "$_root/include/spdk/config.h") == *"#define SPDK_CONFIG_DEBUG"* ]] \
&& ((SPDK_AUTOTEST_DEBUG_APPS)); then
VHOST_FUZZ_APP+=("--logflag=all")
ISCSI_APP+=("--logflag=all")
NVMF_APP+=("--logflag=all")
VHOST_APP+=("--logflag=all")
DD_APP+=("--logflag=all")
SPDK_APP+=("--logflag=all")
fi
fi