make-rules/gem.mk
author Geoffrey Gardella <geoffrey.gardella@oracle.com>
Mon, 25 Jan 2016 14:36:26 -0800
changeset 5328 34fe0d5ec7b7
parent 4252 891a844655c4
child 5438 c068f8c677e8
permissions -rw-r--r--
22585171 Need to add rules to gem.mk in Userland make-rules
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
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    35
GEM_BUILD_ACTION=(cd $(@D); $(GEM) build $(GEMSPEC))
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    36
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    37
GEM_INSTALL_ACTION=\
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    38
	$(GEM) install -V --local --install-dir $(PROTO_DIR)/$(VENDOR_GEM_DIR) \
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    39
	     --bindir $(PROTO_DIR)/$(VENDOR_GEM_DIR)/bin --force \
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    40
	     $(@D)/$(COMPONENT_ARCHIVE)
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
$(BUILD_DIR)/%/.built:  $(SOURCE_DIR)/.prep
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    43
	$(RM) -r $(@D) ; $(MKDIR) $(@D)
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    44
	$(CLONEY) $(SOURCE_DIR) $(@D)
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    45
	$(COMPONENT_PRE_BUILD_ACTION)
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    46
	# 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
    47
	# file in $(COMPONENT_SRC)
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    48
	$(GEM_BUILD_ACTION)
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    49
	$(COMPONENT_POST_BUILD_ACTION)
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    50
	$(TOUCH) $@
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    51
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    52
$(BUILD_DIR)/%/.installed:      $(BUILD_DIR)/%/.built
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    53
	$(COMPONENT_PRE_INSTALL_ACTION)
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    54
	$(MKDIR) $(PROTO_DIR)/$(GEM_DIR)
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    55
	# Install the new recreated gem
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    56
	$(GEM_INSTALL_ACTION)
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    57
	$(COMPONENT_POST_INSTALL_ACTION)
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    58
	$(TOUCH) $@
5f403d9bcaad PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
diff changeset
    59
5328
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    60
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
    61
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
    62
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    63
# 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
    64
$(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
    65
	$(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
    66
	$(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
    67
	$(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
    68
	-(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
    69
	    $(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
    70
	    $(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
    71
	    $(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
    72
	    &> $(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
    73
	$(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
    74
	$(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
    75
	$(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
    76
	$(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
    77
	$(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
    78
	$(TOUCH) $@
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    79
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    80
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    81
$(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
    82
	$(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
    83
	(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
    84
	    $(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
    85
	    $(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
    86
	    $(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
    87
	$(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
    88
	$(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
    89
	$(TOUCH) $@
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    90
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    91
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
    92
# 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
    93
# 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
    94
# 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
    95
# 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
    96
$(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
    97
	$(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
    98
	$(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
    99
	$(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
   100
	$(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
   101
	-(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
   102
	    $(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
   103
	    $(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
   104
	    $(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
   105
	    &> $(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
   106
	$(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
   107
	$(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
   108
	$(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
   109
	$(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
   110
	$(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
   111
	$(TOUCH) $@
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
   112
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
   113
$(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
   114
	$(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
   115
	$(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
   116
	(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
   117
	    $(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
   118
	    $(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
   119
	    $(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
   120
	$(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
   121
	$(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
   122
	$(TOUCH) $@
34fe0d5ec7b7 22585171 Need to add rules to gem.mk in Userland make-rules
Geoffrey Gardella <geoffrey.gardella@oracle.com>
parents: 4252
diff changeset
   123
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2054
diff changeset
   124
REQUIRED_PACKAGES += runtime/ruby