351 # Set up the directory in which the jvm directories live (client/, server/, etc.)
352 ifeq ($(PLATFORM),windows)
353 JVMS_DIR := $(PRODUCT_HOME)/bin
354 else ifeq ($(PLATFORM),bsd)
355 JVMS_DIR := $(PRODUCT_HOME)/lib
356 else
357 # The jvms live in the architecture directory (amd64, sparcv9,
358 # etc.). By using a wildcard there's no need to figure out the exact
359 # name of that directory.
360 JVMS_DIR := $(PRODUCT_HOME)/lib/*
361 endif
362
363 # Use the existance of a directory as a sign that jvm variant is available
364 CANDIDATE_JVM_VARIANTS := client minimal server
365 JVM_VARIANTS := $(strip $(foreach x,$(CANDIDATE_JVM_VARIANTS),$(if $(wildcard $(JVMS_DIR)/$(x)),$(x))))
366
367 hotspot_basicvmtest:
368 for variant in $(JVM_VARIANTS); \
369 do \
370 $(MAKE) JAVA_ARGS="$(JAVA_ARGS) -$$variant" hotspot_$${variant}test; \
371 done
372
373 PHONY_LIST += hotspot_basicvmtest
374
375 ################################################################
376
377 # clienttest (make sure various basic java client options work)
378
379 hotspot_clienttest clienttest: sanitytest
380 $(RM) $(PRODUCT_HOME)/jre/lib/*/client/classes.jsa
381 $(RM) $(PRODUCT_HOME)/jre/bin/client/classes.jsa
382 $(PRODUCT_HOME)/bin/java $(JAVA_OPTIONS) -Xshare:dump
383
384 PHONY_LIST += hotspot_clienttest clienttest
385
386 ################################################################
387
388 # minimaltest (make sure various basic java minimal options work)
389
390 hotspot_minimaltest minimaltest: sanitytest
|
351 # Set up the directory in which the jvm directories live (client/, server/, etc.)
352 ifeq ($(PLATFORM),windows)
353 JVMS_DIR := $(PRODUCT_HOME)/bin
354 else ifeq ($(PLATFORM),bsd)
355 JVMS_DIR := $(PRODUCT_HOME)/lib
356 else
357 # The jvms live in the architecture directory (amd64, sparcv9,
358 # etc.). By using a wildcard there's no need to figure out the exact
359 # name of that directory.
360 JVMS_DIR := $(PRODUCT_HOME)/lib/*
361 endif
362
363 # Use the existance of a directory as a sign that jvm variant is available
364 CANDIDATE_JVM_VARIANTS := client minimal server
365 JVM_VARIANTS := $(strip $(foreach x,$(CANDIDATE_JVM_VARIANTS),$(if $(wildcard $(JVMS_DIR)/$(x)),$(x))))
366
367 hotspot_basicvmtest:
368 for variant in $(JVM_VARIANTS); \
369 do \
370 $(MAKE) JAVA_ARGS="$(JAVA_ARGS) -$$variant" hotspot_$${variant}test; \
371 res=$$?; \
372 if [ $$res -ne 0 ]; then \
373 exit $$res; \
374 fi; \
375 done
376
377 PHONY_LIST += hotspot_basicvmtest
378
379 ################################################################
380
381 # clienttest (make sure various basic java client options work)
382
383 hotspot_clienttest clienttest: sanitytest
384 $(RM) $(PRODUCT_HOME)/jre/lib/*/client/classes.jsa
385 $(RM) $(PRODUCT_HOME)/jre/bin/client/classes.jsa
386 $(PRODUCT_HOME)/bin/java $(JAVA_OPTIONS) -Xshare:dump
387
388 PHONY_LIST += hotspot_clienttest clienttest
389
390 ################################################################
391
392 # minimaltest (make sure various basic java minimal options work)
393
394 hotspot_minimaltest minimaltest: sanitytest
|