]> git.saurik.com Git - apple/xnu.git/blobdiff - tools/tests/Makefile
xnu-7195.101.1.tar.gz
[apple/xnu.git] / tools / tests / Makefile
index 0cc99e0dcd1fad94c8c5a899b78a7b2eadb0477d..a385e3dbb90bb1edd41d29ffd2f83384a6d06849 100644 (file)
@@ -21,18 +21,21 @@ DSTSUBPATH = $(DSTROOT)
 BATS_CONFIG_PATH = $(DSTROOT)
 endif
 
+DSTSUBPATH_KEXTS = $(DSTROOT)/System/AppleInternal/Library/AuxiliaryExtensions
+
 COMMON_TARGETS = unit_tests \
                MPMMTest                \
                packetdrill             \
                affinity                \
-               execperf                \
                superpages              \
                zero-to-n               \
                jitter                  \
                perf_index              \
-               darwintests             \
+               personas                \
                unixconf                \
-               testkext/pgokext.kext
+               kernpost_test_report \
+
+KEXT_TARGETS = pgokext.kext
 
 IPHONE_TARGETS =
 
@@ -41,9 +44,9 @@ MAC_TARGETS =
 BATS_TARGET = $(BATS_CONFIG_PATH)/BATS
 
 ifeq "$(Embedded)" "YES"
-TARGETS =      $(addprefix $(DSTSUBPATH)/, $(COMMON_TARGETS) $(IPHONE_TARGETS))
+TARGETS =      $(addprefix $(DSTSUBPATH)/, $(COMMON_TARGETS) $(IPHONE_TARGETS)) $(addprefix $(DSTSUBPATH_KEXTS)/, $(KEXT_TARGETS))
 else
-TARGETS =      $(addprefix $(DSTSUBPATH)/, $(COMMON_TARGETS) $(MAC_TARGETS))
+TARGETS =      $(addprefix $(DSTSUBPATH)/, $(COMMON_TARGETS) $(MAC_TARGETS)) $(addprefix $(DSTSUBPATH_KEXTS)/, $(KEXT_TARGETS))
 endif
 
 all:   $(BATS_TARGET) $(TARGETS)
@@ -55,8 +58,8 @@ always:
 # NOTE: RC_ARCHES nonsense is here because code signing will fail on kexts if we include a i386 slice
 # <rdar://problem/29878263> CoreOSLobo: xnu_tests-4026 fails to codesign
 
-$(DSTSUBPATH)/testkext/pgokext.kext: always
-       xcodebuild -configuration Debug -project $(SRCROOT)/testkext/testkext.xcodeproj -target pgokext DSTROOT=$(DSTSUBPATH)/testkext SYMROOT=$(SYMROOT)/testkext SRCROOT=$(SRCROOT)/testkext OBJROOT=$(OBJROOT)/testkext SDKROOT=$(SDKROOT) RC_ARCHS="$(subst i386,,$(RC_ARCHS))" install
+$(DSTSUBPATH_KEXTS)/pgokext.kext: always
+       xcodebuild -configuration Debug -project $(SRCROOT)/testkext/testkext.xcodeproj -target pgokext DSTROOT=$(DSTSUBPATH_KEXTS) SYMROOT=$(SYMROOT)/testkext SRCROOT=$(SRCROOT)/testkext OBJROOT=$(OBJROOT)/testkext SDKROOT=$(SDKROOT) RC_ARCHS="$(subst i386,,$(RC_ARCHS))" install
 
 $(DSTSUBPATH)/%: always
        $(_v)echo Building $@