rdaly525 / coreir

BSD 3-Clause "New" or "Revised" License
99 stars 24 forks source link

Use gtest for testing #733

Open leonardt opened 5 years ago

leonardt commented 5 years ago

I setup gtest to handle testing https://github.com/leonardt/verilogAST-cpp, it was really simple to integrate into a cmake based workflow.

Here's some references I used:

Here are some example files to work off of:

I would vote that if someone wants to improve the testing infrastructure for coreir that we use a similar approach, but I'm also open to other frameworks. https://github.com/catchorg/Catch2 is a simpler, lighterweight option that I considered. It looks like the simulator is already using this, so that's another viable option that I would support.

rsetaluri commented 5 years ago

Huge fan of gtest and fairly experienced with it so, I'm in favor of running with it.