< prev index next >

test/Makefile

Print this page
rev 13428 : jfr backport
   1 #
   2 # Copyright (c) 1995, 2013, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  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


 277 JTREG_BASIC_OPTIONS += -retain:fail,error
 278 # Ignore tests are not run and completely silent about it
 279 JTREG_IGNORE_OPTION = -ignore:quiet
 280 JTREG_BASIC_OPTIONS += $(JTREG_IGNORE_OPTION)
 281 # Multiple by 4 the timeout numbers
 282 JTREG_TIMEOUT_OPTION =  -timeoutFactor:4
 283 JTREG_BASIC_OPTIONS += $(JTREG_TIMEOUT_OPTION)
 284 # Set the max memory for jtreg control vm
 285 JTREG_MEMORY_OPTION = -J-Xmx512m
 286 JTREG_BASIC_OPTIONS += $(JTREG_MEMORY_OPTION)
 287 # Add any extra options
 288 JTREG_BASIC_OPTIONS += $(EXTRA_JTREG_OPTIONS)
 289 # Set other vm and test options
 290 JTREG_TEST_OPTIONS = $(JAVA_ARGS:%=-javaoptions:%) $(JAVA_VM_ARGS:%=-vmoption:%)
 291 # Set the GC options for test vms
 292 #JTREG_GC_OPTION = -vmoption:-XX:+UseSerialGC
 293 #JTREG_TEST_OPTIONS += $(JTREG_GC_OPTION)
 294 # Set the max memory for jtreg target test vms
 295 JTREG_TESTVM_MEMORY_OPTION = -vmoption:-Xmx512m
 296 JTREG_TEST_OPTIONS += $(JTREG_TESTVM_MEMORY_OPTION)




 297 
 298 # Make sure jtreg exists
 299 $(JTREG): $(JT_HOME)
 300 
 301 # Run jtreg
 302 jtreg_tests: prep $(PRODUCT_HOME) $(JTREG)
 303         (                                                                    \
 304           ( JT_HOME=$(shell $(GETMIXEDPATH) "$(JT_HOME)");                   \
 305             export JT_HOME;                                                  \
 306             $(shell $(GETMIXEDPATH) "$(JTREG)")                              \
 307               $(JTREG_BASIC_OPTIONS)                                         \
 308               -r:$(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)/JTreport")  \
 309               -w:$(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)/JTwork")    \
 310               -jdk:$(shell $(GETMIXEDPATH) "$(PRODUCT_HOME)")                \
 311               $(JTREG_EXCLUSIONS)                                            \
 312               $(JTREG_TEST_OPTIONS)                                          \
 313               $(TEST_SELECTION)                                                    \
 314           ) ;                                                                \
 315           $(BUNDLE_UP_AND_EXIT)                                              \
 316         ) 2>&1 | $(TEE) $(ABS_TEST_OUTPUT_DIR)/output.txt ; $(TESTEXIT)
   1 #
   2 # Copyright (c) 1995, 2019, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  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


 277 JTREG_BASIC_OPTIONS += -retain:fail,error
 278 # Ignore tests are not run and completely silent about it
 279 JTREG_IGNORE_OPTION = -ignore:quiet
 280 JTREG_BASIC_OPTIONS += $(JTREG_IGNORE_OPTION)
 281 # Multiple by 4 the timeout numbers
 282 JTREG_TIMEOUT_OPTION =  -timeoutFactor:4
 283 JTREG_BASIC_OPTIONS += $(JTREG_TIMEOUT_OPTION)
 284 # Set the max memory for jtreg control vm
 285 JTREG_MEMORY_OPTION = -J-Xmx512m
 286 JTREG_BASIC_OPTIONS += $(JTREG_MEMORY_OPTION)
 287 # Add any extra options
 288 JTREG_BASIC_OPTIONS += $(EXTRA_JTREG_OPTIONS)
 289 # Set other vm and test options
 290 JTREG_TEST_OPTIONS = $(JAVA_ARGS:%=-javaoptions:%) $(JAVA_VM_ARGS:%=-vmoption:%)
 291 # Set the GC options for test vms
 292 #JTREG_GC_OPTION = -vmoption:-XX:+UseSerialGC
 293 #JTREG_TEST_OPTIONS += $(JTREG_GC_OPTION)
 294 # Set the max memory for jtreg target test vms
 295 JTREG_TESTVM_MEMORY_OPTION = -vmoption:-Xmx512m
 296 JTREG_TEST_OPTIONS += $(JTREG_TESTVM_MEMORY_OPTION)
 297 
 298 # Set extra options while make test
 299 # for example: make test PRODUCT_HOME=`pwd`/build/linux-x86_64-normal-server-slowdebug/images/j2sdk-image JT_HOME=/vmfarm/tools/jtreg4.1 JTREG_TEST_EXTRA_OPTIONS=-vmoption:-XX:+EnableJFR TEST=jdk_jfr
 300 JTREG_TEST_OPTIONS += $(JTREG_TEST_EXTRA_OPTIONS)
 301 
 302 # Make sure jtreg exists
 303 $(JTREG): $(JT_HOME)
 304 
 305 # Run jtreg
 306 jtreg_tests: prep $(PRODUCT_HOME) $(JTREG)
 307         (                                                                    \
 308           ( JT_HOME=$(shell $(GETMIXEDPATH) "$(JT_HOME)");                   \
 309             export JT_HOME;                                                  \
 310             $(shell $(GETMIXEDPATH) "$(JTREG)")                              \
 311               $(JTREG_BASIC_OPTIONS)                                         \
 312               -r:$(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)/JTreport")  \
 313               -w:$(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)/JTwork")    \
 314               -jdk:$(shell $(GETMIXEDPATH) "$(PRODUCT_HOME)")                \
 315               $(JTREG_EXCLUSIONS)                                            \
 316               $(JTREG_TEST_OPTIONS)                                          \
 317               $(TEST_SELECTION)                                                    \
 318           ) ;                                                                \
 319           $(BUNDLE_UP_AND_EXIT)                                              \
 320         ) 2>&1 | $(TEE) $(ABS_TEST_OUTPUT_DIR)/output.txt ; $(TESTEXIT)
< prev index next >