]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_test_rados: print version banner on startup
authorSage Weil <sage@inktank.com>
Sun, 28 Jul 2013 22:42:08 +0000 (15:42 -0700)
committerSage Weil <sage@inktank.com>
Sun, 28 Jul 2013 22:42:08 +0000 (15:42 -0700)
It is helpful when looking at qa run logs to see what version of the
tester is running.

Signed-off-by: Sage Weil <sage@inktank.com>
src/test/osd/TestRados.cc

index 43530f008284c998737f46de83eb3c778b747af7..6ac661c06294aadf63853ab84677b89f77bb05c7 100644 (file)
@@ -2,6 +2,7 @@
 #include "common/Mutex.h"
 #include "common/Cond.h"
 #include "common/errno.h"
+#include "common/version.h"
 
 #include <iostream>
 #include <sstream>
@@ -14,6 +15,7 @@
 
 #include "test/osd/RadosModel.h"
 
+
 using namespace std;
 
 class WeightedTestGenerator : public TestOpGenerator
@@ -250,6 +252,7 @@ int main(int argc, char **argv)
   if (max_stride_size < 0)
     max_stride_size = size / 5;
 
+  cout << pretty_version_to_str() << std::endl;
   cout << "Configuration:" << std::endl
        << "\tNumber of operations: " << ops << std::endl
        << "\tNumber of objects: " << objects << std::endl