< prev index next >

make/common/FindTests.gmk

Print this page




  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 ifndef _FIND_TESTS_GMK
  27 _FIND_TESTS_GMK := 1
  28 
  29 # Hook to include the corresponding custom file, if present.
  30 $(eval $(call IncludeCustomExtension, , common/FindTests.gmk))
  31 
  32 # JTREG_TESTROOTS might have been set by a custom extension
  33 JTREG_TESTROOTS += $(addprefix $(TOPDIR)/test/, hotspot/jtreg jdk langtools nashorn jaxp)
  34 
  35 ################################################################################
  36 # Find the Jtreg test groups for the given component.
  37 #
  38 # Parameter 1 is the jtreg root dir. This name is used as variable prefix.
  39 #
  40 # After this macro has been evaluated, the following variables are defined for
  41 # the component:
  42 #   JTREG_TESTROOT - The path to the root of the test directory
  43 #   JTREG_GROUP_FILES - The file(s) containing the group definitions
  44 #   JTREG_TEST_GROUPS - The name of the test groups that the component defines
  45 #
  46 FindJtregGroups = $(NamedParamsMacroTemplate)
  47 define FindJtregGroupsBody
  48   ifneq ($$(wildcard $1), )
  49     $1_JTREG_GROUP_FILENAMES := $$(shell $$(SED) -n -e 's/\[\(.*\)\]/\1/g' \
  50         -e 's/^groups\w*=//p' $1/TEST.ROOT)




  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 ifndef _FIND_TESTS_GMK
  27 _FIND_TESTS_GMK := 1
  28 
  29 # Hook to include the corresponding custom file, if present.
  30 $(eval $(call IncludeCustomExtension, common/FindTests.gmk))
  31 
  32 # JTREG_TESTROOTS might have been set by a custom extension
  33 JTREG_TESTROOTS += $(addprefix $(TOPDIR)/test/, hotspot/jtreg jdk langtools nashorn jaxp)
  34 
  35 ################################################################################
  36 # Find the Jtreg test groups for the given component.
  37 #
  38 # Parameter 1 is the jtreg root dir. This name is used as variable prefix.
  39 #
  40 # After this macro has been evaluated, the following variables are defined for
  41 # the component:
  42 #   JTREG_TESTROOT - The path to the root of the test directory
  43 #   JTREG_GROUP_FILES - The file(s) containing the group definitions
  44 #   JTREG_TEST_GROUPS - The name of the test groups that the component defines
  45 #
  46 FindJtregGroups = $(NamedParamsMacroTemplate)
  47 define FindJtregGroupsBody
  48   ifneq ($$(wildcard $1), )
  49     $1_JTREG_GROUP_FILENAMES := $$(shell $$(SED) -n -e 's/\[\(.*\)\]/\1/g' \
  50         -e 's/^groups\w*=//p' $1/TEST.ROOT)


< prev index next >