-
Notifications
You must be signed in to change notification settings - Fork 15.4k
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
Add source dependency of test suite implementation to main function #5069
Add source dependency of test suite implementation to main function #5069
Conversation
Can you do just enough in this PR to make the tests work again and do any follow-up refactoring in a separate PR? Ideally this PR should only contain changes to Makefile.am. |
Done in #5073 |
Bo, can you update the description of this PR accordingly? |
Done |
This change adds a source dependency of the test suite implementaion class in the main function. For generality reason, the main function is moved to the file of the test suite implemetation. New test suite implementation will need to implement the main function. In order to make it easy for test suite implementation to implement the main function, this change also refactor out the common code out of the main function.
ad55f00
to
67a079d
Compare
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.
I think this is better than the dynamic registration approach.
conformance/conformance_test.h
Outdated
// suite->RunSuite(&runner, &output); | ||
// } | ||
// MyConformanceTestSuite suite; | ||
// MyConformanceTestRunner::Run(argc, argv, &sutie); |
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.
check spelling of "suite"
This change adds a source dependency of the test suite implementaion
class in the main function. For generality reason, the main function is
moved to the file of the test suite implemetation. New test suite
implementation will need to implement the main function.
In order to make it easy for test suite implementation to implement the
main function, this change also refactor out the common code out of the
main function.