]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/spdk/test/common/applications.sh
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / spdk / test / common / applications.sh
diff --git a/ceph/src/spdk/test/common/applications.sh b/ceph/src/spdk/test/common/applications.sh
new file mode 100644 (file)
index 0000000..041af29
--- /dev/null
@@ -0,0 +1,24 @@
+# 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")
+
+# 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")
+       fi
+fi