@@ -2062,20 +2062,23 @@ mod snapshot {
2062
2062
[build] rustc 0 <host> -> rustc 1 <host>
2063
2063
[build] rustc 1 <host> -> std 1 <host>
2064
2064
[build] rustc 0 <host> -> Compiletest 1 <host>
2065
- [test] Ui <host>
2066
- [test] Crashes <host>
2065
+ [test] compiletest-ui 1 <host>
2066
+ [test] compiletest-crashes 1 <host>
2067
2067
[build] rustc 0 <host> -> CoverageDump 1 <host>
2068
+ [test] compiletest-coverage 1 <host>
2069
+ [test] compiletest-coverage 1 <host>
2068
2070
[build] rustc 1 <host> -> std 1 <host>
2069
- [test] CodegenLlvm <host>
2070
- [test] CodegenUnits <host>
2071
- [test] AssemblyLlvm <host>
2072
- [test] Incremental <host>
2073
- [test] Debuginfo <host>
2074
- [test] UiFullDeps <host>
2071
+ [test] compiletest-mir-opt 1 <host>
2072
+ [test] compiletest-codegen-llvm 1 <host>
2073
+ [test] compiletest-codegen-units 1 <host>
2074
+ [test] compiletest-assembly-llvm 1 <host>
2075
+ [test] compiletest-incremental 1 <host>
2076
+ [test] compiletest-debuginfo 1 <host>
2077
+ [test] compiletest-ui-fulldeps 1 <host>
2075
2078
[build] rustdoc 1 <host>
2076
- [test] Rustdoc <host>
2077
- [test] CoverageRunRustdoc <host>
2078
- [test] Pretty <host>
2079
+ [test] compiletest-rustdoc 1 <host>
2080
+ [test] compiletest-coverage-run-rustdoc 1 <host>
2081
+ [test] compiletest-pretty 1 <host>
2079
2082
[build] rustc 1 <host> -> std 1 <host>
2080
2083
[build] rustc 0 <host> -> std 0 <host>
2081
2084
[test] rustc 0 <host> -> CrateLibrustc 1 <host>
@@ -2113,16 +2116,107 @@ mod snapshot {
2113
2116
[test] rustc 0 <host> -> rust-analyzer 1 <host>
2114
2117
[build] rustc 0 <host> -> RustdocTheme 1 <host>
2115
2118
[test] rustdoc-theme 1 <host>
2116
- [test] RustdocUi <host>
2119
+ [test] compiletest-rustdoc-ui 1 <host>
2117
2120
[build] rustc 0 <host> -> JsonDocCk 1 <host>
2118
2121
[build] rustc 0 <host> -> JsonDocLint 1 <host>
2119
- [test] RustdocJson <host>
2122
+ [test] compiletest-rustdoc-json 1 <host>
2120
2123
[doc] rustc 0 <host> -> rustc 1 <host>
2121
2124
[build] rustc 0 <host> -> HtmlChecker 1 <host>
2122
2125
[test] html-check <host>
2123
2126
[build] rustc 0 <host> -> RunMakeSupport 1 <host>
2124
2127
[build] rustc 1 <host> -> cargo 2 <host>
2125
- [test] RunMake <host>
2128
+ [test] compiletest-run-make 1 <host>
2129
+ " ) ;
2130
+ }
2131
+
2132
+ #[ test]
2133
+ fn test_compiletest_suites_stage1 ( ) {
2134
+ let ctx = TestCtx :: new ( ) ;
2135
+ insta:: assert_snapshot!(
2136
+ ctx. config( "test" )
2137
+ . args( & [ "ui" , "ui-fulldeps" , "run-make" , "rustdoc" , "rustdoc-gui" , "incremental" ] )
2138
+ . render_steps( ) , @r"
2139
+ [build] llvm <host>
2140
+ [build] rustc 0 <host> -> rustc 1 <host>
2141
+ [build] rustc 1 <host> -> std 1 <host>
2142
+ [build] rustc 0 <host> -> Compiletest 1 <host>
2143
+ [test] compiletest-ui 1 <host>
2144
+ [test] compiletest-ui-fulldeps 1 <host>
2145
+ [build] rustc 0 <host> -> RunMakeSupport 1 <host>
2146
+ [build] rustc 1 <host> -> cargo 2 <host>
2147
+ [build] rustdoc 1 <host>
2148
+ [test] compiletest-run-make 1 <host>
2149
+ [test] compiletest-rustdoc 1 <host>
2150
+ [build] rustc 0 <host> -> RustdocGUITest 1 <host>
2151
+ [test] rustdoc-gui 1 <host>
2152
+ [test] compiletest-incremental 1 <host>
2153
+ [build] rustc 1 <host> -> rustc 2 <host>
2154
+ " ) ;
2155
+ }
2156
+
2157
+ #[ test]
2158
+ fn test_compiletest_suites_stage2 ( ) {
2159
+ let ctx = TestCtx :: new ( ) ;
2160
+ insta:: assert_snapshot!(
2161
+ ctx. config( "test" )
2162
+ . args( & [ "ui" , "ui-fulldeps" , "run-make" , "rustdoc" , "rustdoc-gui" , "incremental" ] )
2163
+ . stage( 2 )
2164
+ . render_steps( ) , @r"
2165
+ [build] llvm <host>
2166
+ [build] rustc 0 <host> -> rustc 1 <host>
2167
+ [build] rustc 1 <host> -> std 1 <host>
2168
+ [build] rustc 1 <host> -> rustc 2 <host>
2169
+ [build] rustc 2 <host> -> std 2 <host>
2170
+ [build] rustc 0 <host> -> Compiletest 1 <host>
2171
+ [test] compiletest-ui 2 <host>
2172
+ [build] rustc 2 <host> -> rustc 3 <host>
2173
+ [test] compiletest-ui-fulldeps 2 <host>
2174
+ [build] rustc 0 <host> -> RunMakeSupport 1 <host>
2175
+ [build] rustc 2 <host> -> cargo 3 <host>
2176
+ [build] rustdoc 2 <host>
2177
+ [test] compiletest-run-make 2 <host>
2178
+ [test] compiletest-rustdoc 2 <host>
2179
+ [build] rustc 0 <host> -> RustdocGUITest 1 <host>
2180
+ [test] rustdoc-gui 2 <host>
2181
+ [test] compiletest-incremental 2 <host>
2182
+ [build] rustdoc 1 <host>
2183
+ " ) ;
2184
+ }
2185
+
2186
+ #[ test]
2187
+ fn test_compiletest_suites_stage2_cross ( ) {
2188
+ let ctx = TestCtx :: new ( ) ;
2189
+ insta:: assert_snapshot!(
2190
+ ctx. config( "test" )
2191
+ . hosts( & [ TEST_TRIPLE_1 ] )
2192
+ . targets( & [ TEST_TRIPLE_1 ] )
2193
+ . args( & [ "ui" , "ui-fulldeps" , "run-make" , "rustdoc" , "rustdoc-gui" , "incremental" ] )
2194
+ . stage( 2 )
2195
+ . render_steps( ) , @r"
2196
+ [build] llvm <host>
2197
+ [build] rustc 0 <host> -> rustc 1 <host>
2198
+ [build] rustc 1 <host> -> std 1 <host>
2199
+ [build] rustc 1 <host> -> rustc 2 <host>
2200
+ [build] rustc 2 <host> -> std 2 <host>
2201
+ [build] rustc 0 <host> -> Compiletest 1 <host>
2202
+ [build] rustc 1 <host> -> std 1 <target1>
2203
+ [build] rustc 2 <host> -> std 2 <target1>
2204
+ [test] compiletest-ui 2 <target1>
2205
+ [build] llvm <target1>
2206
+ [build] rustc 2 <host> -> rustc 3 <target1>
2207
+ [test] compiletest-ui-fulldeps 2 <target1>
2208
+ [build] rustc 0 <host> -> RunMakeSupport 1 <host>
2209
+ [build] rustc 2 <host> -> cargo 3 <host>
2210
+ [build] rustdoc 2 <host>
2211
+ [test] compiletest-run-make 2 <target1>
2212
+ [test] compiletest-rustdoc 2 <target1>
2213
+ [build] rustc 0 <host> -> RustdocGUITest 1 <host>
2214
+ [test] rustdoc-gui 2 <target1>
2215
+ [test] compiletest-incremental 2 <target1>
2216
+ [build] rustc 1 <host> -> rustc 2 <target1>
2217
+ [build] rustdoc 1 <host>
2218
+ [build] rustc 2 <target1> -> std 2 <target1>
2219
+ [build] rustdoc 2 <target1>
2126
2220
" ) ;
2127
2221
}
2128
2222
@@ -2142,21 +2236,24 @@ mod snapshot {
2142
2236
[build] rustc 1 <host> -> rustc 2 <host>
2143
2237
[build] rustc 2 <host> -> std 2 <host>
2144
2238
[build] rustc 0 <host> -> Compiletest 1 <host>
2145
- [test] Ui <host>
2146
- [test] Crashes <host>
2239
+ [test] compiletest-ui 2 <host>
2240
+ [test] compiletest-crashes 2 <host>
2147
2241
[build] rustc 0 <host> -> CoverageDump 1 <host>
2242
+ [test] compiletest-coverage 2 <host>
2243
+ [test] compiletest-coverage 2 <host>
2148
2244
[build] rustc 2 <host> -> std 2 <host>
2149
- [test] CodegenLlvm <host>
2150
- [test] CodegenUnits <host>
2151
- [test] AssemblyLlvm <host>
2152
- [test] Incremental <host>
2153
- [test] Debuginfo <host>
2245
+ [test] compiletest-mir-opt 2 <host>
2246
+ [test] compiletest-codegen-llvm 2 <host>
2247
+ [test] compiletest-codegen-units 2 <host>
2248
+ [test] compiletest-assembly-llvm 2 <host>
2249
+ [test] compiletest-incremental 2 <host>
2250
+ [test] compiletest-debuginfo 2 <host>
2154
2251
[build] rustc 2 <host> -> rustc 3 <host>
2155
- [test] UiFullDeps <host>
2252
+ [test] compiletest-ui-fulldeps 2 <host>
2156
2253
[build] rustdoc 2 <host>
2157
- [test] Rustdoc <host>
2158
- [test] CoverageRunRustdoc <host>
2159
- [test] Pretty <host>
2254
+ [test] compiletest-rustdoc 2 <host>
2255
+ [test] compiletest-coverage-run-rustdoc 2 <host>
2256
+ [test] compiletest-pretty 2 <host>
2160
2257
[build] rustc 2 <host> -> std 2 <host>
2161
2258
[build] rustc 1 <host> -> std 1 <host>
2162
2259
[build] rustdoc 1 <host>
@@ -2196,16 +2293,16 @@ mod snapshot {
2196
2293
[test] rustc 1 <host> -> lint-docs 2 <host>
2197
2294
[build] rustc 0 <host> -> RustdocTheme 1 <host>
2198
2295
[test] rustdoc-theme 2 <host>
2199
- [test] RustdocUi <host>
2296
+ [test] compiletest-rustdoc-ui 2 <host>
2200
2297
[build] rustc 0 <host> -> JsonDocCk 1 <host>
2201
2298
[build] rustc 0 <host> -> JsonDocLint 1 <host>
2202
- [test] RustdocJson <host>
2299
+ [test] compiletest-rustdoc-json 2 <host>
2203
2300
[doc] rustc 1 <host> -> rustc 2 <host>
2204
2301
[build] rustc 0 <host> -> HtmlChecker 1 <host>
2205
2302
[test] html-check <host>
2206
2303
[build] rustc 0 <host> -> RunMakeSupport 1 <host>
2207
2304
[build] rustc 2 <host> -> cargo 3 <host>
2208
- [test] RunMake <host>
2305
+ [test] compiletest-run-make 2 <host>
2209
2306
" ) ;
2210
2307
}
2211
2308
@@ -2249,7 +2346,7 @@ mod snapshot {
2249
2346
let steps = ctx. config ( "test" ) . args ( & [ "--skip" , "src/tools/tidy" ] ) . get_steps ( ) ;
2250
2347
2251
2348
let host = TargetSelection :: from_user ( & host_target ( ) ) ;
2252
- steps. assert_contains ( StepMetadata :: test ( "RustdocUi " , host) ) ;
2349
+ steps. assert_contains ( StepMetadata :: test ( "compiletest-rustdoc-ui " , host) . stage ( 1 ) ) ;
2253
2350
steps. assert_not_contains ( test:: Tidy ) ;
2254
2351
}
2255
2352
0 commit comments