< prev index next >

jaxp/test/Makefile

Print this page




 248 $(foreach i,$1,$(shell $(GETMIXEDPATH) "${i}"))
 249 endef
 250 
 251 define SummaryInfo
 252 $(ECHO) "########################################################"
 253 $(CAT) $(?:%=$(ABS_TEST_OUTPUT_DIR)/%/$(STATS_TXT_NAME))
 254 $(ECHO) "########################################################"
 255 endef
 256 
 257 # ------------------------------------------------------------------
 258 
 259 jaxp_%:
 260         $(ECHO) "Running tests: $@"
 261         for each in $@; do \
 262                 $(MAKE) -j 1 TEST_SELECTION=":$$each" UNIQUE_DIR=$$each jtreg_tests; \
 263         done
 264 
 265 # ------------------------------------------------------------------
 266 
 267 ifdef CONCURRENCY
 268   EXTRA_JTREG_OPTIONS += -concurrency:$(CONCURRENCY)



 269 endif
 270 
 271 # Default JTREG to run
 272 JTREG = $(JT_HOME)/bin/jtreg
 273 # run in agentvm mode
 274 JTREG_BASIC_OPTIONS += -agentvm
 275 # Only run automatic tests
 276 JTREG_BASIC_OPTIONS += -a
 277 # Always turn on assertions
 278 JTREG_ASSERT_OPTION = -ea -esa
 279 JTREG_BASIC_OPTIONS += $(JTREG_ASSERT_OPTION)
 280 # Report details on all failed or error tests, times too
 281 JTREG_BASIC_OPTIONS += -v:fail,error,time
 282 # Retain all files for failing tests
 283 JTREG_BASIC_OPTIONS += -retain:fail,error
 284 # Ignore tests are not run and completely silent about it
 285 JTREG_IGNORE_OPTION = -ignore:quiet
 286 JTREG_BASIC_OPTIONS += $(JTREG_IGNORE_OPTION)
 287 # Multiple by 4 the timeout numbers
 288 JTREG_TIMEOUT_OPTION =  -timeoutFactor:4
 289 JTREG_BASIC_OPTIONS += $(JTREG_TIMEOUT_OPTION)
 290 # Set the max memory for jtreg control vm
 291 JTREG_MEMORY_OPTION = -J-Xmx512m
 292 JTREG_BASIC_OPTIONS += $(JTREG_MEMORY_OPTION)
 293 # Add any extra options
 294 JTREG_BASIC_OPTIONS += $(EXTRA_JTREG_OPTIONS)
 295 # Set other vm and test options
 296 JTREG_TEST_OPTIONS = $(JAVA_ARGS:%=-javaoptions:%) $(JAVA_VM_ARGS:%=-vmoption:%)
 297 # Set the GC options for test vms
 298 #JTREG_GC_OPTION = -vmoption:-XX:+UseSerialGC
 299 #JTREG_TEST_OPTIONS += $(JTREG_GC_OPTION)
 300 # Set the max memory for jtreg target test vms
 301 JTREG_TESTVM_MEMORY_OPTION = -vmoption:-Xmx512m
 302 JTREG_TEST_OPTIONS += $(JTREG_TESTVM_MEMORY_OPTION)
 303 
 304 # Make sure jtreg exists
 305 $(JTREG): $(JT_HOME)
 306 
 307 # Run jtreg
 308 jtreg_tests: prep $(PRODUCT_HOME) $(JTREG)
 309         (                                                                    \
 310           ( JT_HOME=$(shell $(GETMIXEDPATH) "$(JT_HOME)");                   \
 311             export JT_HOME;                                                  \
 312             $(shell $(GETMIXEDPATH) "$(JTREG)")                              \
 313               $(JTREG_BASIC_OPTIONS)                                         \
 314               -r:$(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)/JTreport")  \


 248 $(foreach i,$1,$(shell $(GETMIXEDPATH) "${i}"))
 249 endef
 250 
 251 define SummaryInfo
 252 $(ECHO) "########################################################"
 253 $(CAT) $(?:%=$(ABS_TEST_OUTPUT_DIR)/%/$(STATS_TXT_NAME))
 254 $(ECHO) "########################################################"
 255 endef
 256 
 257 # ------------------------------------------------------------------
 258 
 259 jaxp_%:
 260         $(ECHO) "Running tests: $@"
 261         for each in $@; do \
 262                 $(MAKE) -j 1 TEST_SELECTION=":$$each" UNIQUE_DIR=$$each jtreg_tests; \
 263         done
 264 
 265 # ------------------------------------------------------------------
 266 
 267 ifdef CONCURRENCY
 268   JTREG_BASIC_OPTIONS += -concurrency:$(CONCURRENCY)
 269 endif
 270 ifdef EXTRA_JTREG_OPTIONS
 271   JTREG_BASIC_OPTIONS += $(EXTRA_JTREG_OPTIONS)
 272 endif
 273 
 274 # Default JTREG to run
 275 JTREG = $(JT_HOME)/bin/jtreg
 276 # run in agentvm mode
 277 JTREG_BASIC_OPTIONS += -agentvm
 278 # Only run automatic tests
 279 JTREG_BASIC_OPTIONS += -a
 280 # Always turn on assertions
 281 JTREG_ASSERT_OPTION = -ea -esa
 282 JTREG_BASIC_OPTIONS += $(JTREG_ASSERT_OPTION)
 283 # Report details on all failed or error tests, times too
 284 JTREG_BASIC_OPTIONS += -v:fail,error,time
 285 # Retain all files for failing tests
 286 JTREG_BASIC_OPTIONS += -retain:fail,error
 287 # Ignore tests are not run and completely silent about it
 288 JTREG_IGNORE_OPTION = -ignore:quiet
 289 JTREG_BASIC_OPTIONS += $(JTREG_IGNORE_OPTION)
 290 # Multiple by 4 the timeout numbers
 291 JTREG_TIMEOUT_OPTION =  -timeoutFactor:4
 292 JTREG_BASIC_OPTIONS += $(JTREG_TIMEOUT_OPTION)
 293 # Set the max memory for jtreg control vm
 294 JTREG_MEMORY_OPTION = -J-Xmx512m
 295 JTREG_BASIC_OPTIONS += $(JTREG_MEMORY_OPTION)


 296 # Set other vm and test options
 297 JTREG_TEST_OPTIONS = $(JAVA_ARGS:%=-javaoptions:%) $(JAVA_VM_ARGS:%=-vmoption:%)
 298 # Set the GC options for test vms
 299 #JTREG_GC_OPTION = -vmoption:-XX:+UseSerialGC
 300 #JTREG_TEST_OPTIONS += $(JTREG_GC_OPTION)
 301 # Set the max memory for jtreg target test vms
 302 JTREG_TESTVM_MEMORY_OPTION = -vmoption:-Xmx512m
 303 JTREG_TEST_OPTIONS += $(JTREG_TESTVM_MEMORY_OPTION)
 304 
 305 # Make sure jtreg exists
 306 $(JTREG): $(JT_HOME)
 307 
 308 # Run jtreg
 309 jtreg_tests: prep $(PRODUCT_HOME) $(JTREG)
 310         (                                                                    \
 311           ( JT_HOME=$(shell $(GETMIXEDPATH) "$(JT_HOME)");                   \
 312             export JT_HOME;                                                  \
 313             $(shell $(GETMIXEDPATH) "$(JTREG)")                              \
 314               $(JTREG_BASIC_OPTIONS)                                         \
 315               -r:$(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)/JTreport")  \
< prev index next >