-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add --filter-mode=run-pass,compile-pass
to compiletest
#61719
Conversation
--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-mode
option tocompiletest
and expose it through./x.py
.The
--filter-mode
flag will take a comma separated list of modes:compile-pass
compile-fail
run-pass
ui
run-fail
run-pass-valgrind
pretty
debuginfo-cdb
debuginfo-gdb+lldb
debuginfo-lldb
debuginfo-gdb
codegen
rustdoc
codegen-units
incremental
run-make
js-doc-test
mir-opt
assembly
When the mode is
ui
(e.g.src/test/ui
) then:// compile-pass
is interpreted as provided modecompile-pass
.// run-pass
is interpreted as provided moderun-pass
.compile-fail
.When
--filter-mode
is 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-pass
to execute all run-pass tests whether they are insrc/test/ui
or insidesrc/test/run-pass
.Another example is
./x.py -i test src/test/ui --stage 1 --filter-mode run-pass,compile-pass
which will cover both run-pass and compile-pass tests insrc/test/ui
specifically.This PR moves us towards a more systematic testing scheme in the spirit of #61712 and may enable moving
src/test/run-pass
altogether tosrc/test/ui
.r? @petrochenkov