annotate test/Makefile @ 94:0834225a7916

6634032: CMS: Need CMSInitiatingPermOccupancyFraction for perm, divorcing from CMSInitiatingOccupancyFraction Summary: The option CMSInitiatingPermOccupancyFraction now controls perm triggering threshold. Even though the actual value of the threshold has not yet been changed, so there is no change in policy, we now have the infrastructure in place for dynamically deciding when to collect the perm gen, an issue that will be addressed in the near future. Reviewed-by: jmasa
author ysr
date Sun, 16 Mar 2008 21:57:25 -0700
parents a61af66fc99e
children 68e0443dfd9c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 #
a61af66fc99e Initial load
duke
parents:
diff changeset
2 # Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
a61af66fc99e Initial load
duke
parents:
diff changeset
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a61af66fc99e Initial load
duke
parents:
diff changeset
4 #
a61af66fc99e Initial load
duke
parents:
diff changeset
5 # This code is free software; you can redistribute it and/or modify it
a61af66fc99e Initial load
duke
parents:
diff changeset
6 # under the terms of the GNU General Public License version 2 only, as
a61af66fc99e Initial load
duke
parents:
diff changeset
7 # published by the Free Software Foundation.
a61af66fc99e Initial load
duke
parents:
diff changeset
8 #
a61af66fc99e Initial load
duke
parents:
diff changeset
9 # This code is distributed in the hope that it will be useful, but WITHOUT
a61af66fc99e Initial load
duke
parents:
diff changeset
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a61af66fc99e Initial load
duke
parents:
diff changeset
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a61af66fc99e Initial load
duke
parents:
diff changeset
12 # version 2 for more details (a copy is included in the LICENSE file that
a61af66fc99e Initial load
duke
parents:
diff changeset
13 # accompanied this code).
a61af66fc99e Initial load
duke
parents:
diff changeset
14 #
a61af66fc99e Initial load
duke
parents:
diff changeset
15 # You should have received a copy of the GNU General Public License version
a61af66fc99e Initial load
duke
parents:
diff changeset
16 # 2 along with this work; if not, write to the Free Software Foundation,
a61af66fc99e Initial load
duke
parents:
diff changeset
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a61af66fc99e Initial load
duke
parents:
diff changeset
18 #
a61af66fc99e Initial load
duke
parents:
diff changeset
19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
a61af66fc99e Initial load
duke
parents:
diff changeset
20 # CA 95054 USA or visit www.sun.com if you need additional information or
a61af66fc99e Initial load
duke
parents:
diff changeset
21 # have any questions.
a61af66fc99e Initial load
duke
parents:
diff changeset
22 #
a61af66fc99e Initial load
duke
parents:
diff changeset
23 #
a61af66fc99e Initial load
duke
parents:
diff changeset
24
a61af66fc99e Initial load
duke
parents:
diff changeset
25 #
a61af66fc99e Initial load
duke
parents:
diff changeset
26 # Makefile to run jtreg
a61af66fc99e Initial load
duke
parents:
diff changeset
27 #
a61af66fc99e Initial load
duke
parents:
diff changeset
28
a61af66fc99e Initial load
duke
parents:
diff changeset
29 OSNAME = $(shell uname -s)
a61af66fc99e Initial load
duke
parents:
diff changeset
30 ifeq ($(OSNAME), SunOS)
a61af66fc99e Initial load
duke
parents:
diff changeset
31 PLATFORM = solaris
a61af66fc99e Initial load
duke
parents:
diff changeset
32 JCT_PLATFORM = solaris
a61af66fc99e Initial load
duke
parents:
diff changeset
33 ARCH = $(shell uname -p)
a61af66fc99e Initial load
duke
parents:
diff changeset
34 ifeq ($(ARCH), i386)
a61af66fc99e Initial load
duke
parents:
diff changeset
35 ARCH=i586
a61af66fc99e Initial load
duke
parents:
diff changeset
36 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
37 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
38 ifeq ($(OSNAME), Linux)
a61af66fc99e Initial load
duke
parents:
diff changeset
39 PLATFORM = linux
a61af66fc99e Initial load
duke
parents:
diff changeset
40 JCT_PLATFORM = linux
a61af66fc99e Initial load
duke
parents:
diff changeset
41 ARCH = $(shell uname -m)
a61af66fc99e Initial load
duke
parents:
diff changeset
42 ifeq ($(ARCH), i386)
a61af66fc99e Initial load
duke
parents:
diff changeset
43 ARCH=i586
a61af66fc99e Initial load
duke
parents:
diff changeset
44 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
45 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
46 ifeq ($(OSNAME), Windows_NT)
a61af66fc99e Initial load
duke
parents:
diff changeset
47 PLATFORM = windows
a61af66fc99e Initial load
duke
parents:
diff changeset
48 JCT_PLATFORM = win32
a61af66fc99e Initial load
duke
parents:
diff changeset
49 ifeq ($(word 1, $(PROCESSOR_IDENTIFIER)),ia64)
a61af66fc99e Initial load
duke
parents:
diff changeset
50 ARCH=ia64
a61af66fc99e Initial load
duke
parents:
diff changeset
51 else
a61af66fc99e Initial load
duke
parents:
diff changeset
52 ifeq ($(word 1, $(PROCESSOR_IDENTIFIER)),AMD64)
a61af66fc99e Initial load
duke
parents:
diff changeset
53 ARCH=x64
a61af66fc99e Initial load
duke
parents:
diff changeset
54 else
a61af66fc99e Initial load
duke
parents:
diff changeset
55 ifeq ($(word 1, $(PROCESSOR_IDENTIFIER)),EM64T)
a61af66fc99e Initial load
duke
parents:
diff changeset
56 ARCH=x64
a61af66fc99e Initial load
duke
parents:
diff changeset
57 else
a61af66fc99e Initial load
duke
parents:
diff changeset
58 ARCH=i586
a61af66fc99e Initial load
duke
parents:
diff changeset
59 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
60 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
61 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
62 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
63
a61af66fc99e Initial load
duke
parents:
diff changeset
64 # Default bundle of all test results (passed or not)
a61af66fc99e Initial load
duke
parents:
diff changeset
65 JPRT_ARCHIVE_BUNDLE=$(TEST_ROOT)/JPRT_ARCHIVE_BUNDLE.zip
a61af66fc99e Initial load
duke
parents:
diff changeset
66
a61af66fc99e Initial load
duke
parents:
diff changeset
67 # Default home for JTREG
a61af66fc99e Initial load
duke
parents:
diff changeset
68 ifeq ($(PLATFORM), windows)
a61af66fc99e Initial load
duke
parents:
diff changeset
69 JT_HOME = J:/svc/jct-tools3.2.2_01
a61af66fc99e Initial load
duke
parents:
diff changeset
70 else
a61af66fc99e Initial load
duke
parents:
diff changeset
71 JT_HOME = /java/svc/jct-tools3.2.2_01
a61af66fc99e Initial load
duke
parents:
diff changeset
72 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
73
a61af66fc99e Initial load
duke
parents:
diff changeset
74 # Default JTREG to run
a61af66fc99e Initial load
duke
parents:
diff changeset
75 JTREG = $(JT_HOME)/$(JCT_PLATFORM)/bin/jtreg
a61af66fc99e Initial load
duke
parents:
diff changeset
76
a61af66fc99e Initial load
duke
parents:
diff changeset
77 # Root of this test area
a61af66fc99e Initial load
duke
parents:
diff changeset
78 TEST_ROOT := $(shell pwd)
a61af66fc99e Initial load
duke
parents:
diff changeset
79
a61af66fc99e Initial load
duke
parents:
diff changeset
80 # Default JDK to test
a61af66fc99e Initial load
duke
parents:
diff changeset
81 JAVA_HOME = $(TEST_ROOT)/../build/$(PLATFORM)-$(ARCH)
a61af66fc99e Initial load
duke
parents:
diff changeset
82
a61af66fc99e Initial load
duke
parents:
diff changeset
83 # The test directories to run
a61af66fc99e Initial load
duke
parents:
diff changeset
84 DEFAULT_TESTDIRS = serviceability
a61af66fc99e Initial load
duke
parents:
diff changeset
85 TESTDIRS = $(DEFAULT_TESTDIRS)
a61af66fc99e Initial load
duke
parents:
diff changeset
86
a61af66fc99e Initial load
duke
parents:
diff changeset
87 # Files that hold total passed and failed counts (passed==0 is bad)
a61af66fc99e Initial load
duke
parents:
diff changeset
88 JTREG_TOTALS_DIR = $(TEST_ROOT)/JTREG_TOTALS_$(PLATFORM)_$(ARCH)
a61af66fc99e Initial load
duke
parents:
diff changeset
89 JTREG_FAILED = $(JTREG_TOTALS_DIR)/failed_count
a61af66fc99e Initial load
duke
parents:
diff changeset
90 JTREG_PASSED = $(JTREG_TOTALS_DIR)/passed_count
a61af66fc99e Initial load
duke
parents:
diff changeset
91
a61af66fc99e Initial load
duke
parents:
diff changeset
92 # Root of all test results
a61af66fc99e Initial load
duke
parents:
diff changeset
93 JTREG_ALL_OUTPUT_DIRNAME = JTREG_OUTPUT_$(PLATFORM)_$(ARCH)
a61af66fc99e Initial load
duke
parents:
diff changeset
94 JTREG_ALL_OUTPUT_DIR = $(TEST_ROOT)/$(JTREG_ALL_OUTPUT_DIRNAME)
a61af66fc99e Initial load
duke
parents:
diff changeset
95
a61af66fc99e Initial load
duke
parents:
diff changeset
96 # Test results for one test directory
a61af66fc99e Initial load
duke
parents:
diff changeset
97 JTREG_TEST_OUTPUT_DIR = $(JTREG_ALL_OUTPUT_DIR)/$@
a61af66fc99e Initial load
duke
parents:
diff changeset
98 JTREG_TEST_REPORT_DIR = $(JTREG_TEST_OUTPUT_DIR)/JTreport
a61af66fc99e Initial load
duke
parents:
diff changeset
99 JTREG_TEST_WORK_DIR = $(JTREG_TEST_OUTPUT_DIR)/JTwork
a61af66fc99e Initial load
duke
parents:
diff changeset
100 JTREG_TEST_SUMMARY = $(JTREG_TEST_REPORT_DIR)/summary.txt
a61af66fc99e Initial load
duke
parents:
diff changeset
101
a61af66fc99e Initial load
duke
parents:
diff changeset
102 # Temp files used by this Makefile
a61af66fc99e Initial load
duke
parents:
diff changeset
103 JTREG_TEST_TEMP_DIR = $(JTREG_ALL_OUTPUT_DIR)/$@/temp
a61af66fc99e Initial load
duke
parents:
diff changeset
104 JTREG_TEMP_PASSED = $(JTREG_TEST_TEMP_DIR)/passed
a61af66fc99e Initial load
duke
parents:
diff changeset
105 JTREG_TEMP_FAILED = $(JTREG_TEST_TEMP_DIR)/failed
a61af66fc99e Initial load
duke
parents:
diff changeset
106 JTREG_TEMP_OUTPUT = $(JTREG_TEST_TEMP_DIR)/output
a61af66fc99e Initial load
duke
parents:
diff changeset
107 JTREG_TEMP_RESULTS = $(JTREG_TEST_TEMP_DIR)/results
a61af66fc99e Initial load
duke
parents:
diff changeset
108
a61af66fc99e Initial load
duke
parents:
diff changeset
109 # JTREG options (different for 2.1.6 and 3.2.2_01)
a61af66fc99e Initial load
duke
parents:
diff changeset
110 JTREG_COMMON_OPTIONS = -r:$(JTREG_TEST_REPORT_DIR) \
a61af66fc99e Initial load
duke
parents:
diff changeset
111 -w:$(JTREG_TEST_WORK_DIR) \
a61af66fc99e Initial load
duke
parents:
diff changeset
112 -testjdk:$(JAVA_HOME) \
a61af66fc99e Initial load
duke
parents:
diff changeset
113 -automatic \
a61af66fc99e Initial load
duke
parents:
diff changeset
114 -verbose:all
a61af66fc99e Initial load
duke
parents:
diff changeset
115 JTREG_216_OPTIONS = $(JTREG_COMMON_OPTIONS) $@ $(JAVA_ARGS)
a61af66fc99e Initial load
duke
parents:
diff changeset
116 JTREG_322_OPTIONS = $(JTREG_COMMON_OPTIONS) $(JAVA_ARGS:%=-vmoption:%) $@
a61af66fc99e Initial load
duke
parents:
diff changeset
117
a61af66fc99e Initial load
duke
parents:
diff changeset
118 # Default make rule
a61af66fc99e Initial load
duke
parents:
diff changeset
119 all: clean check tests
a61af66fc99e Initial load
duke
parents:
diff changeset
120
a61af66fc99e Initial load
duke
parents:
diff changeset
121 # Chaeck to make sure these directories exist
a61af66fc99e Initial load
duke
parents:
diff changeset
122 check: $(JT_HOME) $(JAVA_HOME) $(JTREG)
a61af66fc99e Initial load
duke
parents:
diff changeset
123
a61af66fc99e Initial load
duke
parents:
diff changeset
124 # Prime the test run
a61af66fc99e Initial load
duke
parents:
diff changeset
125 primecounts: FRC
a61af66fc99e Initial load
duke
parents:
diff changeset
126 @rm -f -r $(JTREG_TOTALS_DIR)
a61af66fc99e Initial load
duke
parents:
diff changeset
127 @mkdir -p $(JTREG_TOTALS_DIR)
a61af66fc99e Initial load
duke
parents:
diff changeset
128 @echo "0" > $(JTREG_FAILED)
a61af66fc99e Initial load
duke
parents:
diff changeset
129 @echo "0" > $(JTREG_PASSED)
a61af66fc99e Initial load
duke
parents:
diff changeset
130
a61af66fc99e Initial load
duke
parents:
diff changeset
131 # Run the tests and determine the 'make' command exit status
a61af66fc99e Initial load
duke
parents:
diff changeset
132 # Ultimately we determine the make exit code based on the passed/failed count
a61af66fc99e Initial load
duke
parents:
diff changeset
133 tests: primecounts $(TESTDIRS)
a61af66fc99e Initial load
duke
parents:
diff changeset
134 @echo "JTREG TOTAL: passed=`cat $(JTREG_PASSED)` failed=`cat $(JTREG_FAILED)`"
a61af66fc99e Initial load
duke
parents:
diff changeset
135 zip -q -r $(JPRT_ARCHIVE_BUNDLE) $(JTREG_ALL_OUTPUT_DIRNAME)
a61af66fc99e Initial load
duke
parents:
diff changeset
136 @if [ `cat $(JTREG_FAILED)` -ne 0 -o \
a61af66fc99e Initial load
duke
parents:
diff changeset
137 `cat $(JTREG_PASSED)` -le 0 ] ; then \
a61af66fc99e Initial load
duke
parents:
diff changeset
138 echo "JTREG FAILED"; \
a61af66fc99e Initial load
duke
parents:
diff changeset
139 exit 1; \
a61af66fc99e Initial load
duke
parents:
diff changeset
140 else \
a61af66fc99e Initial load
duke
parents:
diff changeset
141 echo "JTREG PASSED"; \
a61af66fc99e Initial load
duke
parents:
diff changeset
142 exit 0; \
a61af66fc99e Initial load
duke
parents:
diff changeset
143 fi
a61af66fc99e Initial load
duke
parents:
diff changeset
144
a61af66fc99e Initial load
duke
parents:
diff changeset
145 # Just make sure these directires exist
a61af66fc99e Initial load
duke
parents:
diff changeset
146 $(JT_HOME) $(JAVA_HOME): FRC
a61af66fc99e Initial load
duke
parents:
diff changeset
147 @if [ ! -d $@ ] ; then \
a61af66fc99e Initial load
duke
parents:
diff changeset
148 echo "ERROR: Directory $@ does not exist"; \
a61af66fc99e Initial load
duke
parents:
diff changeset
149 exit 1; \
a61af66fc99e Initial load
duke
parents:
diff changeset
150 fi
a61af66fc99e Initial load
duke
parents:
diff changeset
151
a61af66fc99e Initial load
duke
parents:
diff changeset
152 # Make sure this file exists
a61af66fc99e Initial load
duke
parents:
diff changeset
153 $(JTREG): FRC
a61af66fc99e Initial load
duke
parents:
diff changeset
154 @if [ ! -f $@ ] ; then \
a61af66fc99e Initial load
duke
parents:
diff changeset
155 echo "ERROR: File $@ does not exist"; \
a61af66fc99e Initial load
duke
parents:
diff changeset
156 exit 1; \
a61af66fc99e Initial load
duke
parents:
diff changeset
157 fi
a61af66fc99e Initial load
duke
parents:
diff changeset
158
a61af66fc99e Initial load
duke
parents:
diff changeset
159 # Process each test directory one by one, this rule always completes.
a61af66fc99e Initial load
duke
parents:
diff changeset
160 # Note that the use of 'tee' tosses the jtreg process exit status, this
a61af66fc99e Initial load
duke
parents:
diff changeset
161 # is as expected because even if jtreg fails, we need to save the
a61af66fc99e Initial load
duke
parents:
diff changeset
162 # output. So we update the JTREG_PASSED and JTREG_FAILED count files.
a61af66fc99e Initial load
duke
parents:
diff changeset
163 # Note that missing the 'results:' line in the last few lines of output
a61af66fc99e Initial load
duke
parents:
diff changeset
164 # will indicate a failure (or a bump by one of the JTREG_FAILED file.
a61af66fc99e Initial load
duke
parents:
diff changeset
165 # Note that passed: 0 or no passed: indication means a failure.
a61af66fc99e Initial load
duke
parents:
diff changeset
166 # Note that any indication of the word 'failed' indicates failure.
a61af66fc99e Initial load
duke
parents:
diff changeset
167 # Ultimately if the contents of JTREG_FAILED is not 0, we have failed
a61af66fc99e Initial load
duke
parents:
diff changeset
168 # tests, and if the contents of JTREG_PASSED is 0, we consider that a
a61af66fc99e Initial load
duke
parents:
diff changeset
169 # failure.
a61af66fc99e Initial load
duke
parents:
diff changeset
170 $(TESTDIRS): FRC
a61af66fc99e Initial load
duke
parents:
diff changeset
171 @if [ ! -d $@ ] ; then \
a61af66fc99e Initial load
duke
parents:
diff changeset
172 echo "ERROR: Directory $@ does not exist"; \
a61af66fc99e Initial load
duke
parents:
diff changeset
173 exit 1; \
a61af66fc99e Initial load
duke
parents:
diff changeset
174 fi
a61af66fc99e Initial load
duke
parents:
diff changeset
175 @echo "---------------------------------------------------"
a61af66fc99e Initial load
duke
parents:
diff changeset
176 @rm -f -r $(JTREG_TEST_OUTPUT_DIR)
a61af66fc99e Initial load
duke
parents:
diff changeset
177 @mkdir -p $(JTREG_TEST_OUTPUT_DIR)
a61af66fc99e Initial load
duke
parents:
diff changeset
178 @mkdir -p $(JTREG_TEST_WORK_DIR)
a61af66fc99e Initial load
duke
parents:
diff changeset
179 @mkdir -p $(JTREG_TEST_WORK_DIR)/scratch
a61af66fc99e Initial load
duke
parents:
diff changeset
180 @mkdir -p $(JTREG_TEST_REPORT_DIR)
a61af66fc99e Initial load
duke
parents:
diff changeset
181 @mkdir -p $(JTREG_TEST_TEMP_DIR)
a61af66fc99e Initial load
duke
parents:
diff changeset
182 @echo "Testing $@"
a61af66fc99e Initial load
duke
parents:
diff changeset
183 @echo "Using JAVA_HOME=$(JAVA_HOME)"
a61af66fc99e Initial load
duke
parents:
diff changeset
184 @echo "Using JAVA_ARGS=$(JAVA_ARGS)"
a61af66fc99e Initial load
duke
parents:
diff changeset
185 @if [ "`$(JTREG) -help 2>&1 | fgrep -- -vmoption`" != "" ] ; then \
a61af66fc99e Initial load
duke
parents:
diff changeset
186 echo "Assume we are using jtreg 3.2.2_01 or newer"; \
a61af66fc99e Initial load
duke
parents:
diff changeset
187 echo "$(JTREG) $(JTREG_322_OPTIONS)"; \
a61af66fc99e Initial load
duke
parents:
diff changeset
188 $(JTREG) $(JTREG_322_OPTIONS) 2>&1 | tee $(JTREG_TEMP_OUTPUT) ; \
a61af66fc99e Initial load
duke
parents:
diff changeset
189 else \
a61af66fc99e Initial load
duke
parents:
diff changeset
190 echo "Assume we are using jtreg 2.1.6"; \
a61af66fc99e Initial load
duke
parents:
diff changeset
191 echo "$(JTREG) $(JTREG_216_OPTIONS)"; \
a61af66fc99e Initial load
duke
parents:
diff changeset
192 $(JTREG) $(JTREG_216_OPTIONS) 2>&1 | tee $(JTREG_TEMP_OUTPUT) ; \
a61af66fc99e Initial load
duke
parents:
diff changeset
193 fi
a61af66fc99e Initial load
duke
parents:
diff changeset
194 @echo "---------------------------------------------------"
a61af66fc99e Initial load
duke
parents:
diff changeset
195 @echo "Extracting passed and failed counts from jtreg output"
a61af66fc99e Initial load
duke
parents:
diff changeset
196 @tail -10 $(JTREG_TEMP_OUTPUT) | fgrep -i 'results:' | \
a61af66fc99e Initial load
duke
parents:
diff changeset
197 tail -1 | tee $(JTREG_TEMP_RESULTS)
a61af66fc99e Initial load
duke
parents:
diff changeset
198 @sed -e 's@.*\ passed:\ \([1-9][0-9]*\).*@\1@' $(JTREG_TEMP_RESULTS) \
a61af66fc99e Initial load
duke
parents:
diff changeset
199 > $(JTREG_TEMP_PASSED)
a61af66fc99e Initial load
duke
parents:
diff changeset
200 @if [ "`cat $(JTREG_TEMP_PASSED)`" = "" ] ; then \
a61af66fc99e Initial load
duke
parents:
diff changeset
201 echo "ERROR: No passed indication in results"; \
a61af66fc99e Initial load
duke
parents:
diff changeset
202 expr `cat $(JTREG_FAILED)` '+' 1 > $(JTREG_FAILED); \
a61af66fc99e Initial load
duke
parents:
diff changeset
203 elif [ `cat $(JTREG_TEMP_PASSED)` -le 0 ] ; then \
a61af66fc99e Initial load
duke
parents:
diff changeset
204 echo "ERROR: Passed count appears to be 0"; \
a61af66fc99e Initial load
duke
parents:
diff changeset
205 expr `cat $(JTREG_FAILED)` '+' 1 > $(JTREG_FAILED); \
a61af66fc99e Initial load
duke
parents:
diff changeset
206 elif [ "`fgrep -i failed $(JTREG_TEMP_RESULTS)`" = "" ] ; then \
a61af66fc99e Initial load
duke
parents:
diff changeset
207 echo "No indication anything failed"; \
a61af66fc99e Initial load
duke
parents:
diff changeset
208 expr `cat $(JTREG_PASSED)` '+' `cat $(JTREG_TEMP_PASSED)` \
a61af66fc99e Initial load
duke
parents:
diff changeset
209 > $(JTREG_PASSED); \
a61af66fc99e Initial load
duke
parents:
diff changeset
210 else \
a61af66fc99e Initial load
duke
parents:
diff changeset
211 sed -e 's@.*\ failed:\ \([1-9][0-9]*\).*@\1@' $(JTREG_TEMP_FAILED) \
a61af66fc99e Initial load
duke
parents:
diff changeset
212 > $(JTREG_TEMP_FAILED); \
a61af66fc99e Initial load
duke
parents:
diff changeset
213 if [ "`cat $(JTREG_TEMP_FAILED)`" = "" ] ; then \
a61af66fc99e Initial load
duke
parents:
diff changeset
214 echo "ERROR: Failed pattern but no failed count in results"; \
a61af66fc99e Initial load
duke
parents:
diff changeset
215 expr `cat $(JTREG_FAILED)` '+' 1 > $(JTREG_FAILED); \
a61af66fc99e Initial load
duke
parents:
diff changeset
216 elif [ `cat $(JTREG_TEMP_FAILED)` -le 0 ] ; then \
a61af66fc99e Initial load
duke
parents:
diff changeset
217 echo "ERROR: Failed count is 0, did something failed or not?"; \
a61af66fc99e Initial load
duke
parents:
diff changeset
218 expr `cat $(JTREG_FAILED)` '+' 1 > $(JTREG_FAILED); \
a61af66fc99e Initial load
duke
parents:
diff changeset
219 else \
a61af66fc99e Initial load
duke
parents:
diff changeset
220 expr `cat $(JTREG_FAILED)` '+' `cat $(JTREG_TEMP_FAILED)` \
a61af66fc99e Initial load
duke
parents:
diff changeset
221 > $(JTREG_FAILED); \
a61af66fc99e Initial load
duke
parents:
diff changeset
222 fi; \
a61af66fc99e Initial load
duke
parents:
diff changeset
223 fi
a61af66fc99e Initial load
duke
parents:
diff changeset
224 @echo "---------------------------------------------------"
a61af66fc99e Initial load
duke
parents:
diff changeset
225 @echo "Summary: "
a61af66fc99e Initial load
duke
parents:
diff changeset
226 @if [ -f $(JTREG_TEST_SUMMARY) ] ; then \
a61af66fc99e Initial load
duke
parents:
diff changeset
227 cat $(JTREG_TEST_SUMMARY) ; \
a61af66fc99e Initial load
duke
parents:
diff changeset
228 else \
a61af66fc99e Initial load
duke
parents:
diff changeset
229 echo "ERROR: Missing $(JTREG_TEST_SUMMARY)"; \
a61af66fc99e Initial load
duke
parents:
diff changeset
230 fi
a61af66fc99e Initial load
duke
parents:
diff changeset
231 @echo "---------------------------------------------------"
a61af66fc99e Initial load
duke
parents:
diff changeset
232
a61af66fc99e Initial load
duke
parents:
diff changeset
233 # Cleanup
a61af66fc99e Initial load
duke
parents:
diff changeset
234 clean:
a61af66fc99e Initial load
duke
parents:
diff changeset
235 rm -f -r $(JTREG_ALL_OUTPUT_DIR)
a61af66fc99e Initial load
duke
parents:
diff changeset
236 rm -f $(JPRT_ARCHIVE_BUNDLE)
a61af66fc99e Initial load
duke
parents:
diff changeset
237
a61af66fc99e Initial load
duke
parents:
diff changeset
238 FRC:
a61af66fc99e Initial load
duke
parents:
diff changeset
239