are there any rustc integration tests that invoke libtest?
suddenly remembers how to use grep again
@tmandry I believe compiletest is built ontop of libtest, but I could be wrong. rustdoc tests are for sure
rustdoc --test, not the tests for rustdoc)
I want to test the output of the libtest runner itself
so I'd really like to have a run-pass or run-fail test, but with a stderr matcher
I think it's all UI tests these days but in theory you'd just do something like
// compile-args --test presumably?
right, there are tests which do that
and you can specify
yep, that should work then
but I want to match against the output of the program, not the compiler
hm, oh, that's an interesting use case
you can definitely do a run-make test but those are a bit of a pain
I'd personally think we could definitely make run-pass tests match against the output of the program (perhaps optionally)
that seems really useful
that would be really useful :)
I imagine it wouldn't be terribly difficult to hook up as we have most of the functionality already in compiletest
if you'd like I can try and take a look tomorrow or so, I should have some free time (unless you want to do it, in which case I'd be happy to review)
go for it! otherwise I can pick it up in a couple days
hm looks like it's mostly a pretty easy patch but requires some reshuffling if done well that I don't think I have the time to do, so I'm going to file an issue with some instructions
okay, that would be helpful, thanks!
@tmandry oh, forgot to link it here: https://github.com/rust-lang/rust/issues/63751
(not sure if you already saw it)
I hadn't, thanks for posting that!