From a3d929a7125d1adec19cbd8bc7ece56aed4db789 Mon Sep 17 00:00:00 2001 From: Enji Cooper Date: Tue, 9 May 2017 04:59:05 +0000 Subject: [PATCH] Only compile tests/ if MK_TESTS != no or ALL_MODULES is defined MFC after: 3 weeks Sponsored by: Dell EMC Isilon --- sys/modules/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/modules/Makefile b/sys/modules/Makefile index 73c35f6bac80..ce843a51adaa 100644 --- a/sys/modules/Makefile +++ b/sys/modules/Makefile @@ -356,8 +356,6 @@ SUBDIR= \ sysvipc \ tcp \ ${_ti} \ - tests/framework \ - tests/callout_test \ tl \ tmpfs \ ${_toecore} \ @@ -516,6 +514,10 @@ _rtwnfw= rtwnfw _cxgbe= cxgbe .endif +.if ${MK_TESTS} != "no" || defined(ALL_MODULES) +SUBDIR+= tests +.endif + .if ${MK_ZFS} != "no" || defined(ALL_MODULES) SUBDIR+= zfs .endif