hotspot/test/Makefile
changeset 30267 e35e0c092042
parent 29179 8836e3bd543b
child 30560 cf3db7dbf104
child 30280 b9efc9156778
equal deleted inserted replaced
30266:ef82cd1f2db3 30267:e35e0c092042
   342 
   342 
   343 PHONY_LIST += sanitytest
   343 PHONY_LIST += sanitytest
   344 
   344 
   345 ################################################################
   345 ################################################################
   346 
   346 
       
   347 # basicvmtest (make sure various basic java options work)
       
   348 
       
   349 # Set up the directory in which the jvm directories live (client/, server/, etc.)
       
   350 ifeq ($(PLATFORM),windows)
       
   351 JVMS_DIR := $(PRODUCT_HOME)/bin
       
   352 else ifeq ($(PLATFORM),bsd)
       
   353 JVMS_DIR := $(PRODUCT_HOME)/lib
       
   354 else
       
   355 # The jvms live in the architecture directory (amd64, sparcv9,
       
   356 # etc.). By using a wildcard there's no need to figure out the exact
       
   357 # name of that directory.
       
   358 JVMS_DIR := $(PRODUCT_HOME)/lib/*
       
   359 endif
       
   360 
       
   361 # Use the existance of a directory as a sign that jvm variant is available
       
   362 CANDIDATE_JVM_VARIANTS := client minimal server
       
   363 JVM_VARIANTS := $(strip $(foreach x,$(CANDIDATE_JVM_VARIANTS),$(if $(wildcard $(JVMS_DIR)/$(x)),$(x))))
       
   364 
       
   365 hotspot_basicvmtest:
       
   366 	for variant in $(JVM_VARIANTS);                                           \
       
   367 	do                                                                        \
       
   368 	    $(MAKE) JAVA_ARGS="$(JAVA_ARGS) -$$variant" hotspot_$${variant}test;  \
       
   369 	done
       
   370 
       
   371 PHONY_LIST += hotspot_basicvmtest
       
   372 
       
   373 ################################################################
       
   374 
   347 # clienttest (make sure various basic java client options work)
   375 # clienttest (make sure various basic java client options work)
   348 
   376 
   349 hotspot_clienttest clienttest: sanitytest
   377 hotspot_clienttest clienttest: sanitytest
   350 	$(RM) $(PRODUCT_HOME)/jre/lib/*/client/classes.jsa
   378 	$(RM) $(PRODUCT_HOME)/jre/lib/*/client/classes.jsa
   351 	$(RM) $(PRODUCT_HOME)/jre/bin/client/classes.jsa
   379 	$(RM) $(PRODUCT_HOME)/jre/bin/client/classes.jsa