hotspot/test/Makefile
author mchung
Tue, 29 Sep 2009 22:49:43 -0700
changeset 3939 be73148d80c8
parent 2868 051eb4af737f
child 5547 f4b087cbb361
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
#
2105
347008ce7984 6814575: Update copyright year
xdono
parents: 2024
diff changeset
     2
# Copyright 1995-2009 Sun Microsystems, Inc.  All Rights Reserved.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     4
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
489c9b5090e2 Initial load
duke
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
489c9b5090e2 Initial load
duke
parents:
diff changeset
     7
# published by the Free Software Foundation.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     8
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
     9
# This code is distributed in the hope that it will be useful, but WITHOUT
489c9b5090e2 Initial load
duke
parents:
diff changeset
    10
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    11
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
489c9b5090e2 Initial load
duke
parents:
diff changeset
    12
# version 2 for more details (a copy is included in the LICENSE file that
489c9b5090e2 Initial load
duke
parents:
diff changeset
    13
# accompanied this code).
489c9b5090e2 Initial load
duke
parents:
diff changeset
    14
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
    15
# You should have received a copy of the GNU General Public License version
489c9b5090e2 Initial load
duke
parents:
diff changeset
    16
# 2 along with this work; if not, write to the Free Software Foundation,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    17
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    18
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
    19
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    20
# CA 95054 USA or visit www.sun.com if you need additional information or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    21
# have any questions.
1132
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    22
#
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    23
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
    24
489c9b5090e2 Initial load
duke
parents:
diff changeset
    25
#
1132
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    26
# Makefile to run various jdk tests
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    27
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
    28
1132
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    29
# Get OS/ARCH specifics
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    30
OSNAME = $(shell uname -s)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    31
ifeq ($(OSNAME), SunOS)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    32
  PLATFORM = solaris
2024
859d11cea3f8 6799452: HotSpot tests Makefile should take care of ALT_SLASH_JAVA
twisti
parents: 1132
diff changeset
    33
  SLASH_JAVA = /java
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    34
  ARCH = $(shell uname -p)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    35
  ifeq ($(ARCH), i386)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    36
    ARCH=i586
489c9b5090e2 Initial load
duke
parents:
diff changeset
    37
  endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    38
endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    39
ifeq ($(OSNAME), Linux)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    40
  PLATFORM = linux
2024
859d11cea3f8 6799452: HotSpot tests Makefile should take care of ALT_SLASH_JAVA
twisti
parents: 1132
diff changeset
    41
  SLASH_JAVA = /java
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    42
  ARCH = $(shell uname -m)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    43
  ifeq ($(ARCH), i386)
1132
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    44
    ARCH = i586
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    45
  endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    46
endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    47
ifeq ($(OSNAME), Windows_NT)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    48
  PLATFORM = windows
1132
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    49
  SLASH_JAVA = J:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    50
  ifeq ($(word 1, $(PROCESSOR_IDENTIFIER)),ia64)
1132
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    51
    ARCH = ia64
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    52
  else
489c9b5090e2 Initial load
duke
parents:
diff changeset
    53
    ifeq ($(word 1, $(PROCESSOR_IDENTIFIER)),AMD64)
1132
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    54
      ARCH = x64
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    55
    else
489c9b5090e2 Initial load
duke
parents:
diff changeset
    56
      ifeq ($(word 1, $(PROCESSOR_IDENTIFIER)),EM64T)
1132
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    57
        ARCH = x64
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
      else
1132
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    59
        ARCH = i586
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    60
      endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    61
    endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    62
  endif
1132
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    63
  EXESUFFIX = .exe
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    64
endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    65
2024
859d11cea3f8 6799452: HotSpot tests Makefile should take care of ALT_SLASH_JAVA
twisti
parents: 1132
diff changeset
    66
ifdef ALT_SLASH_JAVA
859d11cea3f8 6799452: HotSpot tests Makefile should take care of ALT_SLASH_JAVA
twisti
parents: 1132
diff changeset
    67
  SLASH_JAVA = $(ALT_SLASH_JAVA)
859d11cea3f8 6799452: HotSpot tests Makefile should take care of ALT_SLASH_JAVA
twisti
parents: 1132
diff changeset
    68
endif
859d11cea3f8 6799452: HotSpot tests Makefile should take care of ALT_SLASH_JAVA
twisti
parents: 1132
diff changeset
    69
1132
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    70
# Utilities used
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    71
CD    = cd
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    72
CP    = cp
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    73
ECHO  = echo
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    74
MKDIR = mkdir
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    75
ZIP   = zip
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
1132
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    77
# Root of this test area (important to use full paths in some places)
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    78
TEST_ROOT := $(shell pwd)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    79
489c9b5090e2 Initial load
duke
parents:
diff changeset
    80
# Root of all test results
1132
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    81
ABS_BUILD_ROOT = $(TEST_ROOT)/../build/$(PLATFORM)-$(ARCH)
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    82
ABS_TEST_OUTPUT_DIR = $(ABS_BUILD_ROOT)/testoutput
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    83
1132
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    84
# Expect JPRT to set PRODUCT_HOME (the product or jdk in this case to test)
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    85
ifndef PRODUCT_HOME
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    86
  # Try to use j2sdk-image if it exists
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    87
  ABS_JDK_IMAGE = $(ABS_BUILD_ROOT)/j2sdk-image
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    88
  PRODUCT_HOME :=                       \
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    89
    $(shell                             \
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    90
      if [ -d $(ABS_JDK_IMAGE) ] ; then \
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    91
         $(ECHO) "$(ABS_JDK_IMAGE)";    \
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    92
       else                             \
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    93
         $(ECHO) "$(ABS_BUILD_ROOT)" ;  \
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    94
       fi)
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    95
endif
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    96
1132
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    97
# Expect JPRT to set JAVA_ARGS (e.g. -server etc.)
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    98
JAVA_OPTIONS = 
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    99
ifdef JAVA_ARGS
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   100
  JAVA_OPTIONS = $(JAVA_ARGS)
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   101
endif
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   102
1132
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   103
# Expect JPRT to set JPRT_ARCHIVE_BUNDLE (path to zip bundle for results)
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   104
ARCHIVE_BUNDLE = $(ABS_TEST_OUTPUT_DIR)/ARCHIVE_BUNDLE.zip
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   105
ifdef JPRT_ARCHIVE_BUNDLE
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   106
  ARCHIVE_BUNDLE = $(JPRT_ARCHIVE_BUNDLE)
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   107
endif
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   108
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   109
# How to create the test bundle (pass or fail, we want to create this)
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   110
BUNDLE_UP = ( $(MKDIR) -p `dirname $(ARCHIVE_BUNDLE)`     \
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   111
	      && $(CD) $(ABS_TEST_OUTPUT_DIR)             \
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   112
	      && $(ZIP) -q -r $(ARCHIVE_BUNDLE) . )
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   113
BUNDLE_UP_FAILED = ( exitCode=$$? && $(BUNDLE_UP) && exit $${exitCode} )
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   114
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   115
################################################################
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   116
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   117
# Default make rule (runs jtreg_tests)
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   118
all: jtreg_tests
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   119
	@$(ECHO) "Testing completed successfully"
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   120
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   121
# Prep for output
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   122
prep: clean
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   123
	@$(MKDIR) -p $(ABS_TEST_OUTPUT_DIR)
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   124
	@$(MKDIR) -p `dirname $(ARCHIVE_BUNDLE)`
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   125
489c9b5090e2 Initial load
duke
parents:
diff changeset
   126
# Cleanup
489c9b5090e2 Initial load
duke
parents:
diff changeset
   127
clean:
1132
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   128
	$(RM) -r $(ABS_TEST_OUTPUT_DIR)
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   129
	$(RM) $(ARCHIVE_BUNDLE)
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   130
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   131
################################################################
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   132
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   133
# jtreg tests
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   134
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   135
# Expect JT_HOME to be set for jtreg tests. (home for jtreg)
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   136
JT_HOME = $(SLASH_JAVA)/re/jtreg/4.0/promoted/latest/binaries/jtreg
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   137
ifdef JPRT_JTREG_HOME
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   138
  JT_HOME = $(JPRT_JTREG_HOME)
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   139
endif
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   140
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   141
# Expect JPRT to set TESTDIRS to the jtreg test dirs
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   142
JTREG_TESTDIRS = demo/jvmti/gctest demo/jvmti/hprof
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   143
ifdef TESTDIRS
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   144
  JTREG_TESTDIRS = $(TESTDIRS)
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   145
endif
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   146
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   147
# Default JTREG to run (win32 script works for everybody)
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   148
JTREG = $(JT_HOME)/win32/bin/jtreg
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   149
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   150
# Option to tell jtreg to not run tests marked with "ignore"
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   151
ifeq ($(PLATFORM), windows)
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   152
  JTREG_KEY_OPTION = -k:!ignore
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   153
else
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   154
  JTREG_KEY_OPTION = -k:\!ignore
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   155
endif
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   156
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   157
#EXTRA_JTREG_OPTIONS =
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   158
1132
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   159
jtreg_tests: prep $(JT_HOME) $(PRODUCT_HOME) $(JTREG)
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   160
	$(JTREG) -a -v:fail,error               \
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   161
          $(JTREG_KEY_OPTION)                   \
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   162
          $(EXTRA_JTREG_OPTIONS)                \
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   163
          -r:$(ABS_TEST_OUTPUT_DIR)/JTreport    \
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   164
          -w:$(ABS_TEST_OUTPUT_DIR)/JTwork      \
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   165
          -jdk:$(PRODUCT_HOME)                  \
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   166
          $(JAVA_OPTIONS:%=-vmoption:%)         \
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   167
          $(JTREG_TESTDIRS)                     \
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   168
	  || $(BUNDLE_UP_FAILED)
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   169
	$(BUNDLE_UP)
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   170
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   171
PHONY_LIST += jtreg_tests
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   172
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   173
################################################################
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   174
2868
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   175
# clienttest (make sure various basic java client options work)
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   176
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   177
clienttest: prep $(PRODUCT_HOME)
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   178
	$(PRODUCT_HOME)/bin/java $(JAVA_OPTIONS) -version
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   179
	$(PRODUCT_HOME)/bin/java $(JAVA_OPTIONS) -help
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   180
	$(PRODUCT_HOME)/bin/java $(JAVA_OPTIONS) -X
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   181
	$(RM) $(PRODUCT_HOME)/jre/lib/*/client/classes.jsa
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   182
	$(RM) $(PRODUCT_HOME)/jre/lib/*/client/classes_g.jsa
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   183
	$(RM) $(PRODUCT_HOME)/jre/bin/client/classes.jsa
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   184
	$(RM) $(PRODUCT_HOME)/jre/bin/client/classes_g.jsa
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   185
	$(PRODUCT_HOME)/bin/java $(JAVA_OPTIONS) -Xshare:dump
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   186
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   187
PHONY_LIST += clienttest
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   188
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   189
################################################################
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   190
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   191
# servertest (make sure various basic java server options work)
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   192
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   193
servertest: prep $(PRODUCT_HOME)
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   194
	$(PRODUCT_HOME)/bin/java $(JAVA_OPTIONS) -version
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   195
	$(PRODUCT_HOME)/bin/java $(JAVA_OPTIONS) -help
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   196
	$(PRODUCT_HOME)/bin/java $(JAVA_OPTIONS) -X
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   197
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   198
PHONY_LIST += servertest
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   199
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   200
################################################################
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   201
1132
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   202
# packtest
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   203
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   204
# Expect JPRT to set JPRT_PACKTEST_HOME.
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   205
PACKTEST_HOME = /net/jprt-web.sfbay.sun.com/jprt/allproducts/packtest
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   206
ifdef JPRT_PACKTEST_HOME
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   207
  PACKTEST_HOME = $(JPRT_PACKTEST_HOME)
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   208
endif
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   209
1132
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   210
#EXTRA_PACKTEST_OPTIONS =
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   211
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   212
packtest: prep $(PACKTEST_HOME)/ptest $(PRODUCT_HOME)
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   213
	( $(CD) $(PACKTEST_HOME) &&            \
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   214
	    $(PACKTEST_HOME)/ptest             \
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   215
		 -t "$(PRODUCT_HOME)"          \
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   216
	         $(PACKTEST_STRESS_OPTION)     \
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   217
		 $(EXTRA_PACKTEST_OPTIONS)     \
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   218
		 -W $(ABS_TEST_OUTPUT_DIR)     \
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   219
                 $(JAVA_OPTIONS:%=-J %)        \
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   220
	 ) || $(BUNDLE_UP_FAILED)
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   221
	$(BUNDLE_UP)
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   222
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   223
packtest_stress: PACKTEST_STRESS_OPTION=-s
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   224
packtest_stress: packtest
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   225
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   226
PHONY_LIST += packtest packtest_stress
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   227
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   228
################################################################
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   229
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   230
# Phony targets (e.g. these are not filenames)
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   231
.PHONY: all clean prep $(PHONY_LIST)
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   232
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   233
################################################################
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   234