Skip to content

Using an older version of the 'Catch' unit test framework #1909

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Srivat97 opened this issue Nov 10, 2021 · 5 comments
Closed

Using an older version of the 'Catch' unit test framework #1909

Srivat97 opened this issue Nov 10, 2021 · 5 comments
Assignees

Comments

@Srivat97
Copy link
Contributor

Currently, the VTR repo contains version 1 of the 'Catch' unit test framework. Since there is a newer version of 'Catch' (version 2), would it be worthwhile to upgrade?

@acomodi
Copy link
Collaborator

acomodi commented Nov 10, 2021

@Srivat97 I see that the current Catch framework used in VTR is not part of a subtree as the other EXTERNAL libraries (https://github.com/verilog-to-routing/vtr-verilog-to-routing/tree/master/libs/EXTERNAL/libcatch).

Following the link in the README there is a redirection to the Catch2 framework that I believe is what you are referring to.

I think it may be worth to rework the libcatch library and make it a subtree, and, at this point, upgrade it to the latest version. This might require some adjustments in the current tests.

@Srivat97
Copy link
Contributor Author

Since I am updating the documentation for the unit test framework we are using, would it be alright if I went ahead and also upgraded to the latest version as well?

@acomodi
Copy link
Collaborator

acomodi commented Nov 10, 2021

Sure, sounds good to me

@vaughnbetz
Copy link
Contributor

Thanks @acomodi . Adding @kmurray so we can get his thoughts too, as it looks like he added catch to vtr.
From a quick look, it looks like catch2 may be noticably different than catch (multiple .h files vs. one big header file). It looks like they may have an option to create one big header style still (although it has a different name than before).

So I suggest investigating a bit to see how painful it will be to upgrade before committing to it.

@Srivat97
Copy link
Contributor Author

Catch framework has been updated to the latest version in PR #1913.

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

No branches or pull requests

3 participants