@@ -2099,8 +2099,9 @@ mod snapshot {
20992099 [build] rustc 0 <host> -> HtmlChecker 1 <host>
21002100 [test] html-check <host>
21012101 [build] rustc 0 <host> -> RunMakeSupport 1 <host>
2102- [build] rustc 0 <host> -> cargo 1 <host>
21032102 [test] compiletest-run-make 1 <host>
2103+ [build] rustc 0 <host> -> cargo 1 <host>
2104+ [test] compiletest-run-make-cargo 1 <host>
21042105 " ) ;
21052106 }
21062107
@@ -2118,7 +2119,6 @@ mod snapshot {
21182119 [test] compiletest-ui 1 <host>
21192120 [test] compiletest-ui-fulldeps 1 <host>
21202121 [build] rustc 0 <host> -> RunMakeSupport 1 <host>
2121- [build] rustc 0 <host> -> cargo 1 <host>
21222122 [build] rustdoc 1 <host>
21232123 [test] compiletest-run-make 1 <host>
21242124 [test] compiletest-rustdoc 1 <host>
@@ -2147,7 +2147,6 @@ mod snapshot {
21472147 [build] rustc 2 <host> -> rustc 3 <host>
21482148 [test] compiletest-ui-fulldeps 2 <host>
21492149 [build] rustc 0 <host> -> RunMakeSupport 1 <host>
2150- [build] rustc 1 <host> -> cargo 2 <host>
21512150 [build] rustdoc 2 <host>
21522151 [test] compiletest-run-make 2 <host>
21532152 [test] compiletest-rustdoc 2 <host>
@@ -2181,7 +2180,6 @@ mod snapshot {
21812180 [build] rustc 2 <host> -> rustc 3 <target1>
21822181 [test] compiletest-ui-fulldeps 2 <target1>
21832182 [build] rustc 0 <host> -> RunMakeSupport 1 <host>
2184- [build] rustc 1 <host> -> cargo 2 <host>
21852183 [build] rustdoc 2 <host>
21862184 [test] compiletest-run-make 2 <target1>
21872185 [test] compiletest-rustdoc 2 <target1>
@@ -2276,8 +2274,9 @@ mod snapshot {
22762274 [build] rustc 0 <host> -> HtmlChecker 1 <host>
22772275 [test] html-check <host>
22782276 [build] rustc 0 <host> -> RunMakeSupport 1 <host>
2279- [build] rustc 1 <host> -> cargo 2 <host>
22802277 [test] compiletest-run-make 2 <host>
2278+ [build] rustc 1 <host> -> cargo 2 <host>
2279+ [test] compiletest-run-make-cargo 2 <host>
22812280 " ) ;
22822281 }
22832282
@@ -2411,6 +2410,43 @@ mod snapshot {
24112410 " ) ;
24122411 }
24132412
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+
24142450 #[ test]
24152451 fn doc_all ( ) {
24162452 let ctx = TestCtx :: new ( ) ;
0 commit comments