Tests - merge basic.t with version.t and convert to python

* _version now outputs "2.4.2 (git-ref)" instead of only "git-ref" when building from git.
* Changelog updated accordingly.
This commit is contained in:
Renato Alves 2015-03-09 15:57:03 +00:00
parent 281edcc38f
commit dda190703e
4 changed files with 65 additions and 97 deletions

View file

@ -135,7 +135,10 @@ CmdCompletionVersion::CmdCompletionVersion ()
int CmdCompletionVersion::execute (std::string& output)
{
#ifdef HAVE_COMMIT
output = COMMIT;
output = std::string (VERSION)
+ std::string (" (")
+ std::string (COMMIT)
+ std::string (")");
#else
output = VERSION;
#endif