Stream: t-compiler/help

Topic: unit tests for codegen

Jason Hu (Jul 21 2020 at 15:42, on Zulip):

I am wondering how the unit tests infrastructure works in rustc? I see the tests/ folder but it seems only contain integration tests. I am wondering whether unit tests exit, especially for codegen? if not, how do you test codegen?

Jonas Schievink (Jul 21 2020 at 15:47, on Zulip):

There are a few unit tests in the various compiler crates, but mostly just for data structures and generic algorithms. There are none for codegen I believe.

Last update: Sep 28 2020 at 16:30UTC