-
Notifications
You must be signed in to change notification settings - Fork 285
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 project version printing for t8n executable #555
Conversation
test/t8n/t8n.cpp
Outdated
@@ -47,7 +47,7 @@ int main(int argc, const char* argv[]) | |||
|
|||
if (arg == "-v") | |||
{ | |||
std::cout << "evmone dev\n"; // FIXME: Return proper version. | |||
std::cout << "evmone " << PROJECT_VERSION << std::endl; |
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.
std::cout << "evmone " << PROJECT_VERSION << std::endl; | |
std::cout << "evmone-t8n " << PROJECT_VERSION << std::endl; |
Why not?
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.
Right.
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.
Depends what you want to see in the generated tests.
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 -t8n is ok. We will probably will have also project versions for other executables so it's good to distinct them
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #555 +/- ##
==========================================
+ Coverage 97.00% 97.01% +0.01%
==========================================
Files 66 64 -2
Lines 6134 6122 -12
==========================================
- Hits 5950 5939 -11
+ Misses 184 183 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
94c60e1
to
d78e87d
Compare
test/t8n/t8n.cpp
Outdated
@@ -47,7 +47,7 @@ int main(int argc, const char* argv[]) | |||
|
|||
if (arg == "-v") | |||
{ | |||
std::cout << "evmone dev\n"; // FIXME: Return proper version. | |||
std::cout << "evmone-t8n " << PROJECT_VERSION << std::endl; |
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.
std::cout << "evmone-t8n " << PROJECT_VERSION << std::endl; | |
std::cout << "evmone-t8n " PROJECT_VERSION "\n"; |
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.
Why is it better?
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.
The string will be concatenated by the compiler and std::cout
called only once.
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.
Done
d78e87d
to
7b33ad7
Compare
7b33ad7
to
c6a1624
Compare
No description provided.