Skip to content

Add new GTest-based testing infrastructure and some new tests - #173

Open
atalii wants to merge 4 commits into
accellera-official:mainfrom
atalii:gtest-pr
Open

Add new GTest-based testing infrastructure and some new tests#173
atalii wants to merge 4 commits into
accellera-official:mainfrom
atalii:gtest-pr

Conversation

@atalii

@atalii atalii commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

We move the old tests into a sibling directory to the new tests (which is responsible for the diff size - sorry about that.)

Some notable features of the new tests:

  • We use assertions instead of golden files, so failures are more informative and more directed.
  • Tests explicitly cite IEEE1666 in comments to explain what they're doing. (I could see reasons to avoid this - of course, let me know if you think it's an issue.)
  • These are written based off of the coverage data.
  • A README.md gives instructions for a more formal testing procedure. By suggestion, I've been using this to get an LLM to generate tests.

(Expect CI failures since a test here exhibits a bug.)

CC @aut0

@atalii
atalii force-pushed the gtest-pr branch 3 times, most recently from 0db6cff to c7919d2 Compare July 31, 2026 11:56
@aut0

aut0 commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

@atalii, could you please rebase on main?

atalii added 4 commits August 28, 2026 10:19
Signed-off-by: Tali Auster <me@tali.network>
All tests except sc_event_cons_t.do_test pass, indicating a bug in the
implementation or specification.

Signed-off-by: Tali Auster <me@tali.network>
These tests were primarily generated with Claude Code, then reviewed and
corrected.

Signed-off-by: Tali Auster <me@tali.network>
This is a single failing test demonstrating a non-compliance when NaN is
used as the clock duty cycle.

Signed-off-by: Tali Auster <me@tali.network>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants