@@ -2049,6 +2049,130 @@ mod snapshot {
20492049 [doc] rustc 1 <host> -> reference (book) 2 <host>
20502050 " ) ;
20512051 }
2052+
2053+ #[ test]
2054+ fn clippy_ci ( ) {
2055+ let ctx = TestCtx :: new ( ) ;
2056+ insta:: assert_snapshot!(
2057+ ctx. config( "clippy" )
2058+ . path( "ci" )
2059+ . stage( 2 )
2060+ . render_steps( ) , @r"
2061+ [build] llvm <host>
2062+ [build] rustc 0 <host> -> rustc 1 <host>
2063+ [build] rustc 1 <host> -> std 1 <host>
2064+ [build] rustc 0 <host> -> clippy-driver 1 <host>
2065+ [build] rustc 0 <host> -> cargo-clippy 1 <host>
2066+ [clippy] rustc 1 <host> -> bootstrap 2 <host>
2067+ [clippy] rustc 1 <host> -> std 1 <host>
2068+ [clippy] rustc 1 <host> -> rustc 2 <host>
2069+ [check] rustc 1 <host> -> rustc 2 <host>
2070+ [clippy] rustc 1 <host> -> rustc_codegen_gcc 2 <host>
2071+ " ) ;
2072+ }
2073+
2074+ #[ test]
2075+ fn clippy_compiler_stage1 ( ) {
2076+ let ctx = TestCtx :: new ( ) ;
2077+ insta:: assert_snapshot!(
2078+ ctx. config( "clippy" )
2079+ . path( "compiler" )
2080+ . render_steps( ) , @r"
2081+ [build] llvm <host>
2082+ [clippy] rustc 0 <host> -> rustc 1 <host>
2083+ " ) ;
2084+ }
2085+
2086+ #[ test]
2087+ fn clippy_compiler_stage2 ( ) {
2088+ let ctx = TestCtx :: new ( ) ;
2089+ insta:: assert_snapshot!(
2090+ ctx. config( "clippy" )
2091+ . path( "compiler" )
2092+ . stage( 2 )
2093+ . render_steps( ) , @r"
2094+ [build] llvm <host>
2095+ [build] rustc 0 <host> -> rustc 1 <host>
2096+ [build] rustc 1 <host> -> std 1 <host>
2097+ [build] rustc 0 <host> -> clippy-driver 1 <host>
2098+ [build] rustc 0 <host> -> cargo-clippy 1 <host>
2099+ [clippy] rustc 1 <host> -> rustc 2 <host>
2100+ " ) ;
2101+ }
2102+
2103+ #[ test]
2104+ fn clippy_std_stage1 ( ) {
2105+ let ctx = TestCtx :: new ( ) ;
2106+ insta:: assert_snapshot!(
2107+ ctx. config( "clippy" )
2108+ . path( "std" )
2109+ . render_steps( ) , @r"
2110+ [build] llvm <host>
2111+ [build] rustc 0 <host> -> rustc 1 <host>
2112+ [build] rustc 0 <host> -> clippy-driver 1 <host>
2113+ [build] rustc 0 <host> -> cargo-clippy 1 <host>
2114+ [clippy] rustc 1 <host> -> std 1 <host>
2115+ " ) ;
2116+ }
2117+
2118+ #[ test]
2119+ fn clippy_std_stage2 ( ) {
2120+ let ctx = TestCtx :: new ( ) ;
2121+ insta:: assert_snapshot!(
2122+ ctx. config( "clippy" )
2123+ . path( "std" )
2124+ . stage( 2 )
2125+ . render_steps( ) , @r"
2126+ [build] llvm <host>
2127+ [build] rustc 0 <host> -> rustc 1 <host>
2128+ [build] rustc 1 <host> -> std 1 <host>
2129+ [build] rustc 1 <host> -> rustc 2 <host>
2130+ [build] rustc 1 <host> -> clippy-driver 2 <host>
2131+ [build] rustc 1 <host> -> cargo-clippy 2 <host>
2132+ [clippy] rustc 2 <host> -> std 2 <host>
2133+ " ) ;
2134+ }
2135+
2136+ #[ test]
2137+ fn clippy_miri_stage1 ( ) {
2138+ let ctx = TestCtx :: new ( ) ;
2139+ insta:: assert_snapshot!(
2140+ ctx. config( "clippy" )
2141+ . path( "miri" )
2142+ . stage( 1 )
2143+ . render_steps( ) , @r"
2144+ [build] llvm <host>
2145+ [check] rustc 0 <host> -> rustc 1 <host>
2146+ [clippy] rustc 0 <host> -> miri 1 <host>
2147+ " ) ;
2148+ }
2149+
2150+ #[ test]
2151+ fn clippy_miri_stage2 ( ) {
2152+ let ctx = TestCtx :: new ( ) ;
2153+ insta:: assert_snapshot!(
2154+ ctx. config( "clippy" )
2155+ . path( "miri" )
2156+ . stage( 2 )
2157+ . render_steps( ) , @r"
2158+ [build] llvm <host>
2159+ [build] rustc 0 <host> -> rustc 1 <host>
2160+ [build] rustc 1 <host> -> std 1 <host>
2161+ [check] rustc 1 <host> -> rustc 2 <host>
2162+ [build] rustc 0 <host> -> clippy-driver 1 <host>
2163+ [build] rustc 0 <host> -> cargo-clippy 1 <host>
2164+ [clippy] rustc 1 <host> -> miri 2 <host>
2165+ " ) ;
2166+ }
2167+
2168+ #[ test]
2169+ fn clippy_bootstrap ( ) {
2170+ let ctx = TestCtx :: new ( ) ;
2171+ insta:: assert_snapshot!(
2172+ ctx. config( "clippy" )
2173+ . path( "bootstrap" )
2174+ . render_steps( ) , @"[clippy] rustc 0 <host> -> bootstrap 1 <host>" ) ;
2175+ }
20522176}
20532177
20542178struct ExecutedSteps {
0 commit comments