Stream: cranelift

Topic: filetest threads


view this post on Zulip fitzgen (he/him) (Apr 29 2020 at 19:50):

do we have an easy way to limit filetests to a single thread? I don't see any CLI flag for clif-util...

+cc @Dan Gohman

view this post on Zulip Dan Gohman (Apr 29 2020 at 19:51):

you can run a single clif test with clif-util test foo.clif

view this post on Zulip Dan Gohman (Apr 29 2020 at 19:51):

but otherwise, I don't know

view this post on Zulip fitzgen (he/him) (Apr 29 2020 at 19:52):

that doesn't work in this case b/c I'm getting a panic while running the filetests and I can't figure out which clif file is triggering it :sweat_smile:

was hoping that running them one at a time would help me figure out which one it is

view this post on Zulip Dan Gohman (Apr 29 2020 at 19:53):

In the fullness of time, we really should remove the bespoke multi-threaded test runner and just structure everything as tests that cargo test can run in parallel

view this post on Zulip fitzgen (he/him) (Apr 29 2020 at 19:55):

+1

I've had good experiences using build.rs to expand directories of test files into rust #[test]s and let the normal test runner deal with parallelizing them. like what wasmtime does with the wasm spec tests.

in the meantime, I figured out where the filetest runner spawns threads, and I'll hack in an env var. expect a pr soon ;)


Last updated: Oct 23 2024 at 20:03 UTC