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}
|
|
|
|
_app_dir=$_root/app
|
|
|
|
_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-02-20 10:24:53 +00:00
|
|
|
ISCSI_APP=("$_app_dir/iscsi_tgt/iscsi_tgt")
|
|
|
|
NVMF_APP=("$_app_dir/nvmf_tgt/nvmf_tgt")
|
|
|
|
VHOST_APP=("$_app_dir/vhost/vhost")
|
2020-02-20 10:27:54 +00:00
|
|
|
|
|
|
|
# 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+=("--log-flags=all")
|
|
|
|
ISCSI_APP+=("--log-flags=all")
|
|
|
|
NVMF_APP+=("--log-flags=all")
|
|
|
|
VHOST_APP+=("--log-flags=all")
|
|
|
|
fi
|
|
|
|
fi
|