2020-02-20 10:24:53 +00:00
|
|
|
# Default set of apps used in functional testing
|
|
|
|
|
|
|
|
_root=$(readlink -f "$(dirname "${BASH_SOURCE[0]}")")
|
|
|
|
_root=${_root%/test/common}
|
2020-05-11 21:15:03 +00:00
|
|
|
_app_dir=$_root/build/bin
|
2020-02-20 10:24:53 +00:00
|
|
|
_test_app_dir=$_root/test/app
|
|
|
|
|
2020-02-21 08:22:58 +00:00
|
|
|
VHOST_FUZZ_APP=("$_test_app_dir/fuzz/vhost_fuzz/vhost_fuzz")
|
2020-05-11 21:15:03 +00:00
|
|
|
ISCSI_APP=("$_app_dir/iscsi_tgt")
|
|
|
|
NVMF_APP=("$_app_dir/nvmf_tgt")
|
|
|
|
VHOST_APP=("$_app_dir/vhost")
|
2020-06-16 08:51:57 +00:00
|
|
|
DD_APP=("$_app_dir/spdk_dd")
|
2020-02-20 10:27:54 +00:00
|
|
|
|
|
|
|
# Check if apps should execute under debug flags
|
|
|
|
if [[ -e $_root/include/spdk/config.h ]]; then
|
2020-05-07 11:27:06 +00:00
|
|
|
if [[ $(< "$_root/include/spdk/config.h") == *"#define SPDK_CONFIG_DEBUG"* ]] \
|
|
|
|
&& ((SPDK_AUTOTEST_DEBUG_APPS)); then
|
2020-06-15 12:14:46 +00:00
|
|
|
VHOST_FUZZ_APP+=("--logflag=all")
|
|
|
|
ISCSI_APP+=("--logflag=all")
|
|
|
|
NVMF_APP+=("--logflag=all")
|
|
|
|
VHOST_APP+=("--logflag=all")
|
2020-06-16 08:51:57 +00:00
|
|
|
DD_APP+=("--logflag=all")
|
2020-02-20 10:27:54 +00:00
|
|
|
fi
|
|
|
|
fi
|