FPGAwars / apio

:seedling: Open source ecosystem for open FPGA boards
https://github.com/FPGAwars/apio/wiki
GNU General Public License v2.0
772 stars 131 forks source link

[Feature Request] Add support for automatic testing. #346

Closed zapta closed 2 months ago

zapta commented 4 months ago

NOTE: If this feature request is reasonable, I can try implementing it and send PR requests.

The command apio sim is useful for examining and understanding logic behavior and signals but is not a good fit for automatic testing of multiple testbenches that contains assertions for correctness. First it runs just a single testbench and second the interactive gtkwave windows is a distraction.

This request is for a new command apio test with behavior along these lines:

  1. It processes all the testbenches (independently, one after the other).
  2. It does not activate the gtkwave interactive windows.
  3. The command succeeds if all testbenches succeeded (e.g. no syntax error, and no call to $fatal).
  4. The optional flag --testbench allows to run just a single testbench, for example, when developing a specific test.

Notes:

Obijuan commented 4 months ago

Yes, please, go ahead

zapta commented 4 months ago

Ok, I will work on it. It may take time though.

Obijuan commented 4 months ago

Thank you very much for all your contributions! 🙂️ I really appreciate them

Obijuan commented 2 months ago

I am closing this issue as completed