1 #
   2 # Copyright (c) 1995, 2011, 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
  23 # questions.
  24 #
  25 
  26 #
  27 # Makefile to run various jdk tests
  28 #
  29 
  30 # Empty these to get rid of some default rules
  31 .SUFFIXES:
  32 .SUFFIXES: .java
  33 CO=
  34 GET=
  35 
  36 # Utilities used
  37 AWK       = awk
  38 CAT       = cat
  39 CD        = cd
  40 CHMOD     = chmod
  41 CP        = cp
  42 CUT       = cut
  43 DIRNAME   = dirname
  44 ECHO      = echo
  45 EGREP     = egrep
  46 EXPAND    = expand
  47 FIND      = find
  48 MKDIR     = mkdir
  49 PWD       = pwd
  50 SED       = sed
  51 SORT      = sort
  52 TEE       = tee
  53 UNAME     = uname
  54 UNIQ      = uniq
  55 WC        = wc
  56 ZIP       = zip
  57 
  58 # Get OS name from uname
  59 UNAME_S := $(shell $(UNAME) -s)
  60 
  61 # Commands to run on paths to make mixed paths for java on windows
  62 GETMIXEDPATH=$(ECHO)
  63 
  64 # Location of developer shared files
  65 SLASH_JAVA = /java
  66 
  67 # Platform specific settings
  68 ifeq ($(UNAME_S), SunOS)
  69   OS_NAME     = solaris
  70   OS_ARCH    := $(shell $(UNAME) -p)
  71   OS_VERSION := $(shell $(UNAME) -r)
  72 endif
  73 ifeq ($(UNAME_S), Linux)
  74   OS_NAME     = linux
  75   OS_ARCH    := $(shell $(UNAME) -m)
  76   # Check for unknown arch, try uname -p if uname -m says unknown
  77   ifeq ($(OS_ARCH),unknown)
  78     OS_ARCH    := $(shell $(UNAME) -p)
  79   endif
  80   OS_VERSION := $(shell $(UNAME) -r)
  81 endif
  82 ifeq ($(OS_NAME),)
  83   OS_NAME = windows
  84   # GNU Make or MKS overrides $(PROCESSOR_ARCHITECTURE) to always
  85   # return "x86". Use the first word of $(PROCESSOR_IDENTIFIER) instead.
  86   ifeq ($(PROCESSOR_IDENTIFIER),)
  87     PROC_ARCH:=$(shell $(UNAME) -m)
  88   else
  89     PROC_ARCH:=$(word 1, $(PROCESSOR_IDENTIFIER))
  90   endif
  91   OS_ARCH:=$(PROC_ARCH)
  92   SLASH_JAVA = J:
  93   EXESUFFIX = .exe
  94   # These need to be different depending on MKS or CYGWIN
  95   ifeq ($(findstring cygdrive,$(shell ($(CD) C:/ && $(PWD)))), )
  96     GETMIXEDPATH  = dosname -s
  97     OS_VERSION   := $(shell $(UNAME) -r)
  98   else
  99     GETMIXEDPATH  = cygpath -m -s
 100     OS_VERSION   := $(shell $(UNAME) -s | $(CUT) -d'-' -f2)
 101   endif
 102 endif
 103 
 104 # Only want major and minor numbers from os version
 105 OS_VERSION := $(shell $(ECHO) "$(OS_VERSION)" | $(CUT) -d'.' -f1,2)
 106 
 107 # Name to use for x86_64 arch (historically amd64, but should change someday)
 108 OS_ARCH_X64_NAME:=amd64
 109 #OS_ARCH_X64_NAME:=x64
 110 
 111 # Alternate arch names (in case this arch is known by a second name)
 112 #   PROBLEM_LISTS may use either name.
 113 OS_ARCH2-amd64:=x64
 114 #OS_ARCH2-x64:=amd64
 115 
 116 # Try and use the arch names consistently
 117 OS_ARCH:=$(patsubst x64,$(OS_ARCH_X64_NAME),$(OS_ARCH))
 118 OS_ARCH:=$(patsubst X64,$(OS_ARCH_X64_NAME),$(OS_ARCH))
 119 OS_ARCH:=$(patsubst AMD64,$(OS_ARCH_X64_NAME),$(OS_ARCH))
 120 OS_ARCH:=$(patsubst amd64,$(OS_ARCH_X64_NAME),$(OS_ARCH))
 121 OS_ARCH:=$(patsubst x86_64,$(OS_ARCH_X64_NAME),$(OS_ARCH))
 122 OS_ARCH:=$(patsubst 8664,$(OS_ARCH_X64_NAME),$(OS_ARCH))
 123 OS_ARCH:=$(patsubst EM64T,$(OS_ARCH_X64_NAME),$(OS_ARCH))
 124 OS_ARCH:=$(patsubst em64t,$(OS_ARCH_X64_NAME),$(OS_ARCH))
 125 OS_ARCH:=$(patsubst intel64,$(OS_ARCH_X64_NAME),$(OS_ARCH))
 126 OS_ARCH:=$(patsubst Intel64,$(OS_ARCH_X64_NAME),$(OS_ARCH))
 127 OS_ARCH:=$(patsubst INTEL64,$(OS_ARCH_X64_NAME),$(OS_ARCH))
 128 OS_ARCH:=$(patsubst IA64,ia64,$(OS_ARCH))
 129 OS_ARCH:=$(patsubst X86,i586,$(OS_ARCH))
 130 OS_ARCH:=$(patsubst x86,i586,$(OS_ARCH))
 131 OS_ARCH:=$(patsubst i386,i586,$(OS_ARCH))
 132 OS_ARCH:=$(patsubst i486,i586,$(OS_ARCH))
 133 OS_ARCH:=$(patsubst i686,i586,$(OS_ARCH))
 134 OS_ARCH:=$(patsubst 386,i586,$(OS_ARCH))
 135 OS_ARCH:=$(patsubst 486,i586,$(OS_ARCH))
 136 OS_ARCH:=$(patsubst 586,i586,$(OS_ARCH))
 137 OS_ARCH:=$(patsubst 686,i586,$(OS_ARCH))
 138 
 139 # Default  ARCH_DATA_MODEL settings
 140 ARCH_DATA_MODEL-i586 = 32
 141 ARCH_DATA_MODEL-$(OS_ARCH_X64_NAME) = 64
 142 ARCH_DATA_MODEL-ia64 = 64
 143 ARCH_DATA_MODEL-sparc = 32
 144 ARCH_DATA_MODEL-sparcv9 = 64
 145 
 146 # If ARCH_DATA_MODEL is not defined, try and pick a reasonable default
 147 ifndef ARCH_DATA_MODEL
 148   ARCH_DATA_MODEL:=$(ARCH_DATA_MODEL-$(OS_ARCH))
 149 endif
 150 ifndef ARCH_DATA_MODEL
 151   ARCH_DATA_MODEL=32
 152 endif
 153 
 154 # Platform directory name
 155 PLATFORM_OS = $(OS_NAME)-$(OS_ARCH)
 156 
 157 # Check ARCH_DATA_MODEL, adjust OS_ARCH accordingly on solaris
 158 ARCH_DATA_MODEL_ERROR= \
 159   ARCH_DATA_MODEL=$(ARCH_DATA_MODEL) cannot be used with $(PLATFORM_OS)
 160 ifeq ($(ARCH_DATA_MODEL),64)
 161   ifeq ($(PLATFORM_OS),solaris-i586)
 162     OS_ARCH=$(OS_ARCH_X64_NAME)
 163   endif
 164   ifeq ($(PLATFORM_OS),solaris-sparc)
 165     OS_ARCH=sparcv9
 166   endif
 167   ifeq ($(OS_ARCH),i586)
 168     x:=$(warning "WARNING: $(ARCH_DATA_MODEL_ERROR)")
 169   endif
 170   ifeq ($(OS_ARCH),sparc)
 171     x:=$(warning "WARNING: $(ARCH_DATA_MODEL_ERROR)")
 172   endif
 173 else
 174   ifeq ($(ARCH_DATA_MODEL),32)
 175     ifeq ($(OS_ARCH),$(OS_ARCH_X64_NAME))
 176       x:=$(warning "WARNING: $(ARCH_DATA_MODEL_ERROR)")
 177     endif
 178     ifeq ($(OS_ARCH),ia64)
 179       x:=$(warning "WARNING: $(ARCH_DATA_MODEL_ERROR)")
 180     endif
 181     ifeq ($(OS_ARCH),sparcv9)
 182       x:=$(warning "WARNING: $(ARCH_DATA_MODEL_ERROR)")
 183     endif
 184   else
 185     x:=$(warning "WARNING: $(ARCH_DATA_MODEL_ERROR)")
 186   endif
 187 endif
 188 
 189 # Alternate OS_ARCH name (defaults to OS_ARCH)
 190 OS_ARCH2:=$(OS_ARCH2-$(OS_ARCH))
 191 ifeq ($(OS_ARCH2),)
 192   OS_ARCH2:=$(OS_ARCH)
 193 endif
 194 
 195 # Root of this test area (important to use full paths in some places)
 196 TEST_ROOT := $(shell $(PWD))
 197 
 198 # Root of all test results
 199 ifdef ALT_OUTPUTDIR
 200   ABS_OUTPUTDIR = $(ALT_OUTPUTDIR)
 201 else
 202   ABS_OUTPUTDIR = $(TEST_ROOT)/../build/$(PLATFORM_OS)
 203 endif
 204 ABS_PLATFORM_BUILD_ROOT = $(ABS_OUTPUTDIR)
 205 ABS_TEST_OUTPUT_DIR := $(ABS_PLATFORM_BUILD_ROOT)/testoutput/$(UNIQUE_DIR)
 206 
 207 # Expect JPRT to set PRODUCT_HOME (the product or jdk in this case to test)
 208 ifndef PRODUCT_HOME
 209   # Try to use j2sdk-image if it exists
 210   ABS_JDK_IMAGE = $(ABS_PLATFORM_BUILD_ROOT)/j2sdk-image
 211   PRODUCT_HOME :=                                       \
 212     $(shell                                             \
 213       if [ -d $(ABS_JDK_IMAGE) ] ; then                 \
 214          $(ECHO) "$(ABS_JDK_IMAGE)";                    \
 215        else                                             \
 216          $(ECHO) "$(ABS_PLATFORM_BUILD_ROOT)";          \
 217        fi)
 218   PRODUCT_HOME := $(PRODUCT_HOME)
 219 endif
 220 
 221 # Expect JPRT to set JPRT_PRODUCT_ARGS (e.g. -server etc.)
 222 #   Should be passed into 'java' only.
 223 #   Could include: -d64 -server -client OR any java option
 224 ifdef JPRT_PRODUCT_ARGS
 225   JAVA_ARGS = $(JPRT_PRODUCT_ARGS)
 226 endif
 227 
 228 # Expect JPRT to set JPRT_PRODUCT_VM_ARGS (e.g. -Xcomp etc.)
 229 #   Should be passed into anything running the vm (java, javac, javadoc, ...).
 230 ifdef JPRT_PRODUCT_VM_ARGS
 231   JAVA_VM_ARGS = $(JPRT_PRODUCT_VM_ARGS)
 232 endif
 233 
 234 # Check JAVA_ARGS arguments based on ARCH_DATA_MODEL etc.
 235 ifeq ($(OS_NAME),solaris)
 236   D64_ERROR_MESSAGE=Mismatch between ARCH_DATA_MODEL=$(ARCH_DATA_MODEL) and use of -d64 in JAVA_ARGS=$(JAVA_ARGS)
 237   ifeq ($(ARCH_DATA_MODEL),32)
 238     ifneq ($(findstring -d64,$(JAVA_ARGS)),)
 239       x:=$(warning "WARNING: $(D64_ERROR_MESSAGE)")
 240     endif
 241   endif
 242   ifeq ($(ARCH_DATA_MODEL),64)
 243     ifeq ($(findstring -d64,$(JAVA_ARGS)),)
 244       x:=$(warning "WARNING: $(D64_ERROR_MESSAGE)")
 245     endif
 246   endif
 247 endif
 248 
 249 # Macro to run make and set the shared library permissions
 250 define SharedLibraryPermissions
 251 $(MAKE) SHARED_LIBRARY_DIR=$1 UNIQUE_DIR=$@ shared_library_permissions
 252 endef
 253 
 254 # Expect JPRT to set JPRT_ARCHIVE_BUNDLE (path to zip bundle for results)
 255 ARCHIVE_BUNDLE = $(ABS_TEST_OUTPUT_DIR)/ARCHIVE_BUNDLE.zip
 256 ifdef JPRT_ARCHIVE_BUNDLE
 257   ARCHIVE_BUNDLE = $(JPRT_ARCHIVE_BUNDLE)
 258 endif
 259 
 260 # How to create the test bundle (pass or fail, we want to create this)
 261 #   Follow command with ";$(BUNDLE_UP_AND_EXIT)", so it always gets executed.
 262 ZIP_UP_RESULTS = ( $(MKDIR) -p `$(DIRNAME) $(ARCHIVE_BUNDLE)`     \
 263                    && $(CD) $(ABS_TEST_OUTPUT_DIR)             \
 264                    && $(ZIP) -q -r $(ARCHIVE_BUNDLE) . )
 265 SUMMARY_TXT = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/JTreport/text/summary.txt
 266 STATS_TXT_NAME = Stats.txt
 267 STATS_TXT = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/$(STATS_TXT_NAME)
 268 RUNLIST   = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/runlist.txt
 269 PASSLIST  = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/passlist.txt
 270 FAILLIST  = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/faillist.txt
 271 EXITCODE  = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/exitcode.txt
 272 
 273 TESTEXIT = \
 274   if [ ! -s $(EXITCODE) ] ; then \
 275     $(ECHO) "ERROR: EXITCODE file not filled in."; \
 276     $(ECHO) "1" > $(EXITCODE); \
 277   fi ; \
 278   testExitCode=`$(CAT) $(EXITCODE)`; \
 279   $(ECHO) "EXIT CODE: $${testExitCode}"; \
 280   exit $${testExitCode}
 281 
 282 BUNDLE_UP_AND_EXIT = \
 283 ( \
 284   jtregExitCode=$$? && \
 285   _summary="$(SUMMARY_TXT)"; \
 286   $(RM) -f $(STATS_TXT) $(RUNLIST) $(PASSLIST) $(FAILLIST) $(EXITCODE); \
 287   $(ECHO) "$${jtregExitCode}" > $(EXITCODE); \
 288   if [ -r "$${_summary}" ] ; then \
 289     $(ECHO) "Summary: $(UNIQUE_DIR)" > $(STATS_TXT); \
 290     $(EXPAND) $${_summary} | $(EGREP) -v ' Not run\.' > $(RUNLIST); \
 291     $(EGREP) ' Passed\.' $(RUNLIST) \
 292       | $(EGREP) -v ' Error\.' \
 293       | $(EGREP) -v ' Failed\.' > $(PASSLIST); \
 294     ( $(EGREP) ' Failed\.' $(RUNLIST); \
 295       $(EGREP) ' Error\.' $(RUNLIST); \
 296       $(EGREP) -v ' Passed\.' $(RUNLIST) ) \
 297       | $(SORT) | $(UNIQ) > $(FAILLIST); \
 298     if [ $${jtregExitCode} != 0 -o -s $(FAILLIST) ] ; then \
 299       $(EXPAND) $(FAILLIST) \
 300         | $(CUT) -d' ' -f1 \
 301         | $(SED) -e 's@^@FAILED: @' >> $(STATS_TXT); \
 302       if [ $${jtregExitCode} = 0 ] ; then \
 303         jtregExitCode=1; \
 304       fi; \
 305     fi; \
 306     runc="`$(CAT) $(RUNLIST)      | $(WC) -l | $(AWK) '{print $$1;}'`"; \
 307     passc="`$(CAT) $(PASSLIST)    | $(WC) -l | $(AWK) '{print $$1;}'`"; \
 308     failc="`$(CAT) $(FAILLIST)    | $(WC) -l | $(AWK) '{print $$1;}'`"; \
 309     exclc="`$(CAT) $(EXCLUDELIST) | $(WC) -l | $(AWK) '{print $$1;}'`"; \
 310     $(ECHO) "TEST STATS: name=$(UNIQUE_DIR)  run=$${runc}  pass=$${passc}  fail=$${failc}  excluded=$${exclc}" \
 311       >> $(STATS_TXT); \
 312   else \
 313     $(ECHO) "Missing file: $${_summary}" >> $(STATS_TXT); \
 314   fi; \
 315   $(CAT) $(STATS_TXT); \
 316   $(ZIP_UP_RESULTS) ; \
 317   $(TESTEXIT) \
 318 )
 319 
 320 ################################################################
 321 
 322 # Default make rule (runs jtreg_tests)
 323 all: jtreg_tests
 324         @$(ECHO) "Testing completed successfully"
 325 
 326 # Prep for output
 327 prep: clean
 328         @$(MKDIR) -p $(ABS_TEST_OUTPUT_DIR)
 329         @$(MKDIR) -p `$(DIRNAME) $(ARCHIVE_BUNDLE)`
 330 
 331 # Cleanup
 332 clean:
 333         $(RM) -r $(ABS_TEST_OUTPUT_DIR)
 334         $(RM) $(ARCHIVE_BUNDLE)
 335 
 336 ################################################################
 337 
 338 # jtreg tests
 339 
 340 # Expect JT_HOME to be set for jtreg tests. (home for jtreg)
 341 ifndef JT_HOME
 342   JT_HOME = $(SLASH_JAVA)/re/jtreg/4.0/promoted/latest/binaries/jtreg
 343   ifdef JPRT_JTREG_HOME
 344     JT_HOME = $(JPRT_JTREG_HOME)
 345   endif
 346 endif
 347 
 348 # Expect JPRT to set TESTDIRS to the jtreg test dirs
 349 ifndef TESTDIRS
 350   TESTDIRS = demo
 351 endif
 352 
 353 # Samevm settings (default is false)
 354 ifndef USE_JTREG_SAMEVM
 355   USE_JTREG_SAMEVM=false
 356 endif
 357 # With samevm, you cannot use -javaoptions?
 358 ifeq ($(USE_JTREG_SAMEVM),true)
 359   JTREG_SAMEVM_OPTION = -samevm
 360   EXTRA_JTREG_OPTIONS += $(JTREG_SAMEVM_OPTION) $(JAVA_ARGS) $(JAVA_ARGS:%=-vmoption:%)
 361   JTREG_TEST_OPTIONS = $(JAVA_VM_ARGS:%=-vmoption:%)
 362 else
 363   JTREG_TEST_OPTIONS = $(JAVA_ARGS:%=-javaoptions:%) $(JAVA_VM_ARGS:%=-vmoption:%)
 364 endif
 365 
 366 # Some tests annoy me and fail frequently
 367 PROBLEM_LIST=ProblemList.txt
 368 PROBLEM_LISTS=$(PROBLEM_LIST) $(wildcard closed/$(PROBLEM_LIST))
 369 EXCLUDELIST=$(ABS_TEST_OUTPUT_DIR)/excludelist.txt
 370 
 371 # Create exclude list for this platform and arch
 372 ifdef NO_EXCLUDES
 373 $(EXCLUDELIST): $(PROBLEM_LISTS) $(TESTDIRS)
 374         @$(ECHO) "NOTHING_EXCLUDED" > $@
 375 else
 376 $(EXCLUDELIST): $(PROBLEM_LISTS) $(TESTDIRS)
 377         @$(RM) $@ $@.temp1 $@.temp2
 378         @(($(CAT) $(PROBLEM_LISTS) | $(EGREP) -- '$(OS_NAME)-all'          ) ;\
 379           ($(CAT) $(PROBLEM_LISTS) | $(EGREP) -- '$(PLATFORM_OS)'          ) ;\
 380           ($(CAT) $(PROBLEM_LISTS) | $(EGREP) -- '$(OS_NAME)-$(OS_ARCH2)'  ) ;\
 381           ($(CAT) $(PROBLEM_LISTS) | $(EGREP) -- '$(OS_NAME)-$(OS_VERSION)') ;\
 382           ($(CAT) $(PROBLEM_LISTS) | $(EGREP) -- 'generic-$(OS_ARCH)'      ) ;\
 383           ($(CAT) $(PROBLEM_LISTS) | $(EGREP) -- 'generic-$(OS_ARCH2)'     ) ;\
 384           ($(CAT) $(PROBLEM_LISTS) | $(EGREP) -- 'generic-all'             ) ;\
 385           ($(ECHO) "#") ;\
 386         ) | $(SED) -e 's@^[\ ]*@@' \
 387           | $(EGREP) -v '^#' > $@.temp1
 388         @for tdir in $(TESTDIRS) ; do \
 389           ( ( $(CAT) $@.temp1 | $(EGREP) "^$${tdir}" ) ; $(ECHO) "#" ) >> $@.temp2 ; \
 390         done
 391         @$(ECHO) "# at least one line" >> $@.temp2
 392         @( $(EGREP) -v '^#' $@.temp2 ; true ) > $@
 393         @$(ECHO) "Excluding list contains `$(EXPAND) $@ | $(WC) -l` items"
 394 endif
 395 
 396 # Select list of directories that exist
 397 define TestDirs
 398 $(foreach i,$1,$(wildcard ${i})) $(foreach i,$1,$(wildcard closed/${i}))
 399 endef
 400 # Running batches of tests with or without samevm
 401 define RunSamevmBatch
 402 $(ECHO) "Running tests in samevm mode: $?"
 403 $(MAKE) TESTDIRS="$?" USE_JTREG_SAMEVM=true  UNIQUE_DIR=$@ jtreg_tests
 404 endef
 405 define RunOthervmBatch
 406 $(ECHO) "Running tests in othervm mode: $?"
 407 $(MAKE) TESTDIRS="$?" USE_JTREG_SAMEVM=false UNIQUE_DIR=$@ jtreg_tests
 408 endef
 409 define SummaryInfo
 410 $(ECHO) "########################################################"
 411 $(CAT) $(?:%=$(ABS_TEST_OUTPUT_DIR)/%/$(STATS_TXT_NAME))
 412 $(ECHO) "########################################################"
 413 endef
 414 
 415 # ------------------------------------------------------------------
 416 
 417 # Batches of tests (somewhat arbitrary assigments to jdk_* targets)
 418 JDK_ALL_TARGETS =
 419 
 420 # Stable othervm testruns (minus items from PROBLEM_LIST)
 421 #   Using samevm has problems, and doesn't help performance as much as others.
 422 JDK_ALL_TARGETS += jdk_awt
 423 jdk_awt: $(call TestDirs, com/sun/awt java/awt sun/awt)
 424         $(call RunOthervmBatch)
 425 
 426 # Stable samevm testruns (minus items from PROBLEM_LIST)
 427 JDK_ALL_TARGETS += jdk_beans1
 428 jdk_beans1: $(call TestDirs, \
 429             java/beans/beancontext java/beans/PropertyChangeSupport \
 430             java/beans/Introspector java/beans/Performance \
 431             java/beans/VetoableChangeSupport java/beans/Statement)
 432         $(call RunSamevmBatch)
 433 
 434 # Stable othervm testruns (minus items from PROBLEM_LIST)
 435 #   Using samevm has serious problems with these tests
 436 JDK_ALL_TARGETS += jdk_beans2
 437 jdk_beans2: $(call TestDirs, \
 438             java/beans/Beans java/beans/EventHandler java/beans/XMLDecoder \
 439             java/beans/PropertyEditor)
 440         $(call RunOthervmBatch)
 441 
 442 # Stable othervm testruns (minus items from PROBLEM_LIST)
 443 #   Using samevm has serious problems with these tests
 444 JDK_ALL_TARGETS += jdk_beans3
 445 jdk_beans3: $(call TestDirs, java/beans/XMLEncoder)
 446         $(call RunOthervmBatch)
 447 
 448 # All beans tests
 449 jdk_beans: jdk_beans1 jdk_beans2 jdk_beans3
 450         @$(SummaryInfo)
 451 
 452 # Stable samevm testruns (minus items from PROBLEM_LIST)
 453 JDK_ALL_TARGETS += jdk_io
 454 jdk_io: $(call TestDirs, java/io)
 455         $(call RunSamevmBatch)
 456 
 457 # Stable samevm testruns (minus items from PROBLEM_LIST)
 458 JDK_ALL_TARGETS += jdk_lang
 459 jdk_lang: $(call TestDirs, java/lang)
 460         $(call RunSamevmBatch)
 461 
 462 # Stable othervm testruns (minus items from PROBLEM_LIST)
 463 #   Using samevm has serious problems with these tests
 464 JDK_ALL_TARGETS += jdk_management1
 465 jdk_management1: $(call TestDirs, javax/management)
 466         $(call RunOthervmBatch)
 467 
 468 # Stable othervm testruns (minus items from PROBLEM_LIST)
 469 #   Using samevm has serious problems with these tests
 470 JDK_ALL_TARGETS += jdk_management2
 471 jdk_management2: $(call TestDirs, com/sun/jmx com/sun/management sun/management)
 472         $(call RunOthervmBatch)
 473 
 474 # All management tests
 475 jdk_management: jdk_management1 jdk_management2
 476         @$(SummaryInfo)
 477 
 478 # Stable samevm testruns (minus items from PROBLEM_LIST)
 479 JDK_ALL_TARGETS += jdk_math
 480 jdk_math: $(call TestDirs, java/math)
 481         $(call RunSamevmBatch)
 482 
 483 # Stable samevm testruns (minus items from PROBLEM_LIST)
 484 JDK_ALL_TARGETS += jdk_misc
 485 jdk_misc: $(call TestDirs, \
 486           demo javax/imageio javax/naming javax/print javax/script \
 487           javax/smartcardio javax/sound com/sun/java com/sun/jndi \
 488           com/sun/org com/sun/xml sun/misc sun/pisces)
 489         $(call RunSamevmBatch)
 490 
 491 # Stable samevm testruns (minus items from PROBLEM_LIST)
 492 JDK_ALL_TARGETS += jdk_net
 493 jdk_net: $(call TestDirs, com/sun/net java/net sun/net)
 494         $(call RunSamevmBatch)
 495 
 496 # Stable samevm testruns (minus items from PROBLEM_LIST)
 497 JDK_ALL_TARGETS += jdk_nio1
 498 jdk_nio1: $(call TestDirs, java/nio/file)
 499         $(call RunSamevmBatch)
 500 
 501 # Stable samevm testruns (minus items from PROBLEM_LIST)
 502 JDK_ALL_TARGETS += jdk_nio2
 503 jdk_nio2: $(call TestDirs, java/nio/Buffer java/nio/ByteOrder \
 504           java/nio/channels java/nio/BufferPoolMXBean java/nio/MappedByteBuffer)
 505         $(call SharedLibraryPermissions,java/nio/channels)
 506         $(call RunSamevmBatch)
 507 
 508 # Stable samevm testruns (minus items from PROBLEM_LIST)
 509 JDK_ALL_TARGETS += jdk_nio3
 510 jdk_nio3: $(call TestDirs, com/sun/nio sun/nio)
 511         $(call RunSamevmBatch)
 512 
 513 # All nio tests
 514 jdk_nio: jdk_nio1 jdk_nio2 jdk_nio3
 515         @$(SummaryInfo)
 516 
 517 # Stable othervm testruns (minus items from PROBLEM_LIST)
 518 #   Using samevm has serious problems with these tests
 519 JDK_ALL_TARGETS += jdk_rmi
 520 jdk_rmi: $(call TestDirs, java/rmi javax/rmi sun/rmi)
 521         $(call RunOthervmBatch)
 522 
 523 # Stable samevm testruns (minus items from PROBLEM_LIST)
 524 JDK_ALL_TARGETS += jdk_security1
 525 jdk_security1: $(call TestDirs, java/security)
 526         $(call RunSamevmBatch)
 527 
 528 # Stable othervm testruns (minus items from PROBLEM_LIST)
 529 #   Using samevm has serious problems with these tests
 530 JDK_ALL_TARGETS += jdk_security2
 531 jdk_security2: $(call TestDirs, javax/crypto com/sun/crypto)
 532         $(call RunOthervmBatch)
 533 
 534 # Stable othervm testruns (minus items from PROBLEM_LIST)
 535 #   Using samevm has serious problems with these tests
 536 JDK_ALL_TARGETS += jdk_security3
 537 jdk_security3: $(call TestDirs, com/sun/security lib/security \
 538                javax/security sun/security)
 539         $(call SharedLibraryPermissions,sun/security)
 540         $(call RunOthervmBatch)
 541 
 542 # All security tests
 543 jdk_security: jdk_security1 jdk_security2 jdk_security3
 544         @$(SummaryInfo)
 545 
 546 # Stable othervm testruns (minus items from PROBLEM_LIST)
 547 #   Using samevm has problems, and doesn't help performance as much as others.
 548 JDK_ALL_TARGETS += jdk_swing
 549 jdk_swing: $(call TestDirs, javax/swing sun/java2d)
 550         $(call RunOthervmBatch)
 551 
 552 # Stable samevm testruns (minus items from PROBLEM_LIST)
 553 JDK_ALL_TARGETS += jdk_text
 554 jdk_text: $(call TestDirs, java/text sun/text)
 555         $(call RunSamevmBatch)
 556 
 557 # Stable samevm testruns (minus items from PROBLEM_LIST)
 558 JDK_ALL_TARGETS += jdk_tools1
 559 jdk_tools1: $(call TestDirs, com/sun/jdi)
 560         $(call RunSamevmBatch)
 561 
 562 # Stable othervm testruns (minus items from PROBLEM_LIST)
 563 #   Using samevm has serious problems with these tests
 564 JDK_ALL_TARGETS += jdk_tools2
 565 jdk_tools2: $(call TestDirs, \
 566             com/sun/tools sun/jvmstat sun/tools tools vm \
 567             com/sun/servicetag com/sun/tracing)
 568         $(call SharedLibraryPermissions,tools/launcher)
 569         $(call RunSamevmBatch)
 570 
 571 # All tools tests
 572 jdk_tools: jdk_tools1 jdk_tools2
 573         @$(SummaryInfo)
 574 
 575 # Stable samevm testruns (minus items from PROBLEM_LIST)
 576 JDK_ALL_TARGETS += jdk_util
 577 jdk_util: $(call TestDirs, java/util sun/util)
 578         $(call RunSamevmBatch)
 579 
 580 # ------------------------------------------------------------------
 581 
 582 # Run all tests
 583 FILTER_OUT_LIST=jdk_awt jdk_rmi jdk_swing
 584 JDK_ALL_STABLE_TARGETS := $(filter-out $(FILTER_OUT_LIST), $(JDK_ALL_TARGETS))
 585 jdk_all: $(JDK_ALL_STABLE_TARGETS)
 586         @$(SummaryInfo)
 587 
 588 # These are all phony targets
 589 PHONY_LIST += $(JDK_ALL_TARGETS)
 590 
 591 # ------------------------------------------------------------------
 592 
 593 # Default JTREG to run (win32 script works for everybody)
 594 JTREG = $(JT_HOME)/win32/bin/jtreg
 595 # Add any extra options (samevm etc.)
 596 JTREG_BASIC_OPTIONS += $(EXTRA_JTREG_OPTIONS)
 597 # Only run automatic tests
 598 JTREG_BASIC_OPTIONS += -a
 599 # Always turn on assertions
 600 JTREG_ASSERT_OPTION = -ea -esa
 601 JTREG_BASIC_OPTIONS += $(JTREG_ASSERT_OPTION)
 602 # Report details on all failed or error tests, times too
 603 JTREG_BASIC_OPTIONS += -v:fail,error,time
 604 # Retain all files for failing tests
 605 JTREG_BASIC_OPTIONS += -retain:fail,error
 606 # Ignore tests are not run and completely silent about it
 607 JTREG_IGNORE_OPTION = -ignore:quiet
 608 JTREG_BASIC_OPTIONS += $(JTREG_IGNORE_OPTION)
 609 # Multiple by 4 the timeout numbers
 610 JTREG_TIMEOUT_OPTION =  -timeoutFactor:4
 611 JTREG_BASIC_OPTIONS += $(JTREG_TIMEOUT_OPTION)
 612 # Boost the max memory for jtreg to avoid gc thrashing
 613 JTREG_MEMORY_OPTION = -J-Xmx512m
 614 JTREG_BASIC_OPTIONS += $(JTREG_MEMORY_OPTION)
 615 
 616 # Make sure jtreg exists
 617 $(JTREG): $(JT_HOME)
 618 
 619 # Run jtreg
 620 jtreg_tests: prep $(PRODUCT_HOME) $(JTREG) $(EXCLUDELIST)
 621         @$(EXPAND) $(EXCLUDELIST) \
 622             | $(CUT) -d' ' -f1 \
 623             | $(SED) -e 's@^@Excluding: @'
 624         (                                                                    \
 625           ( JT_HOME=$(shell $(GETMIXEDPATH) "$(JT_HOME)");                   \
 626             export JT_HOME;                                                  \
 627             $(shell $(GETMIXEDPATH) "$(JTREG)")                              \
 628               $(JTREG_BASIC_OPTIONS)                                         \
 629               -r:$(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/JTreport  \
 630               -w:$(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/JTwork    \
 631               -jdk:$(shell $(GETMIXEDPATH) "$(PRODUCT_HOME)")                \
 632               -exclude:$(shell $(GETMIXEDPATH) "$(EXCLUDELIST)")             \
 633               $(JTREG_TEST_OPTIONS)                                          \
 634               $(TESTDIRS)                                                    \
 635           ) ; $(BUNDLE_UP_AND_EXIT)                                          \
 636         ) 2>&1 | $(TEE) $(ABS_TEST_OUTPUT_DIR)/output.txt ; $(TESTEXIT)
 637 
 638 # Rule that may change execute permissions on shared library files.
 639 #  Files in repositories should never have execute permissions, but there
 640 #  are some tests that have pre-built shared libraries, and these windows
 641 #  dll files must have execute permission. Adding execute permission
 642 #  may happen automatically on windows when using certain versions of mercurial
 643 #  but it cannot be guaranteed. And blindly adding execute permission might
 644 #  be seen as a mercurial 'change', so we avoid adding execute permission to
 645 #  repository files. But testing from a plain source tree needs the chmod a+rx.
 646 #  Used on select directories and applying the chmod to all shared libraries
 647 #  not just dll files. On windows, this may not work with MKS if the files
 648 #  were installed with CYGWIN unzip or untar (MKS chmod may not do anything).
 649 #  And with CYGWIN and sshd service, you may need CYGWIN=ntsec for this to work.
 650 #
 651 shared_library_permissions: $(SHARED_LIBRARY_DIR)
 652         if [ ! -d $(TEST_ROOT)/../.hg ] ; then                          \
 653           $(FIND) $< \( -name \*.dll -o -name \*.DLL -o -name \*.so \)  \
 654                 -exec $(CHMOD) a+rx {} \; ;                             \
 655         fi
 656 
 657 PHONY_LIST += jtreg_tests shared_library_permissions
 658 
 659 ################################################################
 660 
 661 # packtest
 662 
 663 # Expect JPRT to set JPRT_PACKTEST_HOME.
 664 PACKTEST_HOME = /net/jprt-web.sfbay.sun.com/jprt/allproducts/packtest
 665 ifdef JPRT_PACKTEST_HOME
 666   PACKTEST_HOME = $(JPRT_PACKTEST_HOME)
 667 endif
 668 
 669 packtest: prep $(PACKTEST_HOME)/ptest $(PRODUCT_HOME)
 670         ( $(CD) $(PACKTEST_HOME) &&            \
 671             $(PACKTEST_HOME)/ptest             \
 672                  -t "$(PRODUCT_HOME)"          \
 673                  $(PACKTEST_STRESS_OPTION)     \
 674                  $(EXTRA_PACKTEST_OPTIONS)     \
 675                  -W $(ABS_TEST_OUTPUT_DIR)     \
 676                  $(JAVA_ARGS:%=-J %)           \
 677                  $(JAVA_VM_ARGS:%=-J %)        \
 678          ) ; $(BUNDLE_UP_AND_EXIT)
 679 
 680 packtest_stress: PACKTEST_STRESS_OPTION=-s
 681 packtest_stress: packtest
 682 
 683 PHONY_LIST += packtest packtest_stress
 684 
 685 ################################################################
 686 
 687 # perftest to collect statistics  
 688 
 689 # Expect JPRT to set JPRT_PACKTEST_HOME.
 690 PERFTEST_HOME = $(TEST_ROOT)/perf
 691 ifdef JPRT_PERFTEST_HOME
 692   PERFTEST_HOME = $(JPRT_PERFTEST_HOME)
 693 endif
 694 
 695 perftest: ( $(PERFTEST_HOME)/perftest          \
 696                  -t $(shell $(GETMIXEDPATH) "$(PRODUCT_HOME)")               \
 697                  -w $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)") \
 698                  -h $(PERFTEST_HOME) \
 699          ) ; $(BUNDLE_UP_AND_EXIT)
 700 
 701 
 702 PHONY_LIST += perftest
 703 
 704 ################################################################
 705 
 706 # vmsqe tests
 707 
 708 # Expect JPRT to set JPRT_VMSQE_HOME.
 709 VMSQE_HOME = /java/sqe/comp/vm/testbase/sqe/vm/current/build/latest/vm
 710 ifdef JPRT_VMSQE_HOME
 711   VMSQE_HOME = $(JPRT_VMSQE_HOME)
 712 endif
 713 
 714 # Expect JPRT to set JPRT_RUNVMSQE_HOME.
 715 RUNVMSQE_HOME = /net/jprt-web.sfbay.sun.com/jprt/allproducts/runvmsqe
 716 ifdef JPRT_RUNVMSQE_HOME
 717   RUNVMSQE_HOME = $(JPRT_RUNVMSQE_HOME)
 718 endif
 719 
 720 # Expect JPRT to set JPRT_TONGA3_HOME.
 721 TONGA3_HOME = /java/sqe//tools/gtee/harness/tonga
 722 ifdef JPRT_TONGA3_HOME
 723   TONGA3_HOME = $(JPRT_TONGA3_HOME)
 724 endif
 725 
 726 RUNVMSQE_BIN = $(RUNVMSQE_HOME)/bin/runvmsqe
 727 
 728 vmsqe_tests: prep $(VMSQE_HOME)/vm $(TONGA3_HOME) $(RUNVMSQE_BIN) $(PRODUCT_HOME)
 729         $(RM) -r $(ABS_TEST_OUTPUT_DIR)/vmsqe
 730         ( $(CD) $(ABS_TEST_OUTPUT_DIR) &&          \
 731             $(RUNVMSQE_BIN)                        \
 732                  -jdk "$(PRODUCT_HOME)"            \
 733                  -o "$(ABS_TEST_OUTPUT_DIR)/vmsqe" \
 734                  -testbase "$(VMSQE_HOME)/vm"      \
 735                  -tonga "$(TONGA3_HOME)"           \
 736                  -tongajdk "$(ALT_BOOTDIR)"        \
 737                  $(JAVA_ARGS)                      \
 738                  $(JAVA_VM_ARGS)                   \
 739                  $(RUNVMSQE_TEST_OPTION)           \
 740                  $(EXTRA_RUNVMSQE_OPTIONS)         \
 741          ) ; $(BUNDLE_UP_AND_EXIT)
 742 
 743 vmsqe_jdwp: RUNVMSQE_TEST_OPTION=-jdwp
 744 vmsqe_jdwp: vmsqe_tests
 745 
 746 vmsqe_jdi: RUNVMSQE_TEST_OPTION=-jdi
 747 vmsqe_jdi: vmsqe_tests
 748 
 749 vmsqe_jdb: RUNVMSQE_TEST_OPTION=-jdb
 750 vmsqe_jdb: vmsqe_tests
 751 
 752 vmsqe_quick-jdi: RUNVMSQE_TEST_OPTION=-quick-jdi
 753 vmsqe_quick-jdi: vmsqe_tests
 754 
 755 vmsqe_sajdi: RUNVMSQE_TEST_OPTION=-sajdi
 756 vmsqe_sajdi: vmsqe_tests
 757 
 758 vmsqe_jvmti: RUNVMSQE_TEST_OPTION=-jvmti
 759 vmsqe_jvmti: vmsqe_tests
 760 
 761 vmsqe_hprof: RUNVMSQE_TEST_OPTION=-hprof
 762 vmsqe_hprof: vmsqe_tests
 763 
 764 vmsqe_monitoring: RUNVMSQE_TEST_OPTION=-monitoring
 765 vmsqe_monitoring: vmsqe_tests
 766 
 767 PHONY_LIST += vmsqe_jdwp vmsqe_jdi vmsqe_jdb vmsqe_quick-jdi vmsqe_sajdi \
 768               vmsqe_jvmti vmsqe_hprof vmsqe_monitoring vmsqe_tests
 769 
 770 ################################################################
 771 
 772 # jck tests
 773 
 774 JCK_WORK_DIR     = $(ABS_TEST_OUTPUT_DIR)/JCKwork
 775 JCK_REPORT_DIR   = $(ABS_TEST_OUTPUT_DIR)/JCKreport
 776 JCK_PROPERTIES   = $(ABS_TEST_OUTPUT_DIR)/jck.properties
 777 JCK_CONFIG       = $(ABS_TEST_OUTPUT_DIR)/jck.config
 778 
 779 JCK_JAVA_EXE     = $(PRODUCT_HOME)/bin/java$(EXESUFFIX)
 780 
 781 JCK_JAVATEST_JAR = $(JCK_HOME)/lib/javatest.jar
 782 JCK_JAVATEST     = $(ALT_BOOTDIR)/bin/java -jar $(JCK_JAVATEST_JAR)
 783 
 784 $(JCK_CONFIG): $(TEST_ROOT)/JCK-$(JCK_BUNDLE_NAME)-$(JCK_RELEASE)-base.jti
 785         $(RM) $@
 786         $(MKDIR) -p $(@D)
 787         $(CP) $< $@
 788 
 789 $(JCK_PROPERTIES): $(PRODUCT_HOME) $(JCK_JAVA_EXE)
 790         $(RM) $@
 791         $(MKDIR) -p $(@D)
 792         $(ECHO) "jck.env.compiler.compRefExecute.cmdAsFile=$(JCK_JAVA_EXE)" >> $@
 793         $(ECHO) "jck.env.compiler.compRefExecute.systemRoot=$(SYSTEMROOT)" >> $@
 794         $(ECHO) "jck.env.compiler.testCompile.testCompileAPImultiJVM.cmdAsFile=$(JCK_JAVA_EXE)" >> $@
 795         $(ECHO) "jck.tests.tests=$(JCK_BUNDLE_TESTDIRS)" >> $@
 796 
 797 jck_tests: prep $(JCK_HOME) $(JCK_PROPERTIES) $(JCK_CONFIG) $(JCK_JAVATEST_JAR)
 798         $(MKDIR) -p $(JCK_WORK_DIR)
 799         ( $(JCK_JAVATEST)                            \
 800                 -verbose:commands,non-pass           \
 801                 -testSuite    $(JCK_HOME)            \
 802                 -workDir      $(JCK_WORK_DIR)        \
 803                 -config       $(JCK_CONFIG)          \
 804                 -set -file    $(JCK_PROPERTIES)      \
 805                 -runtests                            \
 806                 -writeReport  $(JCK_REPORT_DIR)      \
 807         ) ; $(BUNDLE_UP_AND_EXIT)
 808 
 809 PHONY_LIST += jck_tests
 810 
 811 ################################################################
 812 
 813 # jck6 tests
 814 
 815 JCK6_RELEASE = 6b
 816 JCK6_DEFAULT_HOME = $(SLASH_JAVA)/re/jck/$(JCK6_RELEASE)/archive/fcs/binaries
 817 
 818 # Expect JPRT to set JPRT_JCK6COMPILER_HOME.
 819 JCK6COMPILER_HOME = $(JCK6_DEFAULT_HOME)/JCK-compiler-$(JCK6_RELEASE)
 820 ifdef JPRT_JCK6COMPILER_HOME
 821   JCK6COMPILER_HOME = $(JPRT_JCK6COMPILER_HOME)
 822 endif
 823 
 824 # Expect JPRT to set JPRT_JCK6RUNTIME_HOME.
 825 JCK6RUNTIME_HOME = $(JCK6_DEFAULT_HOME)/JCK-runtime-$(JCK6_RELEASE)
 826 ifdef JPRT_JCK6RUNTIME_HOME
 827   JCK6RUNTIME_HOME = $(JPRT_JCK6RUNTIME_HOME)
 828 endif
 829 
 830 # Expect JPRT to set JPRT_JCK6DEVTOOLS_HOME.
 831 JCK6DEVTOOLS_HOME = $(JCK6_DEFAULT_HOME)/JCK-devtools-$(JCK6_RELEASE)
 832 ifdef JPRT_JCK6DEVTOOLS_HOME
 833   JCK6DEVTOOLS_HOME = $(JPRT_JCK6DEVTOOLS_HOME)
 834 endif
 835 
 836 jck6_tests: JCK_HOME=$(JCK6_HOME)
 837 jck6_tests: JCK_RELEASE=$(JCK6_RELEASE)
 838 jck6_tests: jck_tests
 839 
 840 jck6compiler: JCK6_HOME=$(JCK6COMPILER_HOME)
 841 jck6compiler: JCK_BUNDLE_NAME=compiler
 842 jck6compiler: jck6_tests
 843 
 844 jck6compiler_lang: JCK_BUNDLE_TESTDIRS=lang
 845 jck6compiler_lang: jck6compiler
 846 
 847 jck6runtime: JCK6_HOME=$(JCK6RUNTIME_HOME)
 848 jck6runtime: JCK_BUNDLE_NAME=runtime
 849 jck6runtime: jck6_tests
 850 
 851 jck6runtime_lang: JCK_BUNDLE_TESTDIRS=lang
 852 jck6runtime_lang: jck6runtime
 853 
 854 jck6devtools: JCK6_HOME=$(JCK6DEVTOOLS_HOME)
 855 jck6devtools: JCK_BUNDLE_NAME=devtools
 856 jck6devtools: jck6_tests
 857 
 858 jck6devtools_lang: JCK_BUNDLE_TESTDIRS=lang
 859 jck6devtools_lang: jck6devtools
 860 
 861 PHONY_LIST += jck6compiler jck6runtime jck6devtools jck6_tests \
 862               jck6compiler_lang jck6runtime_lang jck6devtools_lang
 863 
 864 ################################################################
 865 
 866 # jck7 tests
 867 
 868 JCK7_RELEASE = 7
 869 JCK7_DEFAULT_HOME = $(SLASH_JAVA)/re/jck/$(JCK7_RELEASE)/archive/fcs/binaries
 870 
 871 # Expect JPRT to set JPRT_JCK7COMPILER_HOME.
 872 JCK7COMPILER_HOME = $(JCK7_DEFAULT_HOME)/JCK-compiler-$(JCK7_RELEASE)
 873 ifdef JPRT_JCK7COMPILER_HOME
 874   JCK7COMPILER_HOME = $(JPRT_JCK7COMPILER_HOME)
 875 endif
 876 
 877 # Expect JPRT to set JPRT_JCK7RUNTIME_HOME.
 878 JCK7RUNTIME_HOME = $(JCK7_DEFAULT_HOME)/JCK-runtime-$(JCK7_RELEASE)
 879 ifdef JPRT_JCK7RUNTIME_HOME
 880   JCK7RUNTIME_HOME = $(JPRT_JCK7RUNTIME_HOME)
 881 endif
 882 
 883 # Expect JPRT to set JPRT_JCK7DEVTOOLS_HOME.
 884 JCK7DEVTOOLS_HOME = $(JCK7_DEFAULT_HOME)/JCK-devtools-$(JCK7_RELEASE)
 885 ifdef JPRT_JCK7DEVTOOLS_HOME
 886   JCK7DEVTOOLS_HOME = $(JPRT_JCK7DEVTOOLS_HOME)
 887 endif
 888 
 889 jck7_tests: JCK_HOME=$(JCK7_HOME)
 890 jck7_tests: JCK_RELEASE=$(JCK7_RELEASE)
 891 jck7_tests: jck_tests
 892 
 893 jck7compiler: JCK7_HOME=$(JCK7COMPILER_HOME)
 894 jck7compiler: JCK_BUNDLE_NAME=compiler
 895 jck7compiler: jck7_tests
 896 
 897 jck7compiler_lang: JCK_BUNDLE_TESTDIRS=lang
 898 jck7compiler_lang: jck7compiler
 899 
 900 jck7runtime: JCK7_HOME=$(JCK7RUNTIME_HOME)
 901 jck7runtime: JCK_BUNDLE_NAME=runtime
 902 jck7runtime: jck7_tests
 903 
 904 jck7runtime_lang: JCK_BUNDLE_TESTDIRS=lang
 905 jck7runtime_lang: jck7runtime
 906 
 907 jck7devtools: JCK7_HOME=$(JCK7DEVTOOLS_HOME)
 908 jck7devtools: JCK_BUNDLE_NAME=devtools
 909 jck7devtools: jck7_tests
 910 
 911 jck7devtools_lang: JCK_BUNDLE_TESTDIRS=lang
 912 jck7devtools_lang: jck7devtools
 913 
 914 PHONY_LIST += jck7compiler jck7runtime jck7devtools jck7_tests \
 915               jck7compiler_lang jck7runtime_lang jck7devtools_lang
 916 
 917 ################################################################
 918 
 919 # Phony targets (e.g. these are not filenames)
 920 .PHONY: all clean prep $(PHONY_LIST)
 921 
 922 ################################################################
 923