< prev index next >

test/Makefile

Print this page




  88 endif
  89 
  90 # Default JTREG to run
  91 ifdef JPRT_JTREG_HOME
  92   JTREG_HOME = $(JPRT_JTREG_HOME)
  93 else
  94   JTREG_HOME = $(SLASH_JAVA)/re/jtreg/4.1/promoted/latest/binaries/jtreg
  95 endif
  96 JTREG = $(JTREG_HOME)/$(JT_PLATFORM)/bin/jtreg
  97 JTDIFF = $(JTREG_HOME)/$(JT_PLATFORM)/bin/jtdiff
  98 
  99 # Default JCK to run
 100 ifdef JPRT_JCK_HOME
 101   JCK_HOME = $(JPRT_JCK_HOME)
 102 else
 103   JCK_HOME = $(SLASH_JAVA)/re/jck/8/promoted/latest/binaries
 104 endif
 105 
 106 # Default JDK for JTREG and JCK
 107 #
 108 # JT_JAVA is the version of java used to run jtreg/JCK. Since it is now
 109 # standard to execute tests in sameVM mode, it should normally be set the
 110 # same as TESTJAVA (although not necessarily so.)
 111 #
 112 ifdef JPRT_JAVA_HOME
 113   JT_JAVA = $(JPRT_JAVA_HOME)
 114 else
 115   JT_JAVA = $(SLASH_JAVA)/re/jdk/1.7.0/archive/fcs/binaries/$(PLATFORM)-$(ARCH)
 116 endif
 117 
 118 # Default JDK to test
 119 ifdef JPRT_IMPORT_PRODUCT_HOME
 120   TESTJAVA = $(JPRT_IMPORT_PRODUCT_HOME)
 121 else
 122   TESTJAVA = $(SLASH_JAVA)/re/jdk/1.7.0/promoted/latest/binaries/$(PLATFORM)-$(ARCH)
 123 endif
 124 
 125 # PRODUCT_HOME is a JPRT variable pointing to a directory containing the output from
 126 # make/Makefile
 127 # For langtools, this is a directory containing build and dist
 128 # For a control build, this is build/$(PRODUCT)-$(ARCH)/XYZ-image
 129 #       (i.e, j2sdk-image or jdk-module-image)
 130 ifdef PRODUCT_HOME
 131   ifeq ($(shell [ -r $(PRODUCT_HOME)/dist/lib/classes.jar ]; echo $$?),0)
 132     TESTBOOTCLASSPATH = $(PRODUCT_HOME)/dist/lib/classes.jar
 133   endif
 134   ifeq ($(shell [ -r $(PRODUCT_HOME)/bin/javac$(EXE_SUFFIX) ]; echo $$?),0)
 135     TESTJAVA = $(PRODUCT_HOME)
 136   endif
 137 endif
 138 
 139 ifdef TESTBOOTCLASSPATH
 140   JTREG_OPTIONS += -Xbootclasspath/p:$(TESTBOOTCLASSPATH)
 141 ### In the following, -refvmoptions is an undocumented option
 142 ### The following does not work JCK 7 b30 2/6/2010. Awaiting b31.
 143   JCK_OPTIONS += \
 144         -vmoptions:-Xbootclasspath/p:$(TESTBOOTCLASSPATH) \
 145         -refvmoptions:-Xbootclasspath/p:$(TESTBOOTCLASSPATH)
 146 endif
 147 
 148 # Concurrency is the number of tests that can execute at once.
 149 # On an otherwise empty machine, suggest setting to (#cpus + 2)
 150 # If unset, the default is (#cpus)
 151 ### RFE: determine and use #cpus
 152 ifdef CONCURRENCY
 153   JTREG_OPTIONS += -agentvm -concurrency:$(CONCURRENCY)
 154 else
 155   JTREG_OPTIONS += -samevm
 156 endif
 157 
 158 ifdef JCK_CONCURRENCY
 159   JCK_OPTIONS += -concurrency:$(JCK_CONCURRENCY)
 160 endif
 161 
 162 # JCK is executed using "Multi-JVM Group Mode", which is a hybrid
 163 # of otherVM and sameVM modes. New JVMs are created and reused for
 164 # a number of tests, then eventually discarded and a new one started.
 165 # This amortizes the JVM startup time.  The "group size" defines
 166 # how many tests are run in a JVM before it is replaced.
 167 # If unset, the default is 100.
 168 JCK_GROUP_SIZE = 1000
 169 ifdef JCK_GROUP_SIZE
 170   JCK_COMPILER_OPTIONS += \
 171     -jtoptions:-Ejck.env.compiler.testCompile.groupMode.groupSize=$(JCK_GROUP_SIZE) \
 172     -jtoptions:-Ejck.env.compiler.compRefExecute.groupMode.groupSize=$(JCK_GROUP_SIZE)
 173 ### The following is not supported. Awaiting RFE 6924287
 174 ### 6924287: Jck4Jdk: Allow to configure test group size for group mode via simple command line option
 175 ###  JCK_RUNTIME_OPTIONS += \




  88 endif
  89 
  90 # Default JTREG to run
  91 ifdef JPRT_JTREG_HOME
  92   JTREG_HOME = $(JPRT_JTREG_HOME)
  93 else
  94   JTREG_HOME = $(SLASH_JAVA)/re/jtreg/4.1/promoted/latest/binaries/jtreg
  95 endif
  96 JTREG = $(JTREG_HOME)/$(JT_PLATFORM)/bin/jtreg
  97 JTDIFF = $(JTREG_HOME)/$(JT_PLATFORM)/bin/jtdiff
  98 
  99 # Default JCK to run
 100 ifdef JPRT_JCK_HOME
 101   JCK_HOME = $(JPRT_JCK_HOME)
 102 else
 103   JCK_HOME = $(SLASH_JAVA)/re/jck/8/promoted/latest/binaries
 104 endif
 105 
 106 # Default JDK for JTREG and JCK
 107 #
 108 # JT_JAVA is the version of java used to run jtreg/JCK. 


 109 #
 110 ifdef JPRT_JAVA_HOME
 111   JT_JAVA = $(JPRT_JAVA_HOME)
 112 else
 113   JT_JAVA = $(SLASH_JAVA)/re/jdk/1.9.0/archive/fcs/binaries/$(PLATFORM)-$(ARCH)
 114 endif
 115 
 116 # Default JDK to test
 117 ifdef JPRT_IMPORT_PRODUCT_HOME
 118   TESTJAVA = $(JPRT_IMPORT_PRODUCT_HOME)
 119 else
 120   TESTJAVA = $(SLASH_JAVA)/re/jdk/1.9.0/promoted/latest/binaries/$(PLATFORM)-$(ARCH)
 121 endif
 122 
 123 # PRODUCT_HOME is a JPRT variable pointing to a directory containing the output from
 124 # make/Makefile
 125 # For langtools, this is a directory containing build and dist
 126 # For a control build, this is build/$(PRODUCT)-$(ARCH)/XYZ-image
 127 #       (i.e, j2sdk-image or jdk-module-image)
 128 ifdef PRODUCT_HOME
 129   ifeq ($(shell [ -r $(PRODUCT_HOME)/dist/lib/classes.jar ]; echo $$?),0)
 130     TESTBOOTCLASSPATH = $(PRODUCT_HOME)/dist/lib/classes.jar
 131   endif
 132   ifeq ($(shell [ -r $(PRODUCT_HOME)/bin/javac$(EXE_SUFFIX) ]; echo $$?),0)
 133     TESTJAVA = $(PRODUCT_HOME)
 134   endif
 135 endif
 136 
 137 ifdef TESTBOOTCLASSPATH
 138   JTREG_OPTIONS += -Xbootclasspath/p:$(TESTBOOTCLASSPATH)
 139 ### In the following, -refvmoptions is an undocumented option
 140 ### The following does not work JCK 7 b30 2/6/2010. Awaiting b31.
 141   JCK_OPTIONS += \
 142         -vmoptions:-Xbootclasspath/p:$(TESTBOOTCLASSPATH) \
 143         -refvmoptions:-Xbootclasspath/p:$(TESTBOOTCLASSPATH)
 144 endif
 145 
 146 # Concurrency is the number of tests that can execute at once.
 147 # On an otherwise empty machine, suggest setting to (#cpus + 2)
 148 # If unset, the default is (#cpus)
 149 ### RFE: determine and use #cpus
 150 ifdef CONCURRENCY
 151   JTREG_OPTIONS += -agentvm -concurrency:$(CONCURRENCY)
 152 else
 153   JTREG_OPTIONS += -agentvm
 154 endif
 155 
 156 ifdef JCK_CONCURRENCY
 157   JCK_OPTIONS += -concurrency:$(JCK_CONCURRENCY)
 158 endif
 159 
 160 # JCK is executed using "Multi-JVM Group Mode", which is a hybrid
 161 # of otherVM and sameVM modes. New JVMs are created and reused for
 162 # a number of tests, then eventually discarded and a new one started.
 163 # This amortizes the JVM startup time.  The "group size" defines
 164 # how many tests are run in a JVM before it is replaced.
 165 # If unset, the default is 100.
 166 JCK_GROUP_SIZE = 1000
 167 ifdef JCK_GROUP_SIZE
 168   JCK_COMPILER_OPTIONS += \
 169     -jtoptions:-Ejck.env.compiler.testCompile.groupMode.groupSize=$(JCK_GROUP_SIZE) \
 170     -jtoptions:-Ejck.env.compiler.compRefExecute.groupMode.groupSize=$(JCK_GROUP_SIZE)
 171 ### The following is not supported. Awaiting RFE 6924287
 172 ### 6924287: Jck4Jdk: Allow to configure test group size for group mode via simple command line option
 173 ###  JCK_RUNTIME_OPTIONS += \


< prev index next >