equal
deleted
inserted
replaced
265 '-e "s|$(SOURCE_DIR)|\\$$(SOURCE_DIR)|g" ' |
265 '-e "s|$(SOURCE_DIR)|\\$$(SOURCE_DIR)|g" ' |
266 |
266 |
267 # set the default commands used to generate the file containing the set |
267 # set the default commands used to generate the file containing the set |
268 # of transforms to be applied to the test results to try to normalize them. |
268 # of transforms to be applied to the test results to try to normalize them. |
269 COMPONENT_TEST_CREATE_TRANSFORMS = \ |
269 COMPONENT_TEST_CREATE_TRANSFORMS = \ |
270 if [ -e $(COMPONENT_TEST_MASTER) ]; \ |
270 @if [ -e $(COMPONENT_TEST_MASTER) ]; \ |
271 then \ |
271 then \ |
272 print "\#!/bin/sh" > $(COMPONENT_TEST_TRANSFORM_CMD); \ |
272 print "\#!/bin/sh" > $(COMPONENT_TEST_TRANSFORM_CMD); \ |
273 print '$(COMPONENT_TEST_TRANSFORMER) ' \ |
273 print '$(COMPONENT_TEST_TRANSFORMER) ' \ |
274 $(COMPONENT_TEST_TRANSFORMS) \ |
274 $(COMPONENT_TEST_TRANSFORMS) \ |
275 ' \\' >> $(COMPONENT_TEST_TRANSFORM_CMD); \ |
275 ' \\' >> $(COMPONENT_TEST_TRANSFORM_CMD); \ |
285 # set the default command for performing any test result munging |
285 # set the default command for performing any test result munging |
286 COMPONENT_TEST_TRANSFORM_CMD = $(COMPONENT_TEST_BUILD_DIR)/transform-$(BITS)-results |
286 COMPONENT_TEST_TRANSFORM_CMD = $(COMPONENT_TEST_BUILD_DIR)/transform-$(BITS)-results |
287 |
287 |
288 # set the default operation to run to perform test result normalization |
288 # set the default operation to run to perform test result normalization |
289 COMPONENT_TEST_PERFORM_TRANSFORM = \ |
289 COMPONENT_TEST_PERFORM_TRANSFORM = \ |
290 if [ -e $(COMPONENT_TEST_MASTER) ]; \ |
290 @if [ -e $(COMPONENT_TEST_MASTER) ]; \ |
291 then \ |
291 then \ |
292 $(SHELL) $(COMPONENT_TEST_TRANSFORM_CMD); \ |
292 $(SHELL) $(COMPONENT_TEST_TRANSFORM_CMD); \ |
293 else \ |
293 else \ |
294 print 'Cannot find $(COMPONENT_TEST_MASTER)'; \ |
294 print 'Cannot find $(COMPONENT_TEST_MASTER)'; \ |
295 exit 2; \ |
295 exit 2; \ |
298 # set the default command used to compare the master results with the snapshot |
298 # set the default command used to compare the master results with the snapshot |
299 COMPONENT_TEST_COMPARE_CMD = $(GDIFF) -uN |
299 COMPONENT_TEST_COMPARE_CMD = $(GDIFF) -uN |
300 |
300 |
301 # set the default way that master and snapshot test results are compared |
301 # set the default way that master and snapshot test results are compared |
302 COMPONENT_TEST_COMPARE = \ |
302 COMPONENT_TEST_COMPARE = \ |
303 if [ -e $(COMPONENT_TEST_MASTER) ]; \ |
303 @if [ -e $(COMPONENT_TEST_MASTER) ]; \ |
304 then \ |
304 then \ |
305 $(COMPONENT_TEST_COMPARE_CMD) \ |
305 $(COMPONENT_TEST_COMPARE_CMD) \ |
306 $(COMPONENT_TEST_MASTER) $(COMPONENT_TEST_SNAPSHOT) \ |
306 $(COMPONENT_TEST_MASTER) $(COMPONENT_TEST_SNAPSHOT) \ |
307 > $(COMPONENT_TEST_DIFFS); \ |
307 > $(COMPONENT_TEST_DIFFS); \ |
308 print "Test results in $(COMPONENT_TEST_OUTPUT)"; \ |
308 print "Test results in $(COMPONENT_TEST_OUTPUT)"; \ |