make-rules/gem.mk
author Shawn Ferry <shawn.ferry@oracle.com>
Wed, 10 Feb 2016 22:10:43 -0500
changeset 5438 c068f8c677e8
parent 5328 34fe0d5ec7b7
child 5473 b43979b0c196
permissions -rw-r--r--
PSARC/2016/016 Rename/Refactor Puppet and Puppet Module Packages 21041932 puppet, facter, and hiera need to build Ruby 2.1 packages 21042030 puppet, facter, and hiera need to stop building Ruby 1.9 packages 21613616 oracle-solaris_provider builds should come from the github repo we publish 22047789 puppet package name and dependencies are confusing 22301978 Overzealous use of $(RUBY_VERSION) in puppet packaging 22347610 GIT repos cannot be used as described in docs 22664785 Puppet module files should be owned by puppet 22675056 git clone could use --depth 1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2054
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
     1
#
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
     3
#
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
     7
#
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    12
#
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    18
#
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    20
#
5328
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    21
# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
2054
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    22
#
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    23
GEM=/usr/ruby/$(RUBY_VERSION)/bin/gem
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    24
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    25
VENDOR_GEM_DIR=/usr/ruby/$(RUBY_VERSION)/lib/ruby/vendor_ruby/gems/$(RUBY_LIB_VERSION)
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    26
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    27
# Name of the gem spec to use.  This will typically be
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    28
# <component_name>.gemspec
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    29
GEMSPEC=$(COMPONENT_NAME).gemspec
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    30
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    31
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    32
# Some gems projects have to be built using rake
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    33
# Allow GEM build/install commands to be overwritten
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    34
# to account for possible differences
5438
c068f8c677e8 PSARC/2016/016 Rename/Refactor Puppet and Puppet Module Packages
Shawn Ferry <shawn.ferry@oracle.com>
parents: 5328
diff changeset
    35
GEM_BUILD_ACTION=(cd $(@D); $(GEM) build $(GEM_BUILD_ARGS) $(GEMSPEC))
c068f8c677e8 PSARC/2016/016 Rename/Refactor Puppet and Puppet Module Packages
Shawn Ferry <shawn.ferry@oracle.com>
parents: 5328
diff changeset
    36
c068f8c677e8 PSARC/2016/016 Rename/Refactor Puppet and Puppet Module Packages
Shawn Ferry <shawn.ferry@oracle.com>
parents: 5328
diff changeset
    37
ifeq ($(firstword $(subst .,$(space),$(RUBY_VERSION))),2)
c068f8c677e8 PSARC/2016/016 Rename/Refactor Puppet and Puppet Module Packages
Shawn Ferry <shawn.ferry@oracle.com>
parents: 5328
diff changeset
    38
# gem install 2.x does docs differently. Continue to generate both types
c068f8c677e8 PSARC/2016/016 Rename/Refactor Puppet and Puppet Module Packages
Shawn Ferry <shawn.ferry@oracle.com>
parents: 5328
diff changeset
    39
GEM_INSTALL_ARGS=--document rdoc,ri
c068f8c677e8 PSARC/2016/016 Rename/Refactor Puppet and Puppet Module Packages
Shawn Ferry <shawn.ferry@oracle.com>
parents: 5328
diff changeset
    40
endif
2054
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    41
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    42
GEM_INSTALL_ACTION=\
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    43
	$(GEM) install -V --local --install-dir $(PROTO_DIR)/$(VENDOR_GEM_DIR) \
5438
c068f8c677e8 PSARC/2016/016 Rename/Refactor Puppet and Puppet Module Packages
Shawn Ferry <shawn.ferry@oracle.com>
parents: 5328
diff changeset
    44
	     --bindir $(PROTO_DIR)/$(VENDOR_GEM_DIR)/bin --force $(GEM_INSTALL_ARGS) \
2054
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    45
	     $(@D)/$(COMPONENT_ARCHIVE)
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    46
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    47
$(BUILD_DIR)/%/.built:  $(SOURCE_DIR)/.prep
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    48
	$(RM) -r $(@D) ; $(MKDIR) $(@D)
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    49
	$(CLONEY) $(SOURCE_DIR) $(@D)
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    50
	$(COMPONENT_PRE_BUILD_ACTION)
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    51
	# Build the gem and cause the generation of a new gem spec
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    52
	# file in $(COMPONENT_SRC)
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    53
	$(GEM_BUILD_ACTION)
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    54
	$(COMPONENT_POST_BUILD_ACTION)
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    55
	$(TOUCH) $@
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    56
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    57
$(BUILD_DIR)/%/.installed:      $(BUILD_DIR)/%/.built
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    58
	$(COMPONENT_PRE_INSTALL_ACTION)
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    59
	$(MKDIR) $(PROTO_DIR)/$(GEM_DIR)
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    60
	# Install the new recreated gem
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    61
	$(GEM_INSTALL_ACTION)
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    62
	$(COMPONENT_POST_INSTALL_ACTION)
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    63
	$(TOUCH) $@
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    64
5328
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    65
COMPONENT_TEST_TARGETS =
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    66
COMPONENT_SYSTEM_TEST_TARGETS = 
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    67
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    68
# test the built source
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    69
$(BUILD_DIR)/%/.tested-and-compared:    $(BUILD_DIR)/%/.built
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    70
	$(RM) -rf $(COMPONENT_TEST_BUILD_DIR)
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    71
	$(MKDIR) $(COMPONENT_TEST_BUILD_DIR)
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    72
	$(COMPONENT_PRE_TEST_ACTION)
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    73
	-(cd $(COMPONENT_TEST_DIR) ; \
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    74
	    $(COMPONENT_TEST_ENV_CMD) $(COMPONENT_TEST_ENV) \
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    75
	    $(COMPONENT_TEST_CMD) \
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    76
	    $(COMPONENT_TEST_ARGS) $(COMPONENT_TEST_TARGETS)) \
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    77
	    &> $(COMPONENT_TEST_OUTPUT)
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    78
	$(COMPONENT_POST_TEST_ACTION)
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    79
	$(COMPONENT_TEST_CREATE_TRANSFORMS)
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    80
	$(COMPONENT_TEST_PERFORM_TRANSFORM)
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    81
	$(COMPONENT_TEST_COMPARE)
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    82
	$(COMPONENT_TEST_CLEANUP)
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    83
	$(TOUCH) $@
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    84
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    85
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    86
$(BUILD_DIR)/%/.tested:    $(COMPONENT_TEST_DEP)
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    87
	$(COMPONENT_PRE_TEST_ACTION)
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    88
	(cd $(COMPONENT_TEST_DIR) ; \
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    89
	    $(COMPONENT_TEST_ENV_CMD) $(COMPONENT_TEST_ENV) \
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    90
	    $(COMPONENT_TEST_CMD) \
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    91
	    $(COMPONENT_TEST_ARGS) $(COMPONENT_TEST_TARGETS))
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    92
	$(COMPONENT_POST_TEST_ACTION)
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    93
	$(COMPONENT_TEST_CLEANUP)
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    94
	$(TOUCH) $@
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    95
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    96
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    97
# Test the installed packages.  The targets above depend on .built which
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    98
# means $(CLONEY) has already run.  System-test needs cloning but not
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    99
# building; thus ideally, we would want to depend on .cloned here and below,
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
   100
# but since we don't have that, we depend on .prep and run $(CLONEY) here.
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
   101
$(BUILD_DIR)/%/.system-tested-and-compared:    $(SOURCE_DIR)/.prep
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
   102
	$(RM) -rf $(COMPONENT_TEST_BUILD_DIR)
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
   103
	$(MKDIR) $(COMPONENT_TEST_BUILD_DIR)
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
   104
	$(CLONEY) $(SOURCE_DIR) $(@D)
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
   105
	$(COMPONENT_PRE_SYSTEM_TEST_ACTION)
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
   106
	-(cd $(COMPONENT_SYSTEM_TEST_DIR) ; \
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
   107
	    $(COMPONENT_SYSTEM_TEST_ENV_CMD) $(COMPONENT_SYSTEM_TEST_ENV) \
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
   108
	    $(COMPONENT_SYSTEM_TEST_CMD) \
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
   109
	    $(COMPONENT_SYSTEM_TEST_ARGS) $(COMPONENT_SYSTEM_TEST_TARGETS)) \
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
   110
	    &> $(COMPONENT_TEST_OUTPUT)
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
   111
	$(COMPONENT_POST_SYSTEM_TEST_ACTION)
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
   112
	$(COMPONENT_TEST_CREATE_TRANSFORMS)
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
   113
	$(COMPONENT_TEST_PERFORM_TRANSFORM)
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
   114
	$(COMPONENT_TEST_COMPARE)
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
   115
	$(COMPONENT_SYSTEM_TEST_CLEANUP)
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
   116
	$(TOUCH) $@
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
   117
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
   118
$(BUILD_DIR)/%/.system-tested:    $(SOURCE_DIR)/.prep
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
   119
	$(CLONEY) $(SOURCE_DIR) $(@D)
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
   120
	$(COMPONENT_PRE_SYSTEM_TEST_ACTION)
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
   121
	(cd $(COMPONENT_SYSTEM_TEST_DIR) ; \
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
   122
	    $(COMPONENT_SYSTEM_TEST_ENV_CMD) $(COMPONENT_SYSTEM_TEST_ENV) \
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
   123
	    $(COMPONENT_SYSTEM_TEST_CMD) \
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
   124
	    $(COMPONENT_SYSTEM_TEST_ARGS) $(COMPONENT_SYSTEM_TEST_TARGETS))
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
   125
	$(COMPONENT_POST_SYSTEM_TEST_ACTION)
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
   126
	$(COMPONENT_SYSTEM_TEST_CLEANUP)
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
   127
	$(TOUCH) $@
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
   128
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2054
diff changeset
   129
REQUIRED_PACKAGES += runtime/ruby