xref: /spdk/test/common/applications.sh (revision b30d57cdad6d2bc75cc1e4e2ebbcebcb0d98dcfa)
1# Default set of apps used in functional testing
2
3_root=$(readlink -f "$(dirname "${BASH_SOURCE[0]}")")
4_root=${_root%/test/common}
5_app_dir=$_root/build/bin
6_test_app_dir=$_root/test/app
7
8VHOST_FUZZ_APP=("$_test_app_dir/fuzz/vhost_fuzz/vhost_fuzz")
9ISCSI_APP=("$_app_dir/iscsi_tgt")
10NVMF_APP=("$_app_dir/nvmf_tgt")
11VHOST_APP=("$_app_dir/vhost")
12DD_APP=("$_app_dir/spdk_dd")
13SPDK_APP=("$_app_dir/spdk_tgt")
14
15# Check if apps should execute under debug flags
16if [[ -e $_root/include/spdk/config.h ]]; then
17	if [[ $(< "$_root/include/spdk/config.h") == *"#define SPDK_CONFIG_DEBUG"* ]] \
18		&& ((SPDK_AUTOTEST_DEBUG_APPS)); then
19		VHOST_FUZZ_APP+=("--logflag=all")
20		ISCSI_APP+=("--logflag=all")
21		NVMF_APP+=("--logflag=all")
22		VHOST_APP+=("--logflag=all")
23		DD_APP+=("--logflag=all")
24		SPDK_APP+=("--logflag=all")
25	fi
26fi
27