make-rules/attpackagemake.mk
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Tue, 11 Oct 2016 16:58:27 -0700
changeset 7091 08a4029cbd6c
parent 5682 94c0ca64c022
permissions -rw-r--r--
Close of build 110.1.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
789
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
     1
#
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
     3
#
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
     7
#
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    12
#
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    18
#
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    20
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5129
diff changeset
    21
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5129
diff changeset
    22
#
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3558
diff changeset
    23
# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
789
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    24
#
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    25
#
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    26
# Rules and Macros for building opens source software that uses AT&T's package
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    27
# tool.
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    28
#
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3558
diff changeset
    29
# To use these rules, include $(WS_MAKE_RULES)/attpackagemake.mk in your Makefile
789
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    30
# and define "build", "install" targets appropriate to building your component.
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    31
# Ex:
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    32
#
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    33
# 	build:		$(BUILD_32) \
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    34
#	 		$(BUILD_64)
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    35
# 
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    36
#	install:	$(INSTALL_32) \
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    37
#	 		$(INSTALL_64)
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    38
#
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    39
# Any additional pre/post configure, build, or install actions can be specified
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    40
# in your Makefile by setting them in on of the following macros:
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    41
#	COMPONENT_PRE_BUILD_ACTION, COMPONENT_POST_BUILD_ACTION
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    42
#	COMPONENT_PRE_INSTALL_ACTION, COMPONENT_POST_INSTALL_ACTION
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    43
#
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    44
# If component specific make targets need to be used for build or install, they
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    45
# can be specified in
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    46
#	COMPONENT_BUILD_TARGETS, COMPONENT_INSTALL_TARGETS
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    47
#
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    48
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    49
# Environment variables and arguments passed into the build and install
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    50
# environment(s).  These are the initial settings.
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    51
COMPONENT_BUILD_ENV += \
844
55358dcf0cb2 7169644 math functions in ksh93 behave differently from b15
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 789
diff changeset
    52
    CC_EXPLICIT="$(CC)" \
55358dcf0cb2 7169644 math functions in ksh93 behave differently from b15
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 789
diff changeset
    53
	PATH=$(shell dirname $(CC)):$(PATH) \
55358dcf0cb2 7169644 math functions in ksh93 behave differently from b15
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 789
diff changeset
    54
	CC=$(shell basename $(CC)) 
55358dcf0cb2 7169644 math functions in ksh93 behave differently from b15
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 789
diff changeset
    55
	NPROC="$(NPROC)" 
789
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    56
844
55358dcf0cb2 7169644 math functions in ksh93 behave differently from b15
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 789
diff changeset
    57
# This explicitly exports the build type for 32/64 bit distinction 
55358dcf0cb2 7169644 math functions in ksh93 behave differently from b15
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 789
diff changeset
    58
COMPONENT_BUILD_ARGS = \
55358dcf0cb2 7169644 math functions in ksh93 behave differently from b15
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 789
diff changeset
    59
						HOSTTYPE="$(HOSTTYPE$(BITS))" \
55358dcf0cb2 7169644 math functions in ksh93 behave differently from b15
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 789
diff changeset
    60
						CCFLAGS="$(CFLAGS)" \
55358dcf0cb2 7169644 math functions in ksh93 behave differently from b15
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 789
diff changeset
    61
						LDFLAGS="$(CXXFLAGS)" 
55358dcf0cb2 7169644 math functions in ksh93 behave differently from b15
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 789
diff changeset
    62
55358dcf0cb2 7169644 math functions in ksh93 behave differently from b15
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 789
diff changeset
    63
# The install and test process needs the same environment as the build
55358dcf0cb2 7169644 math functions in ksh93 behave differently from b15
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 789
diff changeset
    64
COMPONENT_INSTALL_ENV = $(COMPONENT_BUILD_ENV)
4091
fca9099ab398 20808505 gmake system-test
John Beck <John.Beck@Oracle.COM>
parents: 3864
diff changeset
    65
COMPONENT_INSTALL_ARGS = HOSTTYPE="$(HOSTTYPE$(BITS))"
844
55358dcf0cb2 7169644 math functions in ksh93 behave differently from b15
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 789
diff changeset
    66
COMPONENT_TEST_ENV = $(COMPONENT_BUILD_ENV)
5129
5431772f7235 PSARC/2014/162 ksh93 update to 2012-08-01
Lijo George<lijo.x.george@oracle.com>
parents: 4393
diff changeset
    67
COMPONENT_TEST_ARGS = $(COMPONENT_BUILD_ARGS)
4091
fca9099ab398 20808505 gmake system-test
John Beck <John.Beck@Oracle.COM>
parents: 3864
diff changeset
    68
COMPONENT_SYSTEM_TEST_ENV = $(COMPONENT_BUILD_ENV)
5129
5431772f7235 PSARC/2014/162 ksh93 update to 2012-08-01
Lijo George<lijo.x.george@oracle.com>
parents: 4393
diff changeset
    69
COMPONENT_SYSTEM_TEST_ARGS = $(COMPONENT_BUILD_ARGS) 
789
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    70
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    71
# build the configured source
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    72
$(BUILD_DIR)/%/.built:	$(SOURCE_DIR)/.prep
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    73
	$(RM) -r $(@D) ; $(MKDIR) $(@D)
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    74
	$(CLONEY) $(SOURCE_DIR) $(@D)
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    75
	$(COMPONENT_PRE_BUILD_ACTION)
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    76
	cd $(@D); $(ENV) $(COMPONENT_BUILD_ENV) \
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    77
   		bin/package make $(COMPONENT_BUILD_TARGETS) $(COMPONENT_BUILD_ARGS)
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    78
	$(COMPONENT_POST_BUILD_ACTION)
1352
1358a1e1ff4c 16921386 move to parfait 1.2.0.1
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 844
diff changeset
    79
ifeq   ($(strip $(PARFAIT_BUILD)),yes)
1358a1e1ff4c 16921386 move to parfait 1.2.0.1
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 844
diff changeset
    80
	-$(PARFAIT) $(@D)
1358a1e1ff4c 16921386 move to parfait 1.2.0.1
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 844
diff changeset
    81
endif
789
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    82
	$(TOUCH) [email protected]
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    83
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    84
# install the built source into a prototype area
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    85
$(BUILD_DIR)/%/.installed:	$(BUILD_DIR)/%/.built
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    86
	$(COMPONENT_PRE_INSTALL_ACTION)
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    87
	$(RM) -r $(PROTO_DIR)/$(MACH$(BITS)); $(MKDIR) $(PROTO_DIR)/$(MACH$(BITS));
844
55358dcf0cb2 7169644 math functions in ksh93 behave differently from b15
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 789
diff changeset
    88
	cd $(@D); $(ENV) $(COMPONENT_INSTALL_ENV) \
789
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    89
		bin/package flat $(COMPONENT_INSTALL_TARGETS) \
844
55358dcf0cb2 7169644 math functions in ksh93 behave differently from b15
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 789
diff changeset
    90
		$(COMPONENT_INSTALL_ARGS) \
789
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    91
		$(PROTO_DIR)/$(MACH$(BITS)) $(COMPONENT_INSTALL_PACKAGES) 
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    92
	$(COMPONENT_POST_INSTALL_ACTION)
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    93
	$(TOUCH) [email protected]
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    94
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    95
# test the built source
3558
2cec274f17fc 20222479 Need a method to compare test results against a master in Userland
Rich Burridge <rich.burridge@oracle.com>
parents: 2164
diff changeset
    96
$(BUILD_DIR)/%/.tested-and-compared:    $(BUILD_DIR)/%/.built
3864
77a09e73626b 20548962 generated test files should be in the build directory for clobbering time
Rich Burridge <rich.burridge@oracle.com>
parents: 3854
diff changeset
    97
	$(RM) -rf $(COMPONENT_TEST_BUILD_DIR)
77a09e73626b 20548962 generated test files should be in the build directory for clobbering time
Rich Burridge <rich.burridge@oracle.com>
parents: 3854
diff changeset
    98
	$(MKDIR) $(COMPONENT_TEST_BUILD_DIR)
789
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
    99
	$(COMPONENT_PRE_TEST_ACTION)
3558
2cec274f17fc 20222479 Need a method to compare test results against a master in Userland
Rich Burridge <rich.burridge@oracle.com>
parents: 2164
diff changeset
   100
	-(cd $(COMPONENT_TEST_DIR) ; \
2cec274f17fc 20222479 Need a method to compare test results against a master in Userland
Rich Burridge <rich.burridge@oracle.com>
parents: 2164
diff changeset
   101
		$(COMPONENT_TEST_ENV_CMD) $(COMPONENT_TEST_ENV) \
2cec274f17fc 20222479 Need a method to compare test results against a master in Userland
Rich Burridge <rich.burridge@oracle.com>
parents: 2164
diff changeset
   102
		bin/package test $(COMPONENT_TEST_TARGETS) \
5129
5431772f7235 PSARC/2014/162 ksh93 update to 2012-08-01
Lijo George<lijo.x.george@oracle.com>
parents: 4393
diff changeset
   103
		$(COMPONENT_TEST_ARGS)) \
3558
2cec274f17fc 20222479 Need a method to compare test results against a master in Userland
Rich Burridge <rich.burridge@oracle.com>
parents: 2164
diff changeset
   104
		&> $(COMPONENT_TEST_OUTPUT)
2cec274f17fc 20222479 Need a method to compare test results against a master in Userland
Rich Burridge <rich.burridge@oracle.com>
parents: 2164
diff changeset
   105
	$(COMPONENT_POST_TEST_ACTION)
2cec274f17fc 20222479 Need a method to compare test results against a master in Userland
Rich Burridge <rich.burridge@oracle.com>
parents: 2164
diff changeset
   106
	$(COMPONENT_TEST_CREATE_TRANSFORMS)
2cec274f17fc 20222479 Need a method to compare test results against a master in Userland
Rich Burridge <rich.burridge@oracle.com>
parents: 2164
diff changeset
   107
	$(COMPONENT_TEST_PERFORM_TRANSFORM)
2cec274f17fc 20222479 Need a method to compare test results against a master in Userland
Rich Burridge <rich.burridge@oracle.com>
parents: 2164
diff changeset
   108
	$(COMPONENT_TEST_COMPARE)
2cec274f17fc 20222479 Need a method to compare test results against a master in Userland
Rich Burridge <rich.burridge@oracle.com>
parents: 2164
diff changeset
   109
	$(COMPONENT_TEST_CLEANUP)
2cec274f17fc 20222479 Need a method to compare test results against a master in Userland
Rich Burridge <rich.burridge@oracle.com>
parents: 2164
diff changeset
   110
	$(TOUCH) [email protected]
2cec274f17fc 20222479 Need a method to compare test results against a master in Userland
Rich Burridge <rich.burridge@oracle.com>
parents: 2164
diff changeset
   111
2cec274f17fc 20222479 Need a method to compare test results against a master in Userland
Rich Burridge <rich.burridge@oracle.com>
parents: 2164
diff changeset
   112
$(BUILD_DIR)/%/.tested:    $(BUILD_DIR)/%/.built
2cec274f17fc 20222479 Need a method to compare test results against a master in Userland
Rich Burridge <rich.burridge@oracle.com>
parents: 2164
diff changeset
   113
	$(COMPONENT_PRE_TEST_ACTION)
3854
9d8d138d52ca 20587726 Various master test files can be improved.
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
   114
	cd $(COMPONENT_TEST_DIR) ; \
3558
2cec274f17fc 20222479 Need a method to compare test results against a master in Userland
Rich Burridge <rich.burridge@oracle.com>
parents: 2164
diff changeset
   115
		$(COMPONENT_TEST_ENV_CMD) $(COMPONENT_TEST_ENV) \
844
55358dcf0cb2 7169644 math functions in ksh93 behave differently from b15
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 789
diff changeset
   116
		bin/package test $(COMPONENT_TEST_TARGETS) \
55358dcf0cb2 7169644 math functions in ksh93 behave differently from b15
Edwin Beasant <Edwin.Beasant@oracle.com>
parents: 789
diff changeset
   117
		$(COMPONENT_TEST_ARGS)
789
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
   118
	$(COMPONENT_POST_TEST_ACTION)
3558
2cec274f17fc 20222479 Need a method to compare test results against a master in Userland
Rich Burridge <rich.burridge@oracle.com>
parents: 2164
diff changeset
   119
	$(COMPONENT_TEST_CLEANUP)
789
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
   120
	$(TOUCH) [email protected]
5f074ca23733 7106955 move ksh93 from ON to userland
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff changeset
   121
4393
963a977eeb62 21179642 pigz should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents: 4305
diff changeset
   122
# Test the installed packages.  The targets above depend on .built which
963a977eeb62 21179642 pigz should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents: 4305
diff changeset
   123
# means $(CLONEY) has already run.  System-test needs cloning but not
963a977eeb62 21179642 pigz should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents: 4305
diff changeset
   124
# building; thus ideally, we would want to depend on .cloned here and below,
963a977eeb62 21179642 pigz should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents: 4305
diff changeset
   125
# but since we don't have that, we depend on .prep and run $(CLONEY) here.
4091
fca9099ab398 20808505 gmake system-test
John Beck <John.Beck@Oracle.COM>
parents: 3864
diff changeset
   126
$(BUILD_DIR)/%/.system-tested-and-compared:    $(SOURCE_DIR)/.prep
fca9099ab398 20808505 gmake system-test
John Beck <John.Beck@Oracle.COM>
parents: 3864
diff changeset
   127
	$(RM) -rf $(COMPONENT_TEST_BUILD_DIR)
fca9099ab398 20808505 gmake system-test
John Beck <John.Beck@Oracle.COM>
parents: 3864
diff changeset
   128
	$(MKDIR) $(COMPONENT_TEST_BUILD_DIR)
4393
963a977eeb62 21179642 pigz should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents: 4305
diff changeset
   129
	$(CLONEY) $(SOURCE_DIR) $(@D)
4091
fca9099ab398 20808505 gmake system-test
John Beck <John.Beck@Oracle.COM>
parents: 3864
diff changeset
   130
	$(COMPONENT_PRE_SYSTEM_TEST_ACTION)
fca9099ab398 20808505 gmake system-test
John Beck <John.Beck@Oracle.COM>
parents: 3864
diff changeset
   131
	-(cd $(COMPONENT_SYSTEM_TEST_DIR) ; \
fca9099ab398 20808505 gmake system-test
John Beck <John.Beck@Oracle.COM>
parents: 3864
diff changeset
   132
		$(COMPONENT_SYSTEM_TEST_ENV_CMD) $(COMPONENT_SYSTEM_TEST_ENV) \
fca9099ab398 20808505 gmake system-test
John Beck <John.Beck@Oracle.COM>
parents: 3864
diff changeset
   133
		bin/package test $(COMPONENT_SYSTEM_TEST_TARGETS) \
5129
5431772f7235 PSARC/2014/162 ksh93 update to 2012-08-01
Lijo George<lijo.x.george@oracle.com>
parents: 4393
diff changeset
   134
		$(COMPONENT_SYSTEM_TEST_ARGS)) \
4091
fca9099ab398 20808505 gmake system-test
John Beck <John.Beck@Oracle.COM>
parents: 3864
diff changeset
   135
		&> $(COMPONENT_TEST_OUTPUT)
fca9099ab398 20808505 gmake system-test
John Beck <John.Beck@Oracle.COM>
parents: 3864
diff changeset
   136
	$(COMPONENT_POST_SYSTEM_TEST_ACTION)
fca9099ab398 20808505 gmake system-test
John Beck <John.Beck@Oracle.COM>
parents: 3864
diff changeset
   137
	$(COMPONENT_TEST_CREATE_TRANSFORMS)
fca9099ab398 20808505 gmake system-test
John Beck <John.Beck@Oracle.COM>
parents: 3864
diff changeset
   138
	$(COMPONENT_TEST_PERFORM_TRANSFORM)
fca9099ab398 20808505 gmake system-test
John Beck <John.Beck@Oracle.COM>
parents: 3864
diff changeset
   139
	$(COMPONENT_TEST_COMPARE)
fca9099ab398 20808505 gmake system-test
John Beck <John.Beck@Oracle.COM>
parents: 3864
diff changeset
   140
	$(COMPONENT_SYSTEM_TEST_CLEANUP)
fca9099ab398 20808505 gmake system-test
John Beck <John.Beck@Oracle.COM>
parents: 3864
diff changeset
   141
	$(TOUCH) [email protected]
fca9099ab398 20808505 gmake system-test
John Beck <John.Beck@Oracle.COM>
parents: 3864
diff changeset
   142
fca9099ab398 20808505 gmake system-test
John Beck <John.Beck@Oracle.COM>
parents: 3864
diff changeset
   143
$(BUILD_DIR)/%/.system-tested:    $(SOURCE_DIR)/.prep
4393
963a977eeb62 21179642 pigz should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents: 4305
diff changeset
   144
	$(CLONEY) $(SOURCE_DIR) $(@D)
4091
fca9099ab398 20808505 gmake system-test
John Beck <John.Beck@Oracle.COM>
parents: 3864
diff changeset
   145
	$(COMPONENT_PRE_SYSTEM_TEST_ACTION)
fca9099ab398 20808505 gmake system-test
John Beck <John.Beck@Oracle.COM>
parents: 3864
diff changeset
   146
	cd $(COMPONENT_SYSTEM_TEST_DIR) ; \
fca9099ab398 20808505 gmake system-test
John Beck <John.Beck@Oracle.COM>
parents: 3864
diff changeset
   147
		$(COMPONENT_SYSTEM_TEST_ENV_CMD) $(COMPONENT_SYSTEM_TEST_ENV) \
fca9099ab398 20808505 gmake system-test
John Beck <John.Beck@Oracle.COM>
parents: 3864
diff changeset
   148
		bin/package test $(COMPONENT_SYSTEM_TEST_TARGETS) \
fca9099ab398 20808505 gmake system-test
John Beck <John.Beck@Oracle.COM>
parents: 3864
diff changeset
   149
		$(COMPONENT_SYSTEM_TEST_ARGS)
fca9099ab398 20808505 gmake system-test
John Beck <John.Beck@Oracle.COM>
parents: 3864
diff changeset
   150
	$(COMPONENT_POST_SYSTEM_TEST_ACTION)
fca9099ab398 20808505 gmake system-test
John Beck <John.Beck@Oracle.COM>
parents: 3864
diff changeset
   151
	$(COMPONENT_SYSTEM_TEST_CLEANUP)
fca9099ab398 20808505 gmake system-test
John Beck <John.Beck@Oracle.COM>
parents: 3864
diff changeset
   152
	$(TOUCH) [email protected]
fca9099ab398 20808505 gmake system-test
John Beck <John.Beck@Oracle.COM>
parents: 3864
diff changeset
   153
1352
1358a1e1ff4c 16921386 move to parfait 1.2.0.1
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 844
diff changeset
   154
ifeq   ($(strip $(PARFAIT_BUILD)),yes)
1358a1e1ff4c 16921386 move to parfait 1.2.0.1
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 844
diff changeset
   155
parfait: build
1358a1e1ff4c 16921386 move to parfait 1.2.0.1
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 844
diff changeset
   156
else
1358a1e1ff4c 16921386 move to parfait 1.2.0.1
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 844
diff changeset
   157
parfait:
1358a1e1ff4c 16921386 move to parfait 1.2.0.1
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 844
diff changeset
   158
	$(MAKE) PARFAIT_BUILD=yes parfait
1358a1e1ff4c 16921386 move to parfait 1.2.0.1
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 844
diff changeset
   159
endif