22 # or visit www.oracle.com if you need additional information or have any
23 # questions.
24 #
25
26 #
27 # Makefile to run tests from multiple sibling directories
28 #
29
30 # Root of the forest that was built
31 TOPDIR=..
32
33 # This makefile depends on the availability of sibling directories.
34 LANGTOOLS_DIR=$(TOPDIR)/langtools
35 JDK_DIR=$(TOPDIR)/jdk
36
37 # Macro to run a test target in a subdir
38 define SUBDIR_TEST # subdirectory target
39 if [ -d $1 ] ; then \
40 if [ -r $1/test/Makefile ] ; then \
41 echo "$(MAKE) -k -C $1/test $2" ; \
42 $(MAKE) -k -C $1/test $2 ; \
43 else \
44 echo "ERROR: File does not exist: $1/test/Makefile"; \
45 exit 1; \
46 fi; \
47 else \
48 echo "WARNING: No testing done, directory does not exist: $1"; \
49 fi
50 endef
51
52 # Default test target (core)
53 default: jdk_core langtools_jtreg
54
55 # All testing
56 all: jdk_all langtools_all
57
58 # Test targets
59 langtools_% :
60 @$(NO_STOPPING)$(call SUBDIR_TEST, $(LANGTOOLS_DIR), JT_JAVA=$(PRODUCT_HOME) JTREG_HOME=$(JT_HOME) TEST="$(subst langtools_,,$@)" $(subst langtools_,,$@))
61
62 jdk_% :
63 @$(NO_STOPPING)$(call SUBDIR_TEST, $(JDK_DIR), TEST="$@" $@)
64
65 ################################################################
66
67 # Phony targets (e.g. these are not filenames)
68 .PHONY: all clean
69
70 ################################################################
|
22 # or visit www.oracle.com if you need additional information or have any
23 # questions.
24 #
25
26 #
27 # Makefile to run tests from multiple sibling directories
28 #
29
30 # Root of the forest that was built
31 TOPDIR=..
32
33 # This makefile depends on the availability of sibling directories.
34 LANGTOOLS_DIR=$(TOPDIR)/langtools
35 JDK_DIR=$(TOPDIR)/jdk
36
37 # Macro to run a test target in a subdir
38 define SUBDIR_TEST # subdirectory target
39 if [ -d $1 ] ; then \
40 if [ -r $1/test/Makefile ] ; then \
41 echo "$(MAKE) -k -C $1/test $2" ; \
42 $(MAKE) -k -C $1/test $2 JTREG=$(JTREG) JTDIFF=$(JTDIFF) PRODUCT_HOME=$(PRODUCT_HOME); \
43 else \
44 echo "ERROR: File does not exist: $1/test/Makefile"; \
45 exit 1; \
46 fi; \
47 else \
48 echo "WARNING: No testing done, directory does not exist: $1"; \
49 fi
50 endef
51
52 # Default test target (core)
53 default: jdk_core langtools_jtreg
54
55 # All testing
56 all: jdk_all langtools_all
57
58 # Test targets
59 langtools_% :
60 @$(NO_STOPPING)$(call SUBDIR_TEST, $(LANGTOOLS_DIR), TEST="$(subst langtools_,,$@)" $(subst langtools_,,$@))
61
62 jdk_% :
63 @$(NO_STOPPING)$(call SUBDIR_TEST, $(JDK_DIR), TEST="$@" $@)
64
65 ################################################################
66
67 # Phony targets (e.g. these are not filenames)
68 .PHONY: all default clean
69
70 ################################################################
|