File tree 1 file changed +26
-0
lines changed
1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,32 @@ jdk_% core_%s svc_%:
66
66
hotspot_% :
67
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
97
# Phony targets (e.g. these are not filenames)
You can’t perform that action at this time.
0 commit comments