Commit 61469cf4 authored by Mike Playle's avatar Mike Playle Committed by Jim Harris
Browse files

Don't build lib/cunit if tests are disabled



This makes it possible to build SPDK on a machine which doesn't have
CUnit installed.

Change-Id: Icb4c01092d1432fcff4bdbbfa01489d1ddfcdd8b
Signed-off-by: default avatarMike Playle <mplayle@solarflare.com>
Reviewed-on: https://review.gerrithub.io/417663


Reviewed-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
parent 97154b1f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -34,9 +34,10 @@
SPDK_ROOT_DIR := $(abspath $(CURDIR)/..)
include $(SPDK_ROOT_DIR)/mk/spdk.common.mk

DIRS-y += bdev blob blobfs conf copy cunit event json jsonrpc \
DIRS-y += bdev blob blobfs conf copy event json jsonrpc \
          log lvol net rpc sock thread trace util nvme nvmf scsi ioat \
	  ut_mock iscsi
DIRS-$(CONFIG_TESTS) += cunit
ifeq ($(OS),Linux)
DIRS-y += nbd
DIRS-$(CONFIG_VHOST) += vhost