On Sat, Jul 16, 2022 at 12:44 PM Bartosz Golaszewski <brgl@xxxxxxxx> wrote: > > This does seem to build the test-suite but there's no single > executable in target/debug/deps. Instead it seems that every test > section gets its own executable. Does 'cargo test' run them > separately? Or is there a single binary including all of them > somewhere else? Yeah, for `tests/` tests it seems to create several binaries. For `#[test]`s, they are put in a single binary. Another solution for both of those (from https://github.com/rust-lang/cargo/issues/5999) is `.cargo/config` (in the project folder): [target.x86_64-unknown-linux-gnu] runner = 'sudo -E' Which indeed seems to work for both `tests/` and `#[test]`s. However, I don't think that one works for doctests, though (at least I don't see it executing `rustdoc` with the runner)... But maybe you don't need privileges for those. Cheers, Miguel