4040 xcode-toolset-version :
4141 required : false
4242 type : string
43+ debug-suffix :
44+ required : false
45+ type : string
46+ static-suffix :
47+ required : false
48+ type : string
4349
4450env :
4551 # These are needed to make the MSYS2 bash work properly
@@ -86,35 +92,35 @@ jobs:
8692
8793 - test-name : ' hs/tier1 common'
8894 test-suite : ' test/hotspot/jtreg/:tier1_common'
89- debug-suffix : - debug
95+ debug-suffix : ${{ inputs. debug-suffix }}
9096
9197 - test-name : ' hs/tier1 compiler part 1'
9298 test-suite : ' test/hotspot/jtreg/:tier1_compiler_1'
93- debug-suffix : - debug
99+ debug-suffix : ${{ inputs. debug-suffix }}
94100
95101 - test-name : ' hs/tier1 compiler part 2'
96102 test-suite : ' test/hotspot/jtreg/:tier1_compiler_2'
97- debug-suffix : - debug
103+ debug-suffix : ${{ inputs. debug-suffix }}
98104
99105 - test-name : ' hs/tier1 compiler part 3'
100106 test-suite : ' test/hotspot/jtreg/:tier1_compiler_3'
101- debug-suffix : - debug
107+ debug-suffix : ${{ inputs. debug-suffix }}
102108
103109 - test-name : ' hs/tier1 gc'
104110 test-suite : ' test/hotspot/jtreg/:tier1_gc'
105- debug-suffix : - debug
111+ debug-suffix : ${{ inputs. debug-suffix }}
106112
107113 - test-name : ' hs/tier1 runtime'
108114 test-suite : ' test/hotspot/jtreg/:tier1_runtime'
109- debug-suffix : - debug
115+ debug-suffix : ${{ inputs. debug-suffix }}
110116
111117 - test-name : ' hs/tier1 serviceability'
112118 test-suite : ' test/hotspot/jtreg/:tier1_serviceability'
113- debug-suffix : - debug
119+ debug-suffix : ${{ inputs. debug-suffix }}
114120
115121 - test-name : ' lib-test/tier1'
116122 test-suite : ' test/lib-test/:tier1'
117- debug-suffix : - debug
123+ debug-suffix : ${{ inputs. debug-suffix }}
118124
119125 steps :
120126 - name : ' Checkout the JDK source'
@@ -140,6 +146,7 @@ jobs:
140146 with :
141147 platform : ${{ inputs.platform }}
142148 debug-suffix : ${{ matrix.debug-suffix }}
149+ static-suffix : ${{ inputs.static-suffix }}
143150
144151 - name : ' Install dependencies'
145152 run : |
@@ -160,6 +167,21 @@ jobs:
160167 else
161168 echo "value=$PATH" >> $GITHUB_OUTPUT
162169 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
163185
164186 - name : ' Run tests'
165187 id : run-tests
@@ -171,7 +193,9 @@ jobs:
171193 JDK_IMAGE_DIR=${{ steps.bundles.outputs.jdk-path }}
172194 SYMBOLS_IMAGE_DIR=${{ steps.bundles.outputs.symbols-path }}
173195 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 }}'
175199 && bash ./.github/scripts/gen-test-summary.sh "$GITHUB_STEP_SUMMARY" "$GITHUB_OUTPUT"
176200 env :
177201 PATH : ${{ steps.path.outputs.value }}
@@ -204,7 +228,7 @@ jobs:
204228 echo '::warning ::Missing test-support directory'
205229 fi
206230
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 '/ ' '__')"
208232 echo "artifact-name=$artifact_name" >> $GITHUB_OUTPUT
209233 if : always()
210234
0 commit comments