@@ -2099,8 +2099,9 @@ mod snapshot {
2099
2099
[build] rustc 0 <host> -> HtmlChecker 1 <host>
2100
2100
[test] html-check <host>
2101
2101
[build] rustc 0 <host> -> RunMakeSupport 1 <host>
2102
- [build] rustc 0 <host> -> cargo 1 <host>
2103
2102
[test] compiletest-run-make 1 <host>
2103
+ [build] rustc 0 <host> -> cargo 1 <host>
2104
+ [test] compiletest-run-make-cargo 1 <host>
2104
2105
" ) ;
2105
2106
}
2106
2107
@@ -2118,7 +2119,6 @@ mod snapshot {
2118
2119
[test] compiletest-ui 1 <host>
2119
2120
[test] compiletest-ui-fulldeps 1 <host>
2120
2121
[build] rustc 0 <host> -> RunMakeSupport 1 <host>
2121
- [build] rustc 0 <host> -> cargo 1 <host>
2122
2122
[build] rustdoc 1 <host>
2123
2123
[test] compiletest-run-make 1 <host>
2124
2124
[test] compiletest-rustdoc 1 <host>
@@ -2147,7 +2147,6 @@ mod snapshot {
2147
2147
[build] rustc 2 <host> -> rustc 3 <host>
2148
2148
[test] compiletest-ui-fulldeps 2 <host>
2149
2149
[build] rustc 0 <host> -> RunMakeSupport 1 <host>
2150
- [build] rustc 1 <host> -> cargo 2 <host>
2151
2150
[build] rustdoc 2 <host>
2152
2151
[test] compiletest-run-make 2 <host>
2153
2152
[test] compiletest-rustdoc 2 <host>
@@ -2181,7 +2180,6 @@ mod snapshot {
2181
2180
[build] rustc 2 <host> -> rustc 3 <target1>
2182
2181
[test] compiletest-ui-fulldeps 2 <target1>
2183
2182
[build] rustc 0 <host> -> RunMakeSupport 1 <host>
2184
- [build] rustc 1 <host> -> cargo 2 <host>
2185
2183
[build] rustdoc 2 <host>
2186
2184
[test] compiletest-run-make 2 <target1>
2187
2185
[test] compiletest-rustdoc 2 <target1>
@@ -2276,8 +2274,9 @@ mod snapshot {
2276
2274
[build] rustc 0 <host> -> HtmlChecker 1 <host>
2277
2275
[test] html-check <host>
2278
2276
[build] rustc 0 <host> -> RunMakeSupport 1 <host>
2279
- [build] rustc 1 <host> -> cargo 2 <host>
2280
2277
[test] compiletest-run-make 2 <host>
2278
+ [build] rustc 1 <host> -> cargo 2 <host>
2279
+ [test] compiletest-run-make-cargo 2 <host>
2281
2280
" ) ;
2282
2281
}
2283
2282
@@ -2411,6 +2410,43 @@ mod snapshot {
2411
2410
" ) ;
2412
2411
}
2413
2412
2413
+ // Differential snapshots for `./x test run-make` run `./x test run-make-cargo`: only
2414
+ // `run-make-cargo` should build an in-tree cargo, running `./x test run-make` should not.
2415
+ #[ test]
2416
+ fn test_run_make_no_cargo ( ) {
2417
+ let ctx = TestCtx :: new ( ) ;
2418
+ insta:: assert_snapshot!(
2419
+ ctx. config( "test" )
2420
+ . path( "run-make" )
2421
+ . render_steps( ) , @r"
2422
+ [build] llvm <host>
2423
+ [build] rustc 0 <host> -> rustc 1 <host>
2424
+ [build] rustc 0 <host> -> RunMakeSupport 1 <host>
2425
+ [build] rustc 1 <host> -> std 1 <host>
2426
+ [build] rustc 0 <host> -> Compiletest 1 <host>
2427
+ [build] rustdoc 1 <host>
2428
+ [test] compiletest-run-make 1 <host>
2429
+ " ) ;
2430
+ }
2431
+
2432
+ #[ test]
2433
+ fn test_run_make_cargo_builds_cargo ( ) {
2434
+ let ctx = TestCtx :: new ( ) ;
2435
+ insta:: assert_snapshot!(
2436
+ ctx. config( "test" )
2437
+ . path( "run-make-cargo" )
2438
+ . render_steps( ) , @r"
2439
+ [build] llvm <host>
2440
+ [build] rustc 0 <host> -> rustc 1 <host>
2441
+ [build] rustc 0 <host> -> RunMakeSupport 1 <host>
2442
+ [build] rustc 1 <host> -> std 1 <host>
2443
+ [build] rustc 0 <host> -> Compiletest 1 <host>
2444
+ [build] rustc 0 <host> -> cargo 1 <host>
2445
+ [build] rustdoc 1 <host>
2446
+ [test] compiletest-run-make-cargo 1 <host>
2447
+ " ) ;
2448
+ }
2449
+
2414
2450
#[ test]
2415
2451
fn doc_all ( ) {
2416
2452
let ctx = TestCtx :: new ( ) ;
0 commit comments