make-rules/shared-macros.mk
changeset 3864 77a09e73626b
parent 3817 30b42c38bbc4
child 3936 c344422ee38b
equal deleted inserted replaced
3859:c3d5649bad5c 3864:77a09e73626b
   226 $(BUILD_DIR_64)/.installed:       BITS=64
   226 $(BUILD_DIR_64)/.installed:       BITS=64
   227 
   227 
   228 # set the default target for installation of the component
   228 # set the default target for installation of the component
   229 COMPONENT_INSTALL_TARGETS =	install
   229 COMPONENT_INSTALL_TARGETS =	install
   230 
   230 
   231 # set the default test results directory
   231 # set the default build test results directory
       
   232 COMPONENT_TEST_BUILD_DIR =	$(BUILD_DIR)/test/$(MACH$(BITS))
       
   233 
       
   234 # set the default master test results directory
   232 COMPONENT_TEST_RESULTS_DIR =	$(COMPONENT_DIR)/test
   235 COMPONENT_TEST_RESULTS_DIR =	$(COMPONENT_DIR)/test
   233 
   236 
   234 # set the default master test results file
   237 # set the default master test results file
   235 COMPONENT_TEST_MASTER =		$(COMPONENT_TEST_RESULTS_DIR)/results-$(BITS).master
   238 COMPONENT_TEST_MASTER =		$(COMPONENT_TEST_RESULTS_DIR)/results-$(BITS).master
   236 
   239 
   237 # set the default test results output file
   240 # set the default test results output file
   238 COMPONENT_TEST_OUTPUT =		$(COMPONENT_TEST_RESULTS_DIR)/test-$(BITS)-results
   241 COMPONENT_TEST_OUTPUT =		$(COMPONENT_TEST_BUILD_DIR)/test-$(BITS)-results
   239 
   242 
   240 # set the default test results comparison diffs file
   243 # set the default test results comparison diffs file
   241 COMPONENT_TEST_DIFFS =		$(COMPONENT_TEST_RESULTS_DIR)/test-$(BITS)-diffs
   244 COMPONENT_TEST_DIFFS =		$(COMPONENT_TEST_BUILD_DIR)/test-$(BITS)-diffs
   242 
   245 
   243 # set the default test snapshot file
   246 # set the default test snapshot file
   244 COMPONENT_TEST_SNAPSHOT =	$(COMPONENT_TEST_RESULTS_DIR)/results-$(BITS).snapshot
   247 COMPONENT_TEST_SNAPSHOT =	$(COMPONENT_TEST_BUILD_DIR)/results-$(BITS).snapshot
   245 
   248 
   246 # Normally $(GSED) is simplest, but some results files need more power.
   249 # Normally $(GSED) is simplest, but some results files need more power.
   247 COMPONENT_TEST_TRANSFORMER =	$(GSED)
   250 COMPONENT_TEST_TRANSFORMER =	$(GSED)
   248 
   251 
   249 # The set of default transforms to be applied to the test results to try
   252 # The set of default transforms to be applied to the test results to try
   270 		print 'Cannot find $(COMPONENT_TEST_MASTER)'; \
   273 		print 'Cannot find $(COMPONENT_TEST_MASTER)'; \
   271 		exit 2; \
   274 		exit 2; \
   272 	fi
   275 	fi
   273 
   276 
   274 # set the default command for performing any test result munging
   277 # set the default command for performing any test result munging
   275 COMPONENT_TEST_TRANSFORM_CMD =	$(COMPONENT_TEST_RESULTS_DIR)/transform-$(BITS)-results
   278 COMPONENT_TEST_TRANSFORM_CMD =	$(COMPONENT_TEST_BUILD_DIR)/transform-$(BITS)-results
   276 
   279 
   277 # set the default operation to run to perform test result normalization
   280 # set the default operation to run to perform test result normalization
   278 COMPONENT_TEST_PERFORM_TRANSFORM = \
   281 COMPONENT_TEST_PERFORM_TRANSFORM = \
   279 	if [ -e $(COMPONENT_TEST_MASTER) ]; \
   282 	if [ -e $(COMPONENT_TEST_MASTER) ]; \
   280 	then \
   283 	then \