< prev index next >

test/failure_handler/Makefile

Print this page
rev 2291 : 8168414: Various timeouthandler fixes


  77                 -d ${CLASSES_DIR}                                                                        \
  78         ${SOURCES}
  79         "${JAVA_HOME}"/bin/jar cf "${TARGET_JAR}" -C "${CLASSES_DIR}" .
  80         "${JAVA_HOME}"/bin/jar uf "${TARGET_JAR}" -C "${CONF_DIR}" .
  81 
  82 #
  83 # Use JTREG_TEST_OPTS for test VM options
  84 # Use JTREG_TESTS for jtreg tests parameter
  85 #
  86 test: require_env build
  87         rm -rf "${RUN_DIR}"
  88         mkdir -p "${RUN_DIR}"
  89         "${JTREG_HOME}"/bin/jtreg                                               \
  90         -jdk:"${JAVA_HOME}"                                                 \
  91         ${JTREG_TEST_OPTS}                                                  \
  92         -timeout:0.1 -va -retain:all                                        \
  93         -noreport                                                           \
  94         -agentvm                                                            \
  95         -thd:"${TARGET_JAR}"                                                \
  96         -th:jdk.test.failurehandler.jtreg.GatherProcessInfoTimeoutHandler   \

  97         -od:"${TARGET_JAR}"                                                 \
  98         -o:jdk.test.failurehandler.jtreg.GatherDiagnosticInfoObserver       \
  99         -w:"${RUN_DIR}/JTwork"                                              \
 100         -r:"${RUN_DIR}/JTreport"                                            \
 101         $(if ${JTREG_TESTS}, ${JTREG_TESTS}, test)                          \
 102         && false || true
 103 
 104 debug: JTREG_TEST_OPTS += "-J-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005'"
 105 debug: test
 106 
 107 require_env:
 108         $(call check_defined, JAVA_HOME)
 109         $(call check_defined, JTREG_HOME)
 110 
 111 clean:
 112         rm -rf "${BUILD_DIR}" "${RUN_DIR}"
 113 
 114 build: classes native
 115 
 116 .PHONY: all build classes native test require_env clean


  77                 -d ${CLASSES_DIR}                                                                        \
  78         ${SOURCES}
  79         "${JAVA_HOME}"/bin/jar cf "${TARGET_JAR}" -C "${CLASSES_DIR}" .
  80         "${JAVA_HOME}"/bin/jar uf "${TARGET_JAR}" -C "${CONF_DIR}" .
  81 
  82 #
  83 # Use JTREG_TEST_OPTS for test VM options
  84 # Use JTREG_TESTS for jtreg tests parameter
  85 #
  86 test: require_env build
  87         rm -rf "${RUN_DIR}"
  88         mkdir -p "${RUN_DIR}"
  89         "${JTREG_HOME}"/bin/jtreg                                           \
  90         -jdk:"${JAVA_HOME}"                                                 \
  91         ${JTREG_TEST_OPTS}                                                  \
  92         -timeout:0.1 -va -retain:all                                        \
  93         -noreport                                                           \
  94         -agentvm                                                            \
  95         -thd:"${TARGET_JAR}"                                                \
  96         -th:jdk.test.failurehandler.jtreg.GatherProcessInfoTimeoutHandler   \
  97         -thtimeout:0                                                        \
  98         -od:"${TARGET_JAR}"                                                 \
  99         -o:jdk.test.failurehandler.jtreg.GatherDiagnosticInfoObserver       \
 100         -w:"${RUN_DIR}/JTwork"                                              \
 101         -r:"${RUN_DIR}/JTreport"                                            \
 102         $(if ${JTREG_TESTS}, ${JTREG_TESTS}, test)                          \
 103         && false || true
 104 
 105 debug: JTREG_TEST_OPTS += "-J-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005'"
 106 debug: test
 107 
 108 require_env:
 109         $(call check_defined, JAVA_HOME)
 110         $(call check_defined, JTREG_HOME)
 111 
 112 clean:
 113         rm -rf "${BUILD_DIR}" "${RUN_DIR}"
 114 
 115 build: classes native
 116 
 117 .PHONY: all build classes native test require_env clean
< prev index next >