equal
deleted
inserted
replaced
33 |
33 |
34 ifeq "x$(TESTBASE_DIR)" "x" |
34 ifeq "x$(TESTBASE_DIR)" "x" |
35 TESTBASE_DIR := ws/hotspot/test |
35 TESTBASE_DIR := ws/hotspot/test |
36 endif |
36 endif |
37 |
37 |
|
38 APPLICATION_ARGS = |
|
39 ifneq "x$(TESTS_NUMBER)" "x" |
|
40 APPLICATION_ARGS += --number-of-tests $(TESTS_NUMBER) |
|
41 endif |
|
42 |
|
43 ifneq "x$(SEED)" "x" |
|
44 APPLICATION_ARGS += --seed $(SEED) |
|
45 endif |
|
46 |
38 JAVA = $(JDK_HOME)/bin/java |
47 JAVA = $(JDK_HOME)/bin/java |
39 JAVAC = $(JDK_HOME)/bin/javac |
48 JAVAC = $(JDK_HOME)/bin/javac |
40 JAR = $(JDK_HOME)/bin/jar |
49 JAR = $(JDK_HOME)/bin/jar |
41 |
50 |
42 BUILD_DIR = build |
51 BUILD_DIR = build |
43 CLASSES_DIR = $(BUILD_DIR)/classes |
52 CLASSES_DIR = $(BUILD_DIR)/classes |
44 SRC_DIR = src |
53 SRC_DIR = src |
45 TEST_DIR = test |
54 TEST_DIR = test |
|
55 DRIVER_DIR = $(TESTBASE_DIR)/jdk/test/lib/jittester/jtreg |
46 MANIFEST = manifest.mf |
56 MANIFEST = manifest.mf |
47 APPLICATION_ARGS = \ |
57 APPLICATION_ARGS += \ |
48 --property-file $(PROPERTY_FILE) \ |
58 --property-file $(PROPERTY_FILE) \ |
49 --testbase-dir $(TESTBASE_DIR) |
59 --testbase-dir $(TESTBASE_DIR) |
50 MAIN_CLASS = JitTestGenerator.Automatic |
60 MAIN_CLASS = JitTestGenerator.Automatic |
51 |
61 |
52 TESTGROUP_FILE = $(TESTBASE_DIR)/TEST.groups |
62 TESTGROUP_FILE = $(TESTBASE_DIR)/TEST.groups |
101 |
111 |
102 cleantmp: |
112 cleantmp: |
103 @rm filelist |
113 @rm filelist |
104 @rm -rf $(CLASSES_DIR) |
114 @rm -rf $(CLASSES_DIR) |
105 |
115 |
106 copytestlibrary: |
116 copytestlibrary: $(DRIVER_DIR) |
107 @cp -r src/jdk/test/lib/jittester/jtreg $(TESTBASE_DIR)/ |
117 @cp -r src/jdk/test/lib/jittester/jtreg/*.java $(DRIVER_DIR) |
108 @cp -r ../jdk $(TESTBASE_DIR)/ |
118 @cp -r ../jdk $(TESTBASE_DIR)/ |
109 |
119 |
110 testgroup: $(TESTBASE_DIR) |
120 testgroup: $(TESTBASE_DIR) |
111 @echo 'jittester_all = \\' > $(TESTGROUP_FILE) |
121 @echo 'jittester_all = \\' > $(TESTGROUP_FILE) |
112 @echo ' /' >> $(TESTGROUP_FILE) |
122 @echo ' /' >> $(TESTGROUP_FILE) |
115 @echo ' Test_0.java' >> $(TESTGROUP_FILE) |
125 @echo ' Test_0.java' >> $(TESTGROUP_FILE) |
116 |
126 |
117 testroot: $(TESTBASE_DIR) |
127 testroot: $(TESTBASE_DIR) |
118 @echo 'groups=TEST.groups' > $(TESTROOT_FILE) |
128 @echo 'groups=TEST.groups' > $(TESTROOT_FILE) |
119 |
129 |
120 $(TESTBASE_DIR): |
130 $(TESTBASE_DIR) $(DIST_DIR) $(DRIVER_DIR): |
121 $(shell if [ ! -d $@ ]; then mkdir -p $@; fi) |
131 $(shell if [ ! -d $@ ]; then mkdir -p $@; fi) |
122 |
132 |
123 $(DIST_DIR): |
|
124 $(shell if [ ! -d $@ ]; then mkdir -p $@; fi) |
|
125 |
|