Add COMPONENT_TEST_DIR variable (Merge from upstream).
| | |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. |
| | | # Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | # |
| | | # Rules and Macros for building opens source software that uses AT&T's package |
| | |
| | | # test the built source |
| | | $(BUILD_DIR)/%/.tested: $(BUILD_DIR)/%/.built |
| | | $(COMPONENT_PRE_TEST_ACTION) |
| | | cd $(@D); $(ENV) $(COMPONENT_TEST_ENV) \ |
| | | cd $(COMPONENT_TEST_DIR); $(ENV) $(COMPONENT_TEST_ENV) \ |
| | | bin/package test $(COMPONENT_TEST_TARGETS) \ |
| | | $(COMPONENT_TEST_ARGS) |
| | | $(COMPONENT_POST_TEST_ACTION) |
| | |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved. |
| | | # Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved. |
| | | # Copyright 2011 EveryCity Ltd. All rights reserved. |
| | | # |
| | | |
| | |
| | | # test the built source |
| | | $(BUILD_DIR)/%/.tested: $(BUILD_DIR)/%/.built |
| | | $(COMPONENT_PRE_TEST_ACTION) |
| | | (cd $(@D) ; $(ENV) $(COMPONENT_TEST_ENV) $(GMAKE) \ |
| | | (cd $(COMPONENT_TEST_DIR) ; $(ENV) $(COMPONENT_TEST_ENV) $(GMAKE) \ |
| | | $(COMPONENT_TEST_ARGS) $(COMPONENT_TEST_TARGETS)) |
| | | $(COMPONENT_POST_TEST_ACTION) |
| | | $(TOUCH) $@ |
| | |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
| | | # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | # |
| | | # Rules and Macros for building opens source software that just uses their |
| | |
| | | # test the built source |
| | | $(BUILD_DIR)/%/.tested: $(BUILD_DIR)/%/.built |
| | | $(COMPONENT_PRE_TEST_ACTION) |
| | | (cd $(@D) ; $(ENV) $(COMPONENT_TEST_ENV) $(GMAKE) \ |
| | | (cd $(COMPONENT_TEST_DIR) ; $(ENV) $(COMPONENT_TEST_ENV) $(GMAKE) \ |
| | | $(COMPONENT_TEST_ARGS) $(COMPONENT_TEST_TARGETS)) |
| | | $(COMPONENT_POST_TEST_ACTION) |
| | | $(TOUCH) $@ |
| | |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. |
| | | # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | # Perl 5.12 and older are 32-bit only. |
| | |
| | | COMPONENT_TEST_ENV += $(COMMON_PERL_ENV) |
| | | $(BUILD_DIR)/%/.tested: $(BUILD_DIR)/%/.built |
| | | $(COMPONENT_PRE_TEST_ACTION) |
| | | (cd $(@D) ; $(ENV) $(COMPONENT_TEST_ENV) $(GMAKE) \ |
| | | (cd $(COMPONENT_TEST_DIR) ; $(ENV) $(COMPONENT_TEST_ENV) $(GMAKE) \ |
| | | $(COMPONENT_TEST_ARGS) $(COMPONENT_TEST_TARGETS)) |
| | | $(COMPONENT_POST_TEST_ACTION) |
| | | ifeq ($(strip $(PARFAIT_BUILD)),yes) |
| | |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. |
| | | # Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | PATH=/usr/bin:/usr/gnu/bin |
| | |
| | | # set the default target for test of the component |
| | | COMPONENT_TEST_TARGETS = check |
| | | |
| | | # set the default directory for test of the component |
| | | COMPONENT_TEST_DIR = $(@D) |
| | | |
| | | # BUILD_TOOLS is the root of all tools not normally installed on the system. |
| | | BUILD_TOOLS ?= /opt |
| | | |