Skip to content

Add test to the project#31

Merged
artP2 merged 6 commits intodevelopfrom
vunit
Jan 30, 2025
Merged

Add test to the project#31
artP2 merged 6 commits intodevelopfrom
vunit

Conversation

@Grillo-0
Copy link
Copy Markdown
Member

The first commit is here because it fixes a bug the tests caught.

I was sleepy and dumb wen I wrote the first ARG_REF_ALL_ARGS
implementation. It's a lot simpler to just treat all the logic on flex
and bison.

Also, this implementation is buggy, if there is no `WORD` with the
`ARG_REF_ALL_ARGS` it will leave a `TEXT` node with not children behind.
@Grillo-0 Grillo-0 requested a review from artP2 January 22, 2025 20:48
Comment thread src/tests/simple_test.c Outdated
@artP2
Copy link
Copy Markdown
Contributor

artP2 commented Jan 27, 2025

Add a section for the test suite in docs/CONTRIBUTING.md or README.md

Comment thread src/tests/vunit.c Outdated
Comment thread src/tests/vunit.c Outdated
Comment thread src/tests/vunit.c Outdated
Comment thread src/tests/vunit.c
@artP2 artP2 linked an issue Jan 28, 2025 that may be closed by this pull request
Our project is getting larger so we need some tests to be certain that
everything is working as intended.

To solve this, create new testing framework called _Vunit_. It tries to
achieve the following points:

- TAP[1] output. It's a protocol for test output. It's moves the
  complexity of formatting the output to other utilities. For now we're
  going to use the autoconf support[2] for it.

- Use of macros for simplifying writing tests. With the use of
  `VUNIT_TEST_SUITE` and the `ASSERT` macros it tries to remove a lot of
  the boilerplate code.


[1]: https://testanything.org/
[2]: https://www.gnu.org/savannah-checkouts/gnu/automake/manual/html_node/Introduction-to-TAP.html

Fixes: #23
We're going to write tests that treat the vinumc as black box. Giving
input to the program and expecting an specific output.

To facilitate those tests, create `vunit_run_vinumc*` functions.
Test the basic vinumc operation. This certainly does not cover all the
system, another test are realy needed.

These are just the first ones.
Now that we have test addthem to the CI.
Copy link
Copy Markdown
Contributor

@artP2 artP2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@artP2 artP2 merged commit c46f1a9 into develop Jan 30, 2025
@Grillo-0 Grillo-0 deleted the vunit branch January 30, 2025 19:25
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.

Add some sort of testing for the vinumc

2 participants