check for DPX/test directory when building tests. Directory is excluded from releases

This commit is contained in:
Scott Fennell 2019-11-20 14:50:10 -06:00
parent 66c5852566
commit 64385229a0

View File

@ -123,11 +123,13 @@ SWIG_OBJS = $(addsuffix /object_$(TRICK_HOST_CPU)/*.o ,$(SWIG_DIRS))
UNIT_TEST_DIRS := \
$(wildcard ${TRICK_HOME}/trick_source/sim_services/*/test) \
$(wildcard ${TRICK_HOME}/trick_source/trick_utils/*/test) \
${TRICK_HOME}/trick_source/data_products/DPX/test/unit_test
ifeq ($(USE_ER7_UTILS), 0)
UNIT_TEST_DIRS := $(filter-out %Integrator/test,$(UNIT_TEST_DIRS))
endif
# DPX test excluded from releases because of size
DPX_UNIT_TEST_DIR = ${TRICK_HOME}/trick_source/data_products/DPX/test/unit_test
# The name of the ICG executable indicates the operating system, and the machine
# hardware on which it is built. This allows pre-build ICG binaries to be
# distributed in the installation package. The reason for distributing pre-built
@ -278,7 +280,13 @@ test: unit_test sim_test
$(UNIT_TEST_DIRS):
@ $(MAKE) -C $@ test
unit_test: $(UNIT_TEST_DIRS)
unit_test: $(UNIT_TEST_DIRS) $(DPX_UNIT_TEST_DIR)
# DPX test excluded from releases because of size
.PHONY: $(DPX_UNIT_TEST_DIR)
$(DPX_UNIT_TEST_DIR):
@ if [ -d ${DPX_UNIT_TEST_DIR} ]; then $(MAKE) -C $@ test; fi
sim_test:
@ $(MAKE) -C test