langtools/test/Makefile

Print this page




 212 
 213 # The test directories to run
 214 DEFAULT_TESTDIRS = .
 215 TESTDIRS = $(DEFAULT_TESTDIRS)
 216 
 217 # Root of all test results
 218 TEST_OUTPUT_DIR = $(TEST_ROOT)/../build/$(PLATFORM)-$(ARCH)/test/langtools
 219 ABS_TEST_OUTPUT_DIR := \
 220         $(shell mkdir -p $(TEST_ROOT)/../build/$(PLATFORM)-$(ARCH)/test/langtools; \
 221                 cd  $(TEST_ROOT)/../build/$(PLATFORM)-$(ARCH)/test/langtools; \
 222                 pwd $(CYGPATH))
 223 # Subdirectories for different test runs
 224 JTREG_OUTPUT_DIR = $(ABS_TEST_OUTPUT_DIR)/jtreg
 225 JCK_COMPILER_OUTPUT_DIR = $(ABS_TEST_OUTPUT_DIR)/jck-compiler
 226 JCK_RUNTIME_OUTPUT_DIR = $(ABS_TEST_OUTPUT_DIR)/jck-runtime-Xcompile
 227 
 228 # Default make rule -- warning, may take a while
 229 all: $(JPRT_CLEAN) jtreg-tests jck-compiler-tests jck-runtime-tests $(JPRT_ARCHIVE_BUNDLE) all-summary
 230         @echo "Testing completed successfully"
 231 
 232 jtreg apt javac javadoc javah javap: $(JPRT_CLEAN) jtreg-tests $(JPRT_ARCHIVE_BUNDLE) jtreg-summary
 233         @echo "Testing completed successfully"
 234 
 235 jck-compiler: $(JPRT_CLEAN) jck-compiler-tests $(JPRT_ARCHIVE_BUNDLE) jck-compiler-summary
 236         @echo "Testing completed successfully"
 237 
 238 jck-runtime: $(JPRT_CLEAN) jck-runtime-tests $(JPRT_ARCHIVE_BUNDLE) jck-runtime-summary
 239         @echo "Testing completed successfully"
 240 
 241 # for use with JPRT -testrule
 242 all:            JTREG_TESTDIRS = .
 243 jtreg:          JTREG_TESTDIRS = .
 244 apt:            JTREG_TESTDIRS = tools/apt
 245 javac:          JTREG_TESTDIRS = tools/javac
 246 javadoc:        JTREG_TESTDIRS = tools/javadoc com/sun/javadoc
 247 javah:          JTREG_TESTDIRS = tools/javah
 248 javap:          JTREG_TESTDIRS = tools/javap

 249 
 250 # Run jtreg tests
 251 #
 252 # JTREG_HOME
 253 #       Installed location of jtreg
 254 # JT_JAVA
 255 #       Version of java used to run jtreg.  Should normally be the same as TESTJAVA
 256 # TESTJAVA
 257 #       Version of java to be tested.  
 258 # JTREG_OPTIONS
 259 #       Additional options for jtreg
 260 # JTREG_TESTDIRS
 261 #       Directories of tests to be run
 262 # JTREG_OUTPUT_DIR
 263 #       Where to write the results
 264 # JTREG_REFERENCE
 265 #       (Optional) reference results (e.g. work, report or summary.txt)
 266 #
 267 jtreg_tests: jtreg-tests
 268 jtreg-tests: check-jtreg FRC


 409                 grep -v 'Not run' | grep -v 'Passed' ; \
 410             echo ; \
 411             $(EXIT) 1
 412         fi
 413 
 414 # Bundle up the results
 415 $(JPRT_ARCHIVE_BUNDLE): FRC
 416         @rm -f $@
 417         @mkdir -p $(@D)
 418         ( cd $(TEST_OUTPUT_DIR) && zip -q -r $@ . )
 419 
 420 # Cleanup
 421 clean:
 422         rm -f $(JPRT_ARCHIVE_BUNDLE)
 423 
 424 # Used to force a target rules to run
 425 FRC:
 426 
 427 # Phony targets (e.g. these are not filenames)
 428 .PHONY: all clean \
 429         jtreg javac javadoc javah javap jtreg-tests jtreg-summary check-jtreg \
 430         jck-compiler jck-compiler-tests jck-compiler-summary \
 431         jck-runtime jck-runtime-tests jck-runtime-summary check-jck
 432 
 433 # No use of suffix rules
 434 .SUFFIXES:
 435 


 212 
 213 # The test directories to run
 214 DEFAULT_TESTDIRS = .
 215 TESTDIRS = $(DEFAULT_TESTDIRS)
 216 
 217 # Root of all test results
 218 TEST_OUTPUT_DIR = $(TEST_ROOT)/../build/$(PLATFORM)-$(ARCH)/test/langtools
 219 ABS_TEST_OUTPUT_DIR := \
 220         $(shell mkdir -p $(TEST_ROOT)/../build/$(PLATFORM)-$(ARCH)/test/langtools; \
 221                 cd  $(TEST_ROOT)/../build/$(PLATFORM)-$(ARCH)/test/langtools; \
 222                 pwd $(CYGPATH))
 223 # Subdirectories for different test runs
 224 JTREG_OUTPUT_DIR = $(ABS_TEST_OUTPUT_DIR)/jtreg
 225 JCK_COMPILER_OUTPUT_DIR = $(ABS_TEST_OUTPUT_DIR)/jck-compiler
 226 JCK_RUNTIME_OUTPUT_DIR = $(ABS_TEST_OUTPUT_DIR)/jck-runtime-Xcompile
 227 
 228 # Default make rule -- warning, may take a while
 229 all: $(JPRT_CLEAN) jtreg-tests jck-compiler-tests jck-runtime-tests $(JPRT_ARCHIVE_BUNDLE) all-summary
 230         @echo "Testing completed successfully"
 231 
 232 jtreg apt javac javadoc javah javap jdeps: $(JPRT_CLEAN) jtreg-tests $(JPRT_ARCHIVE_BUNDLE) jtreg-summary
 233         @echo "Testing completed successfully"
 234 
 235 jck-compiler: $(JPRT_CLEAN) jck-compiler-tests $(JPRT_ARCHIVE_BUNDLE) jck-compiler-summary
 236         @echo "Testing completed successfully"
 237 
 238 jck-runtime: $(JPRT_CLEAN) jck-runtime-tests $(JPRT_ARCHIVE_BUNDLE) jck-runtime-summary
 239         @echo "Testing completed successfully"
 240 
 241 # for use with JPRT -testrule
 242 all:            JTREG_TESTDIRS = .
 243 jtreg:          JTREG_TESTDIRS = .
 244 apt:            JTREG_TESTDIRS = tools/apt
 245 javac:          JTREG_TESTDIRS = tools/javac
 246 javadoc:        JTREG_TESTDIRS = tools/javadoc com/sun/javadoc
 247 javah:          JTREG_TESTDIRS = tools/javah
 248 javap:          JTREG_TESTDIRS = tools/javap
 249 jdeps:          JTREG_TESTDIRS = tools/jdeps
 250 
 251 # Run jtreg tests
 252 #
 253 # JTREG_HOME
 254 #       Installed location of jtreg
 255 # JT_JAVA
 256 #       Version of java used to run jtreg.  Should normally be the same as TESTJAVA
 257 # TESTJAVA
 258 #       Version of java to be tested.  
 259 # JTREG_OPTIONS
 260 #       Additional options for jtreg
 261 # JTREG_TESTDIRS
 262 #       Directories of tests to be run
 263 # JTREG_OUTPUT_DIR
 264 #       Where to write the results
 265 # JTREG_REFERENCE
 266 #       (Optional) reference results (e.g. work, report or summary.txt)
 267 #
 268 jtreg_tests: jtreg-tests
 269 jtreg-tests: check-jtreg FRC


 410                 grep -v 'Not run' | grep -v 'Passed' ; \
 411             echo ; \
 412             $(EXIT) 1
 413         fi
 414 
 415 # Bundle up the results
 416 $(JPRT_ARCHIVE_BUNDLE): FRC
 417         @rm -f $@
 418         @mkdir -p $(@D)
 419         ( cd $(TEST_OUTPUT_DIR) && zip -q -r $@ . )
 420 
 421 # Cleanup
 422 clean:
 423         rm -f $(JPRT_ARCHIVE_BUNDLE)
 424 
 425 # Used to force a target rules to run
 426 FRC:
 427 
 428 # Phony targets (e.g. these are not filenames)
 429 .PHONY: all clean \
 430         jtreg javac javadoc javah javap jdeps jtreg-tests jtreg-summary check-jtreg \
 431         jck-compiler jck-compiler-tests jck-compiler-summary \
 432         jck-runtime jck-runtime-tests jck-runtime-summary check-jck
 433 
 434 # No use of suffix rules
 435 .SUFFIXES:
 436