]> 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:51 +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>
(cherry picked from commit 12c1f1157c7b9513a3d9f716a8ec62fce00d28f5)

src/test/osd/TestRados.cc

index 3e44129fa332dbc94156f3051a92af0991699df3..b026e0c607c4e43d75c07118b03c3e70f6dcbb9e 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
@@ -244,6 +246,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