@@ -1906,19 +1906,23 @@ mod snapshot {
1906
1906
. render_steps( ) , @"[check] rustc 0 <host> -> RunMakeSupport 1 <host>" ) ;
1907
1907
}
1908
1908
1909
+ fn prepare_test_config ( ctx : & TestCtx ) -> ConfigBuilder {
1910
+ ctx. config ( "test" )
1911
+ // Bootstrap only runs by default on CI, so we have to emulate that also locally.
1912
+ . args ( & [ "--ci" , "true" ] )
1913
+ // These rustdoc tests requires nodejs to be present.
1914
+ // We can't easily opt out of it, so if it is present on the local PC, the test
1915
+ // would have different result on CI, where nodejs might be missing.
1916
+ . args ( & [ "--skip" , "rustdoc-js-std" ] )
1917
+ . args ( & [ "--skip" , "rustdoc-js" ] )
1918
+ . args ( & [ "--skip" , "rustdoc-gui" ] )
1919
+ }
1920
+
1909
1921
#[ test]
1910
- fn test_all ( ) {
1922
+ fn test_all_stage_1 ( ) {
1911
1923
let ctx = TestCtx :: new ( ) ;
1912
1924
insta:: assert_snapshot!(
1913
- ctx. config( "test" )
1914
- // Bootstrap only run by default on CI, so we have to emulate that also locally.
1915
- . args( & [ "--ci" , "true" ] )
1916
- // These rustdoc tests requires nodejs to be present.
1917
- // We can't easily opt out of it, so if it is present on the local PC, the test
1918
- // would have different result on CI, where nodejs might be missing.
1919
- . args( & [ "--skip" , "rustdoc-js-std" ] )
1920
- . args( & [ "--skip" , "rustdoc-js" ] )
1921
- . args( & [ "--skip" , "rustdoc-gui" ] )
1925
+ prepare_test_config( & ctx)
1922
1926
. render_steps( ) , @r"
1923
1927
[build] rustc 0 <host> -> Tidy 1 <host>
1924
1928
[test] tidy <>
@@ -1993,6 +1997,89 @@ mod snapshot {
1993
1997
" ) ;
1994
1998
}
1995
1999
2000
+ #[ test]
2001
+ fn test_all_stage_2 ( ) {
2002
+ let ctx = TestCtx :: new ( ) ;
2003
+ insta:: assert_snapshot!(
2004
+ prepare_test_config( & ctx)
2005
+ . stage( 2 )
2006
+ . render_steps( ) , @r"
2007
+ [build] rustc 0 <host> -> Tidy 1 <host>
2008
+ [test] tidy <>
2009
+ [build] rustdoc 0 <host>
2010
+ [build] llvm <host>
2011
+ [build] rustc 0 <host> -> rustc 1 <host>
2012
+ [build] rustc 1 <host> -> std 1 <host>
2013
+ [build] rustc 1 <host> -> rustc 2 <host>
2014
+ [build] rustc 2 <host> -> std 2 <host>
2015
+ [build] rustc 0 <host> -> Compiletest 1 <host>
2016
+ [test] Ui <host>
2017
+ [test] Crashes <host>
2018
+ [build] rustc 0 <host> -> CoverageDump 1 <host>
2019
+ [build] rustc 2 <host> -> std 2 <host>
2020
+ [test] CodegenLlvm <host>
2021
+ [test] CodegenUnits <host>
2022
+ [test] AssemblyLlvm <host>
2023
+ [test] Incremental <host>
2024
+ [test] Debuginfo <host>
2025
+ [build] rustc 2 <host> -> rustc 3 <host>
2026
+ [test] UiFullDeps <host>
2027
+ [build] rustdoc 2 <host>
2028
+ [test] Rustdoc <host>
2029
+ [test] CoverageRunRustdoc <host>
2030
+ [test] Pretty <host>
2031
+ [build] rustc 2 <host> -> std 2 <host>
2032
+ [build] rustc 1 <host> -> std 1 <host>
2033
+ [build] rustdoc 1 <host>
2034
+ [test] rustc 1 <host> -> CrateLibrustc 2 <host>
2035
+ [test] crate-bootstrap <host> src/tools/coverage-dump
2036
+ [test] crate-bootstrap <host> src/tools/jsondoclint
2037
+ [test] crate-bootstrap <host> src/tools/replace-version-placeholder
2038
+ [test] crate-bootstrap <host> tidyselftest
2039
+ [build] rustc 0 <host> -> UnstableBookGen 1 <host>
2040
+ [build] rustc 0 <host> -> Rustbook 1 <host>
2041
+ [doc] unstable-book (book) <host>
2042
+ [doc] book (book) <host>
2043
+ [doc] book/first-edition (book) <host>
2044
+ [doc] book/second-edition (book) <host>
2045
+ [doc] book/2018-edition (book) <host>
2046
+ [doc] rustc 1 <host> -> standalone 2 <host>
2047
+ [doc] rustc 2 <host> -> std 2 <host> crates=[alloc,compiler_builtins,core,panic_abort,panic_unwind,proc_macro,rustc-std-workspace-core,std,std_detect,sysroot,test,unwind]
2048
+ [build] rustc 1 <host> -> error-index 2 <host>
2049
+ [doc] rustc 1 <host> -> error-index 2 <host>
2050
+ [doc] nomicon (book) <host>
2051
+ [doc] rustc 1 <host> -> reference (book) 2 <host>
2052
+ [doc] rustdoc (book) <host>
2053
+ [doc] rust-by-example (book) <host>
2054
+ [build] rustc 0 <host> -> LintDocs 1 <host>
2055
+ [doc] rustc (book) <host>
2056
+ [doc] cargo (book) <host>
2057
+ [doc] clippy (book) <host>
2058
+ [doc] embedded-book (book) <host>
2059
+ [doc] edition-guide (book) <host>
2060
+ [doc] style-guide (book) <host>
2061
+ [doc] rustc 1 <host> -> releases 2 <host>
2062
+ [build] rustc 0 <host> -> Linkchecker 1 <host>
2063
+ [test] link-check <host>
2064
+ [test] tier-check <host>
2065
+ [test] rustc 1 <host> -> rust-analyzer 2 <host>
2066
+ [doc] rustc (book) <host>
2067
+ [test] rustc 1 <host> -> lint-docs 2 <host>
2068
+ [build] rustc 0 <host> -> RustdocTheme 1 <host>
2069
+ [test] rustdoc-theme 2 <host>
2070
+ [test] RustdocUi <host>
2071
+ [build] rustc 0 <host> -> JsonDocCk 1 <host>
2072
+ [build] rustc 0 <host> -> JsonDocLint 1 <host>
2073
+ [test] RustdocJson <host>
2074
+ [doc] rustc 1 <host> -> rustc 2 <host>
2075
+ [build] rustc 0 <host> -> HtmlChecker 1 <host>
2076
+ [test] html-check <host>
2077
+ [build] rustc 0 <host> -> RunMakeSupport 1 <host>
2078
+ [build] rustc 2 <host> -> cargo 3 <host>
2079
+ [test] RunMake <host>
2080
+ " ) ;
2081
+ }
2082
+
1996
2083
#[ test]
1997
2084
fn test_exclude ( ) {
1998
2085
let ctx = TestCtx :: new ( ) ;
0 commit comments