configure: add --disable-tests option
Change-Id: Icb6f3d8cf32e630a53b0c9e362306a09b0a49139 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/402966 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
This commit is contained in:
parent
9c5c2cf7c8
commit
9022a59e99
3
CONFIG
3
CONFIG
@ -55,6 +55,9 @@ CONFIG_UBSAN?=n
|
||||
# Build with Thread Sanitizer enabled
|
||||
CONFIG_TSAN?=n
|
||||
|
||||
# Build tests
|
||||
CONFIG_TESTS?=y
|
||||
|
||||
# Directory that contains the desired SPDK environment library.
|
||||
# By default, this is implemented using DPDK.
|
||||
CONFIG_ENV?=$(SPDK_ROOT_DIR)/lib/env_dpdk
|
||||
|
3
Makefile
3
Makefile
@ -36,7 +36,8 @@ S :=
|
||||
SPDK_ROOT_DIR := $(CURDIR)
|
||||
include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
|
||||
|
||||
DIRS-y += lib test examples app include
|
||||
DIRS-y += lib examples app include
|
||||
DIRS-$(CONFIG_TESTS) += test
|
||||
|
||||
.PHONY: all clean $(DIRS-y) config.h CONFIG.local mk/cc.mk cc_version cxx_version
|
||||
|
||||
|
10
configure
vendored
10
configure
vendored
@ -21,6 +21,7 @@ function usage()
|
||||
echo " --enable-ubsan Enable undefined behavior sanitizer"
|
||||
echo " --enable-coverage Enable code coverage tracking"
|
||||
echo " --enable-lto Enable link-time optimization"
|
||||
echo " --disable-tests Disable building of tests"
|
||||
echo " --with-env=path Use an alternate environment implementation"
|
||||
echo ""
|
||||
echo "Specifying Dependencies:"
|
||||
@ -101,6 +102,12 @@ for i in "$@"; do
|
||||
--disable-lto)
|
||||
CONFIG_LTO=n
|
||||
;;
|
||||
--enable-tests)
|
||||
CONFIG_TESTS=y
|
||||
;;
|
||||
--disable-tests)
|
||||
CONFIG_TESTS=n
|
||||
;;
|
||||
--enable-werror)
|
||||
CONFIG_WERROR=y
|
||||
;;
|
||||
@ -233,6 +240,9 @@ fi
|
||||
if [ -n "$CONFIG_LTO" ]; then
|
||||
echo "CONFIG_LTO?=$CONFIG_LTO" >> CONFIG.local
|
||||
fi
|
||||
if [ -n "$CONFIG_TESTS" ]; then
|
||||
echo "CONFIG_TESTS?=$CONFIG_TESTS" >> CONFIG.local
|
||||
fi
|
||||
if [ -n "$CONFIG_ASAN" ]; then
|
||||
echo "CONFIG_ASAN?=$CONFIG_ASAN" >> CONFIG.local
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user