< prev index next >

make/MainSupport.gmk

Print this page




  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 ################################################################################
  27 # This file contains helper functions for Main.gmk.
  28 ################################################################################
  29 
  30 ifndef _MAINSUPPORT_GMK
  31 _MAINSUPPORT_GMK := 1
  32 
  33 # Run the tests specified by $1, with PRODUCT_HOME specified by $2

  34 define RunTests
  35         ($(CD) $(SRC_ROOT)/test && $(MAKE) $(MAKE_ARGS) -j1 -k MAKEFLAGS= \
  36             JT_HOME=$(JT_HOME) PRODUCT_HOME=$(strip $2) \
  37             TEST_IMAGE_DIR=$(TEST_IMAGE_DIR) \
  38             ALT_OUTPUTDIR=$(OUTPUT_ROOT) TEST_JOBS=$(TEST_JOBS) \

  39             JOBS=$(JOBS) $1) || true
  40 endef
  41 
  42 # Cleans the dir given as $1
  43 define CleanDir
  44         @$(PRINTF) "Cleaning $(strip $1) build artifacts ..."
  45         @$(PRINTF) "\n" $(LOG_DEBUG)
  46         ($(CD) $(OUTPUT_ROOT) && $(RM) -r $1)
  47         @$(PRINTF) " done\n"
  48 endef
  49 
  50 define CleanSupportDir
  51         @$(PRINTF) "Cleaning $(strip $1) build artifacts ..."
  52         @$(PRINTF) "\n" $(LOG_DEBUG)
  53         $(RM) -r $(SUPPORT_OUTPUTDIR)/$(strip $1)
  54         @$(PRINTF) " done\n"
  55 endef
  56 
  57 define CleanTest
  58         @$(PRINTF) "Cleaning test $(strip $1) ..."




  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 ################################################################################
  27 # This file contains helper functions for Main.gmk.
  28 ################################################################################
  29 
  30 ifndef _MAINSUPPORT_GMK
  31 _MAINSUPPORT_GMK := 1
  32 
  33 # Run the tests specified by $1, with PRODUCT_HOME specified by $2
  34 # JT_JAVA is picked up by the jtreg launcher and used to run Jtreg itself.
  35 define RunTests
  36         ($(CD) $(SRC_ROOT)/test && $(MAKE) $(MAKE_ARGS) -j1 -k MAKEFLAGS= \
  37             JT_HOME=$(JT_HOME) PRODUCT_HOME=$(strip $2) \
  38             TEST_IMAGE_DIR=$(TEST_IMAGE_DIR) \
  39             ALT_OUTPUTDIR=$(OUTPUT_ROOT) TEST_JOBS=$(TEST_JOBS) \
  40             JT_JAVA=$(BOOT_JDK) \
  41             JOBS=$(JOBS) $1) || true
  42 endef
  43 
  44 # Cleans the dir given as $1
  45 define CleanDir
  46         @$(PRINTF) "Cleaning $(strip $1) build artifacts ..."
  47         @$(PRINTF) "\n" $(LOG_DEBUG)
  48         ($(CD) $(OUTPUT_ROOT) && $(RM) -r $1)
  49         @$(PRINTF) " done\n"
  50 endef
  51 
  52 define CleanSupportDir
  53         @$(PRINTF) "Cleaning $(strip $1) build artifacts ..."
  54         @$(PRINTF) "\n" $(LOG_DEBUG)
  55         $(RM) -r $(SUPPORT_OUTPUTDIR)/$(strip $1)
  56         @$(PRINTF) " done\n"
  57 endef
  58 
  59 define CleanTest
  60         @$(PRINTF) "Cleaning test $(strip $1) ..."


< prev index next >