apio icon indicating copy to clipboard operation
apio copied to clipboard

[Feature Request] Add support for automatic testing.

Open zapta opened this issue 1 year ago • 3 comments

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:

  • Ok for the command to fail on the first testbench failure.
  • Need to have a way to run a testbench with failing assertion with the apio sim command for debugging. For example by injecting to the benchtests macros that indicates if the run is automatic or interactive.

zapta avatar Feb 21 '24 22:02 zapta

Yes, please, go ahead

Obijuan avatar Feb 21 '24 23:02 Obijuan

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

zapta avatar Feb 22 '24 15:02 zapta

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

Obijuan avatar Feb 22 '24 15:02 Obijuan

I am closing this issue as completed

Obijuan avatar Apr 03 '24 06:04 Obijuan