Skip to content
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

Tcl versions of Python unit tests #6501

Merged
merged 4 commits into from
Jan 11, 2025

Conversation

jeffng-or
Copy link
Contributor

  1. Created Tcl versions of ODB Python unit tests
  2. SWIG modifications for dbWireDecoder::getPoint_ext on both Python and Tcl

One note about the test_inst.py and test_iterm.tcl. They both do negative testing, which causes some problems because the DB doesn't have a logger. For the time being, a include_neg_tests parameter is added to the test, which controls whether the expected failure tests should be executed or not. They are disabled by default.

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

# Converted from helper.py

proc createSimpleDB {} {
set db [odb::dbDatabase_create]
Copy link
Member

Choose a reason for hiding this comment

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

You can use ord::get_db to get the default database with a logger.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the pointer. I've switched to use the default DB for the two cases that need the logger and removed the option to include/exclude the negative tests.

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@maliberty maliberty merged commit 8a2b35f into The-OpenROAD-Project:master Jan 11, 2025
11 checks passed
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