Alexander Pyhalov
2014-08-05 702558a189b1f7befcb42bcc6ccdc4f14d4bdb36
Add COMPONENT_TEST_DIR variable (Merge from upstream).
5 files modified
21 ■■■■■ changed files
make-rules/attpackagemake.mk 4 ●●●● patch | view | raw | blame | history
make-rules/configure.mk 4 ●●●● patch | view | raw | blame | history
make-rules/justmake.mk 4 ●●●● patch | view | raw | blame | history
make-rules/makemaker.mk 4 ●●●● patch | view | raw | blame | history
make-rules/shared-macros.mk 5 ●●●● patch | view | raw | blame | history
make-rules/attpackagemake.mk
@@ -18,7 +18,7 @@
#
# 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
@@ -88,7 +88,7 @@
# 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)
make-rules/configure.mk
@@ -18,7 +18,7 @@
#
# 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.
#
@@ -157,7 +157,7 @@
# 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) $@
make-rules/justmake.mk
@@ -18,7 +18,7 @@
#
# 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
@@ -72,7 +72,7 @@
# 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) $@
make-rules/makemaker.mk
@@ -18,7 +18,7 @@
#
# 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.
@@ -91,7 +91,7 @@
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)
make-rules/shared-macros.mk
@@ -18,7 +18,7 @@
#
# 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
@@ -233,6 +233,9 @@
# 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