Add --filter-mode=run-pass,compile-pass to compiletest#61719
Add --filter-mode=run-pass,compile-pass to compiletest#61719Centril wants to merge 5 commits intorust-lang:masterfrom
--filter-mode=run-pass,compile-pass to compiletest#61719Conversation
--filter-mode=$comma_sep_list_of_modes to compiletest--filter-mode=run-pass,compile-pass to compiletest
This comment has been minimized.
This comment has been minimized.
|
This is a bit different from what I expected. I'll write some more about the common use scenarios in #61712 once I get to it. |
|
As implemented, Forcing all the ui tests to |
I'm not sure I follow... what is the nameless argument? My desired end state is to not have
I don't know which one is most useful, but I feel these are orthogonal operations that both can be supported. At least, |
7ed91c1 to
bfee291
Compare
|
Let's close this for now and reconsider when #61755 is done and |
Add a
--filter-modeoption tocompiletestand expose it through./x.py.The
--filter-modeflag will take a comma separated list of modes:compile-passcompile-failrun-passuiDetails
run-failrun-pass-valgrindprettydebuginfo-cdbdebuginfo-gdb+lldbdebuginfo-lldbdebuginfo-gdbcodegenrustdoccodegen-unitsincrementalrun-makejs-doc-testmir-optassemblyWhen the mode is
ui(e.g.src/test/ui) then:// compile-passis interpreted as provided modecompile-pass.// run-passis interpreted as provided moderun-pass.compile-fail.When
--filter-modeis used, only tests fitting the modes included in the flag are retained. Other tests are ignored.As an example run, you can use
./x.py -i test --stage 1 --filter-mode run-passto execute all run-pass tests whether they are insrc/test/uior insidesrc/test/run-pass.Another example is
./x.py -i test src/test/ui --stage 1 --filter-mode run-pass,compile-passwhich will cover both run-pass and compile-pass tests insrc/test/uispecifically.This PR moves us towards a more systematic testing scheme in the spirit of #61712 and may enable moving
src/test/run-passaltogether tosrc/test/ui.r? @petrochenkov