test/Makefile

changeset 1391
7de830a4c219
parent 1139
de71433b576a
child 1482
8fb429038513
child 2447
ef851705e3e1
equal deleted inserted replaced
1389:6ff963c0dd41 1391:7de830a4c219
64 @$(NO_STOPPING)$(call SUBDIR_TEST, $(JDK_DIR), TEST="$@" $@) 64 @$(NO_STOPPING)$(call SUBDIR_TEST, $(JDK_DIR), TEST="$@" $@)
65 65
66 hotspot_%: 66 hotspot_%:
67 @$(NO_STOPPING)$(call SUBDIR_TEST, $(HOTSPOT_DIR), TEST="$@" $@) 67 @$(NO_STOPPING)$(call SUBDIR_TEST, $(HOTSPOT_DIR), TEST="$@" $@)
68 68
69 #
70 # jtreg_tests
71 #
72 # Invocation:
73 #
74 # make jtreg_tests TESTDIRS=<test-dirs>
75 #
76 # where <test-dirs> is something like '../<component>/test/runtime',
77 # <component> in turn being one of the top level directories (for
78 # example 'hotspot').
79 #
80 # The below will strip the path prefix and delegate to the
81 # corresponding ../<component>/test/Makefile.
82
83 ifneq ($(TESTDIRS),)
84 # Extract the component from ../<component>/...
85 COMPONENT=$(word 2,$(subst /, ,$(TESTDIRS)))
86
87 # Strip off the ../<component>/test prefix and pass the rest as TESTDIRS
88 # to the delegate Makefile
89 TESTDIRS_TESTS=$(patsubst ../$(COMPONENT)/test/%,%,$(TESTDIRS))
90 endif
91
92 jtreg_tests:
93 @$(NO_STOPPING)$(call SUBDIR_TEST, $(TOPDIR)/$(COMPONENT), TESTDIRS=$(TESTDIRS_TESTS) $@)
94
69 ################################################################ 95 ################################################################
70 96
71 # Phony targets (e.g. these are not filenames) 97 # Phony targets (e.g. these are not filenames)
72 .PHONY: all clean 98 .PHONY: all clean
73 99

mercurial