-
Notifications
You must be signed in to change notification settings - Fork 585
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
Tcl versions of Python unit tests #6501
Conversation
Signed-off-by: Jeff Ng <[email protected]>
clang-tidy review says "All clean, LGTM! 👍" |
src/odb/test/helper.tcl
Outdated
# Converted from helper.py | ||
|
||
proc createSimpleDB {} { | ||
set db [odb::dbDatabase_create] |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
clang-tidy review says "All clean, LGTM! 👍" |
Signed-off-by: Jeff Ng <[email protected]>
…into tcl-unit-tests
clang-tidy review says "All clean, LGTM! 👍" |
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.