< prev index next >

make/common/FindTests.gmk

Print this page




  26 ifndef _FIND_TESTS_GMK
  27 _FIND_TESTS_GMK := 1
  28 
  29 # This makefile can be called directly to just trigger generation of the cache
  30 # makefile. If so, SPEC and MakeBase.gmk need to be included.
  31 ifeq ($(FINDTESTS_STAND_ALONE), true)
  32   include $(SPEC)
  33   include MakeBase.gmk
  34 endif
  35 
  36 # Make sure this variable is not lazy evaled.
  37 ALL_NAMED_TESTS :=
  38 
  39 # Hook to include the corresponding custom file, if present.
  40 $(eval $(call IncludeCustomExtension, common/FindTests.gmk))
  41 
  42 # TEST_BASEDIRS might have been set by a custom extension
  43 TEST_BASEDIRS += $(TOPDIR)/test $(TOPDIR)
  44 
  45 # JTREG_TESTROOTS might have been set by a custom extension
  46 JTREG_TESTROOTS += $(addprefix $(TOPDIR)/test/, hotspot/jtreg jdk langtools nashorn jaxp)
  47 
  48 # Extract the names of the Jtreg group files from the TEST.ROOT files. The
  49 # TEST.ROOT files being properties files can be interpreted as makefiles so
  50 # use include to get at the contents instead of expensive shell calls. We are
  51 # looking for the "groups" property in each file.
  52 JTREG_ROOT_FILES := $(addsuffix /TEST.ROOT, $(JTREG_TESTROOTS))
  53 JTREG_GROUP_FILES :=
  54 $(foreach root, $(JTREG_TESTROOTS), \
  55   $(if $(wildcard $(root)/TEST.ROOT), \
  56     $(eval include $(root)/TEST.ROOT) \
  57     $(eval $(root)_JTREG_GROUP_FILES := $$(addprefix $(root)/, $$(groups))) \
  58     $(eval JTREG_GROUP_FILES += $$($(root)_JTREG_GROUP_FILES)) \
  59    ) \
  60 )
  61 
  62 # Cache the expensive to calculate test names in a generated makefile.
  63 FIND_TESTS_CACHE_FILE := $(MAKESUPPORT_OUTPUTDIR)/find-tests.gmk
  64 
  65 # If this file is deemed outdated, it will automatically get regenerated
  66 # by this rule before being included below.




  26 ifndef _FIND_TESTS_GMK
  27 _FIND_TESTS_GMK := 1
  28 
  29 # This makefile can be called directly to just trigger generation of the cache
  30 # makefile. If so, SPEC and MakeBase.gmk need to be included.
  31 ifeq ($(FINDTESTS_STAND_ALONE), true)
  32   include $(SPEC)
  33   include MakeBase.gmk
  34 endif
  35 
  36 # Make sure this variable is not lazy evaled.
  37 ALL_NAMED_TESTS :=
  38 
  39 # Hook to include the corresponding custom file, if present.
  40 $(eval $(call IncludeCustomExtension, common/FindTests.gmk))
  41 
  42 # TEST_BASEDIRS might have been set by a custom extension
  43 TEST_BASEDIRS += $(TOPDIR)/test $(TOPDIR)
  44 
  45 # JTREG_TESTROOTS might have been set by a custom extension
  46 JTREG_TESTROOTS += $(addprefix $(TOPDIR)/test/, hotspot/jtreg jdk langtools jaxp)
  47 
  48 # Extract the names of the Jtreg group files from the TEST.ROOT files. The
  49 # TEST.ROOT files being properties files can be interpreted as makefiles so
  50 # use include to get at the contents instead of expensive shell calls. We are
  51 # looking for the "groups" property in each file.
  52 JTREG_ROOT_FILES := $(addsuffix /TEST.ROOT, $(JTREG_TESTROOTS))
  53 JTREG_GROUP_FILES :=
  54 $(foreach root, $(JTREG_TESTROOTS), \
  55   $(if $(wildcard $(root)/TEST.ROOT), \
  56     $(eval include $(root)/TEST.ROOT) \
  57     $(eval $(root)_JTREG_GROUP_FILES := $$(addprefix $(root)/, $$(groups))) \
  58     $(eval JTREG_GROUP_FILES += $$($(root)_JTREG_GROUP_FILES)) \
  59    ) \
  60 )
  61 
  62 # Cache the expensive to calculate test names in a generated makefile.
  63 FIND_TESTS_CACHE_FILE := $(MAKESUPPORT_OUTPUTDIR)/find-tests.gmk
  64 
  65 # If this file is deemed outdated, it will automatically get regenerated
  66 # by this rule before being included below.


< prev index next >