40
40
xcode-toolset-version :
41
41
required : false
42
42
type : string
43
+ debug-suffix :
44
+ required : false
45
+ type : string
46
+ static-suffix :
47
+ required : false
48
+ type : string
43
49
44
50
env :
45
51
# These are needed to make the MSYS2 bash work properly
@@ -86,35 +92,35 @@ jobs:
86
92
87
93
- test-name : ' hs/tier1 common'
88
94
test-suite : ' test/hotspot/jtreg/:tier1_common'
89
- debug-suffix : - debug
95
+ debug-suffix : ${{ inputs. debug-suffix }}
90
96
91
97
- test-name : ' hs/tier1 compiler part 1'
92
98
test-suite : ' test/hotspot/jtreg/:tier1_compiler_1'
93
- debug-suffix : - debug
99
+ debug-suffix : ${{ inputs. debug-suffix }}
94
100
95
101
- test-name : ' hs/tier1 compiler part 2'
96
102
test-suite : ' test/hotspot/jtreg/:tier1_compiler_2'
97
- debug-suffix : - debug
103
+ debug-suffix : ${{ inputs. debug-suffix }}
98
104
99
105
- test-name : ' hs/tier1 compiler part 3'
100
106
test-suite : ' test/hotspot/jtreg/:tier1_compiler_3'
101
- debug-suffix : - debug
107
+ debug-suffix : ${{ inputs. debug-suffix }}
102
108
103
109
- test-name : ' hs/tier1 gc'
104
110
test-suite : ' test/hotspot/jtreg/:tier1_gc'
105
- debug-suffix : - debug
111
+ debug-suffix : ${{ inputs. debug-suffix }}
106
112
107
113
- test-name : ' hs/tier1 runtime'
108
114
test-suite : ' test/hotspot/jtreg/:tier1_runtime'
109
- debug-suffix : - debug
115
+ debug-suffix : ${{ inputs. debug-suffix }}
110
116
111
117
- test-name : ' hs/tier1 serviceability'
112
118
test-suite : ' test/hotspot/jtreg/:tier1_serviceability'
113
- debug-suffix : - debug
119
+ debug-suffix : ${{ inputs. debug-suffix }}
114
120
115
121
- test-name : ' lib-test/tier1'
116
122
test-suite : ' test/lib-test/:tier1'
117
- debug-suffix : - debug
123
+ debug-suffix : ${{ inputs. debug-suffix }}
118
124
119
125
steps :
120
126
- name : ' Checkout the JDK source'
@@ -140,6 +146,7 @@ jobs:
140
146
with :
141
147
platform : ${{ inputs.platform }}
142
148
debug-suffix : ${{ matrix.debug-suffix }}
149
+ static-suffix : ${{ inputs.static-suffix }}
143
150
144
151
- name : ' Install dependencies'
145
152
run : |
@@ -160,6 +167,21 @@ jobs:
160
167
else
161
168
echo "value=$PATH" >> $GITHUB_OUTPUT
162
169
fi
170
+ if [[ '${{ inputs.static-suffix }}' == '-static' ]]; then
171
+ echo "static-hotspot-problemlist-path=`pwd`/test/hotspot/jtreg/ProblemList-StaticJdk.txt" >> $GITHUB_OUTPUT
172
+ echo "static-jdk-problemlist-path=`pwd`/test/jdk/ProblemList-StaticJdk.txt" >> $GITHUB_OUTPUT
173
+ echo "static-langtools-problemlist-path=`pwd`/test/langtools/ProblemList-StaticJdk.txt" >> $GITHUB_OUTPUT
174
+ echo "static-lib-test-problemlist-path=`pwd`/test/lib-test/ProblemList-StaticJdk.txt" >> $GITHUB_OUTPUT
175
+ fi
176
+
177
+ - name : ' Set Extra Options'
178
+ id : extra-options
179
+ run : |
180
+ if [[ '${{ inputs.static-suffix }}' == '-static' ]]; then
181
+ echo "test-jdk=JDK_UNDER_TEST=${{ steps.bundles.outputs.static-jdk-path }}" >> $GITHUB_OUTPUT
182
+ echo "compile-jdk=JDK_FOR_COMPILE=${{ steps.bundles.outputs.jdk-path }}" >> $GITHUB_OUTPUT
183
+ echo "extra-problem-lists=EXTRA_PROBLEM_LISTS=${{ steps.path.outputs.static-hotspot-problemlist-path }}%20${{ steps.path.outputs.static-jdk-problemlist-path }}%20${{ steps.path.outputs.static-langtools-problemlist-path }}%20${{ steps.path.outputs.static-lib-test-problemlist-path }}" >> $GITHUB_OUTPUT
184
+ fi
163
185
164
186
- name : ' Run tests'
165
187
id : run-tests
@@ -171,7 +193,9 @@ jobs:
171
193
JDK_IMAGE_DIR=${{ steps.bundles.outputs.jdk-path }}
172
194
SYMBOLS_IMAGE_DIR=${{ steps.bundles.outputs.symbols-path }}
173
195
TEST_IMAGE_DIR=${{ steps.bundles.outputs.tests-path }}
174
- JTREG='JAVA_OPTIONS=-XX:-CreateCoredumpOnCrash;VERBOSE=fail,error,time;KEYWORDS=!headful'
196
+ ${{ steps.extra-options.outputs.test-jdk }}
197
+ ${{ steps.extra-options.outputs.compile-jdk }}
198
+ JTREG='JAVA_OPTIONS=-XX:-CreateCoredumpOnCrash;VERBOSE=fail,error,time;KEYWORDS=!headful;${{ steps.extra-options.outputs.extra-problem-lists }}'
175
199
&& bash ./.github/scripts/gen-test-summary.sh "$GITHUB_STEP_SUMMARY" "$GITHUB_OUTPUT"
176
200
env :
177
201
PATH : ${{ steps.path.outputs.value }}
@@ -204,7 +228,7 @@ jobs:
204
228
echo '::warning ::Missing test-support directory'
205
229
fi
206
230
207
- artifact_name="results-${{ inputs.platform }}-$(echo ${{ matrix.test-name }} | tr '/ ' '__')"
231
+ artifact_name="results-${{ inputs.platform }}-$(echo ${{ matrix.test-name }}${{ inputs.static-suffix }} | tr '/ ' '__')"
208
232
echo "artifact-name=$artifact_name" >> $GITHUB_OUTPUT
209
233
if : always()
210
234
0 commit comments