test/hotspot/jtreg/testlibrary/jittester/Makefile
author lmesnik
Wed, 28 Mar 2018 13:38:08 -0700
changeset 49638 5af65ee8b77e
parent 47216 71c04702a3d5
child 53493 376f0e4e6fba
permissions -rw-r--r--
8200091: [TESTBUG] Update jittester for jdk11 Reviewed-by: iignatyev
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
34225
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
     1
#
49638
5af65ee8b77e 8200091: [TESTBUG] Update jittester for jdk11
lmesnik
parents: 47216
diff changeset
     2
# Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
34225
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
     4
#
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
     7
# published by the Free Software Foundation.
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
     8
#
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
     9
# This code is distributed in the hope that it will be useful, but WITHOUT
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    10
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    11
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    12
# version 2 for more details (a copy is included in the LICENSE file that
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    13
# accompanied this code).
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    14
#
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    15
# You should have received a copy of the GNU General Public License version
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    16
# 2 along with this work; if not, write to the Free Software Foundation,
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    17
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    18
#
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    19
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    20
# or visit www.oracle.com if you need additional information or have any
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    21
# questions.
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    22
#
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    23
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    24
ifeq "x$(BOOTDIR)" "x"
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    25
	JDK_HOME := $(shell dirname $(shell which java))/..
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    26
else
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    27
	JDK_HOME := $(BOOTDIR)
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    28
endif
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    29
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    30
ifeq "x$(PROPERTY_FILE)" "x"
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    31
	PROPERTY_FILE := conf/default.properties
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    32
endif
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    33
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    34
ifeq "x$(TESTBASE_DIR)" "x"
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    35
	TESTBASE_DIR := ws/hotspot/test
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    36
endif
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    37
35831
8905c66b5fce 8149135: [jittester] Makefile copies JitTesterDriver in incorrect directory and always uses default value for number-of-tests and seed
tpivovarova
parents: 34225
diff changeset
    38
APPLICATION_ARGS =
8905c66b5fce 8149135: [jittester] Makefile copies JitTesterDriver in incorrect directory and always uses default value for number-of-tests and seed
tpivovarova
parents: 34225
diff changeset
    39
ifneq "x$(TESTS_NUMBER)" "x"
8905c66b5fce 8149135: [jittester] Makefile copies JitTesterDriver in incorrect directory and always uses default value for number-of-tests and seed
tpivovarova
parents: 34225
diff changeset
    40
	APPLICATION_ARGS += --number-of-tests $(TESTS_NUMBER)
8905c66b5fce 8149135: [jittester] Makefile copies JitTesterDriver in incorrect directory and always uses default value for number-of-tests and seed
tpivovarova
parents: 34225
diff changeset
    41
endif
8905c66b5fce 8149135: [jittester] Makefile copies JitTesterDriver in incorrect directory and always uses default value for number-of-tests and seed
tpivovarova
parents: 34225
diff changeset
    42
8905c66b5fce 8149135: [jittester] Makefile copies JitTesterDriver in incorrect directory and always uses default value for number-of-tests and seed
tpivovarova
parents: 34225
diff changeset
    43
ifneq "x$(SEED)" "x"
8905c66b5fce 8149135: [jittester] Makefile copies JitTesterDriver in incorrect directory and always uses default value for number-of-tests and seed
tpivovarova
parents: 34225
diff changeset
    44
	APPLICATION_ARGS += --seed $(SEED)
8905c66b5fce 8149135: [jittester] Makefile copies JitTesterDriver in incorrect directory and always uses default value for number-of-tests and seed
tpivovarova
parents: 34225
diff changeset
    45
endif
8905c66b5fce 8149135: [jittester] Makefile copies JitTesterDriver in incorrect directory and always uses default value for number-of-tests and seed
tpivovarova
parents: 34225
diff changeset
    46
39242
8ffd59d7bc52 8158065: [Jittester]: tests generation has tests generators hardcoded, blocking alternative tests generation
dpochepk
parents: 38693
diff changeset
    47
ifneq "x$(EXTRA_SRC_DIR)" "x"
8ffd59d7bc52 8158065: [Jittester]: tests generation has tests generators hardcoded, blocking alternative tests generation
dpochepk
parents: 38693
diff changeset
    48
        EXTRA_SRC_FILES := $(shell find $(EXTRA_SRC_DIR) -name '*.java')
8ffd59d7bc52 8158065: [Jittester]: tests generation has tests generators hardcoded, blocking alternative tests generation
dpochepk
parents: 38693
diff changeset
    49
endif
8ffd59d7bc52 8158065: [Jittester]: tests generation has tests generators hardcoded, blocking alternative tests generation
dpochepk
parents: 38693
diff changeset
    50
34225
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    51
JAVA = $(JDK_HOME)/bin/java
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    52
JAVAC = $(JDK_HOME)/bin/javac
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    53
JAR = $(JDK_HOME)/bin/jar
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    54
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    55
BUILD_DIR = build
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    56
CLASSES_DIR = $(BUILD_DIR)/classes
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    57
SRC_DIR = src
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    58
TEST_DIR = test
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    59
MANIFEST = manifest.mf
35831
8905c66b5fce 8149135: [jittester] Makefile copies JitTesterDriver in incorrect directory and always uses default value for number-of-tests and seed
tpivovarova
parents: 34225
diff changeset
    60
APPLICATION_ARGS += \
34225
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    61
    --property-file $(PROPERTY_FILE) \
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    62
    --testbase-dir $(TESTBASE_DIR)
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    63
MAIN_CLASS = JitTestGenerator.Automatic
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    64
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    65
TESTGROUP_FILE = $(TESTBASE_DIR)/TEST.groups
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    66
TESTROOT_FILE =  $(TESTBASE_DIR)/TEST.ROOT
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    67
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    68
DIST_DIR = dist
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    69
DIST_JAR = $(DIST_DIR)/JITtester.jar
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    70
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    71
SRC_FILES = $(shell find $(SRC_DIR) -name '*.java')
49638
5af65ee8b77e 8200091: [TESTBUG] Update jittester for jdk11
lmesnik
parents: 47216
diff changeset
    72
TESTLIBRARY_SRC_DIR = ../../../../lib/jdk/test/lib
34225
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    73
TESTLIBRARY_SRC_FILES = $(TESTLIBRARY_SRC_DIR)/Asserts.java \
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    74
                        $(TESTLIBRARY_SRC_DIR)/JDKToolFinder.java \
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    75
                        $(TESTLIBRARY_SRC_DIR)/JDKToolLauncher.java \
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    76
                        $(TESTLIBRARY_SRC_DIR)/Platform.java \
40875
ecd96e20d90c 8164648: [TESTBUG] jittester failed compilation after 8157957
tpivovarova
parents: 40244
diff changeset
    77
                        $(TESTLIBRARY_SRC_DIR)/Utils.java \
ecd96e20d90c 8164648: [TESTBUG] jittester failed compilation after 8157957
tpivovarova
parents: 40244
diff changeset
    78
                        $(TESTLIBRARY_SRC_DIR)/process/OutputAnalyzer.java \
ecd96e20d90c 8164648: [TESTBUG] jittester failed compilation after 8157957
tpivovarova
parents: 40244
diff changeset
    79
                        $(TESTLIBRARY_SRC_DIR)/process/OutputBuffer.java \
ecd96e20d90c 8164648: [TESTBUG] jittester failed compilation after 8157957
tpivovarova
parents: 40244
diff changeset
    80
                        $(TESTLIBRARY_SRC_DIR)/process/ProcessTools.java \
ecd96e20d90c 8164648: [TESTBUG] jittester failed compilation after 8157957
tpivovarova
parents: 40244
diff changeset
    81
                        $(TESTLIBRARY_SRC_DIR)/process/StreamPumper.java \
ecd96e20d90c 8164648: [TESTBUG] jittester failed compilation after 8157957
tpivovarova
parents: 40244
diff changeset
    82
                        $(TESTLIBRARY_SRC_DIR)/util/Pair.java
34225
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    83
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    84
.PHONY: cleantmp
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    85
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    86
all: JAR
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    87
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    88
JAR: INIT COMPILE manifest
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    89
	$(JAR) cfm $(DIST_JAR) $(MANIFEST) -C $(CLASSES_DIR) .
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    90
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    91
manifest:
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    92
	@echo 'Manifest-Version: 1.0' > $(MANIFEST)
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    93
	@echo 'X-COMMENT: Main-Class will be added automatically by build' >> $(MANIFEST)
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    94
	@echo 'Main-Class: jdk.test.lib.jittester.Automatic' >> $(MANIFEST)
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    95
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    96
compile_testlib: INIT
40244
b3055c216762 8136930: Simplify use of module-system options by custom launchers
hseigel
parents: 39242
diff changeset
    97
	$(JAVAC) -XDignore.symbol.file --add-exports=java.base/jdk.internal.misc=ALL-UNNAMED --add-exports=java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED -Xlint $(TESTLIBRARY_SRC_FILES) -d $(CLASSES_DIR)
34225
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    98
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
    99
COMPILE: INIT filelist compile_testlib
40244
b3055c216762 8136930: Simplify use of module-system options by custom launchers
hseigel
parents: 39242
diff changeset
   100
	$(JAVAC) -cp $(CLASSES_DIR) -XDignore.symbol.file --add-exports=java.base/jdk.internal.misc=ALL-UNNAMED --add-exports=java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED -Xlint -sourcepath $(SRC_DIR) -d $(CLASSES_DIR) @filelist
34225
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
   101
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
   102
filelist: $(SRC_FILES)
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
   103
		@rm -f $@
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
   104
		@echo $(SRC_FILES) > $@
39242
8ffd59d7bc52 8158065: [Jittester]: tests generation has tests generators hardcoded, blocking alternative tests generation
dpochepk
parents: 38693
diff changeset
   105
		@echo $(EXTRA_SRC_FILES) >> $@
34225
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
   106
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
   107
INIT: $(DIST_DIR)
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
   108
	$(shell if [ ! -d $(CLASSES_DIR) ]; then mkdir -p $(CLASSES_DIR); fi)
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
   109
42650
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 41064
diff changeset
   110
install: clean_testbase testgroup testroot copytestlibrary copyaot JAR cleantmp
43669
fd5e37480836 8173399: Jittester: sources should be aligned with latest product state
dpochepk
parents: 42650
diff changeset
   111
	$(JAVA) --add-exports=java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED -ea -jar $(DIST_JAR) $(APPLICATION_ARGS)
34225
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
   112
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
   113
clean_testbase:
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
   114
	@rm -rf $(TESTBASE_DIR)
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
   115
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
   116
cleantmp:
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
   117
	@rm filelist
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
   118
	@rm -rf $(CLASSES_DIR)
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
   119
41064
35f3a8f40707 8165050: [TESTBUG] tests generated by jittester cannot be run with jtreg
tpivovarova
parents: 40875
diff changeset
   120
copytestlibrary: $(TESTBASE_DIR)/jdk/test/lib/jittester/jtreg
35f3a8f40707 8165050: [TESTBUG] tests generated by jittester cannot be run with jtreg
tpivovarova
parents: 40875
diff changeset
   121
	@cp -r src/jdk/test/lib/jittester/jtreg/*.java $(TESTBASE_DIR)/jdk/test/lib/jittester/jtreg
35f3a8f40707 8165050: [TESTBUG] tests generated by jittester cannot be run with jtreg
tpivovarova
parents: 40875
diff changeset
   122
	@cp -r $(TESTLIBRARY_SRC_DIR) $(TESTBASE_DIR)/jdk/test/
34225
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
   123
42650
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 41064
diff changeset
   124
copyaot: $(TESTBASE_DIR)/compiler/aot
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 41064
diff changeset
   125
	@cp ../../compiler/aot/AotCompiler.java $(TESTBASE_DIR)/compiler/aot
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 41064
diff changeset
   126
34225
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
   127
testgroup: $(TESTBASE_DIR)
49638
5af65ee8b77e 8200091: [TESTBUG] Update jittester for jdk11
lmesnik
parents: 47216
diff changeset
   128
	@echo 'jittester_all = \' > $(TESTGROUP_FILE)
34225
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
   129
	@echo '	/' >> $(TESTGROUP_FILE)
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
   130
	@echo '' >> $(TESTGROUP_FILE)
49638
5af65ee8b77e 8200091: [TESTBUG] Update jittester for jdk11
lmesnik
parents: 47216
diff changeset
   131
	@echo 'jit_tests = \' >> $(TESTGROUP_FILE)
5af65ee8b77e 8200091: [TESTBUG] Update jittester for jdk11
lmesnik
parents: 47216
diff changeset
   132
	@echo ' java_tests \' >> $(TESTGROUP_FILE)
5af65ee8b77e 8200091: [TESTBUG] Update jittester for jdk11
lmesnik
parents: 47216
diff changeset
   133
	@echo ' bytecode_tests' >> $(TESTGROUP_FILE)
5af65ee8b77e 8200091: [TESTBUG] Update jittester for jdk11
lmesnik
parents: 47216
diff changeset
   134
	@echo '' >> $(TESTGROUP_FILE)
5af65ee8b77e 8200091: [TESTBUG] Update jittester for jdk11
lmesnik
parents: 47216
diff changeset
   135
	@echo 'aot_tests = \' >> $(TESTGROUP_FILE)
5af65ee8b77e 8200091: [TESTBUG] Update jittester for jdk11
lmesnik
parents: 47216
diff changeset
   136
	@echo ' aot_bytecode_tests \' >> $(TESTGROUP_FILE)
5af65ee8b77e 8200091: [TESTBUG] Update jittester for jdk11
lmesnik
parents: 47216
diff changeset
   137
	@echo ' aot_java_tests' >> $(TESTGROUP_FILE)
5af65ee8b77e 8200091: [TESTBUG] Update jittester for jdk11
lmesnik
parents: 47216
diff changeset
   138
	@echo '' >> $(TESTGROUP_FILE)
34225
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
   139
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
   140
testroot: $(TESTBASE_DIR)
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
   141
	@echo 'groups=TEST.groups' > $(TESTROOT_FILE)
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
   142
42650
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 41064
diff changeset
   143
$(TESTBASE_DIR) $(DIST_DIR) $(TESTBASE_DIR)/jdk/test/lib/jittester/jtreg $(TESTBASE_DIR)/compiler/aot:
34225
773eded97d0d 8143966: JEP 233: Generate Run-Time Compiler Tests Automatically
tpivovarova
parents:
diff changeset
   144
	$(shell if [ ! -d $@ ]; then mkdir -p $@; fi)