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