Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimofey <t.danshin@corp.mail.ru>2015-05-14 16:46:48 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:48:04 +0300
commiteb3b1c88299e07d09dfda3a739adbd60fca67392 (patch)
tree2a30e1bf8dab3c0c26c3ab1f923746465e03634d /testing
parentc084cccccc1d1f050d1bc370e11e61625553a342 (diff)
1) Added an XML parser so that we can see test results using Jenkins's jUnit functionality.
2) Created a server for the downloader tests to download things from. Some of the downloader tests work, some don't. The ones that don't work are the ones testing chunked downloads. They will be fixed later after consultations with Alex. 3) Added chunked downloads. 4) Here we added calculating the duration of each of the tests and adding that information to the jUnit xml for Jenkins. 5) Allowed to provide full paths to the tests folder, as it was impossible to run debug tests before.
Diffstat (limited to 'testing')
-rw-r--r--testing/testingmain.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/testing/testingmain.cpp b/testing/testingmain.cpp
index d47779b01e..8c2943cd27 100644
--- a/testing/testingmain.cpp
+++ b/testing/testingmain.cpp
@@ -1,14 +1,15 @@
-#include "testing/testregister.hpp"
#include "testing/testing.hpp"
+#include "testing/testregister.hpp"
#include "base/logging.hpp"
-#include "base/string_utils.hpp"
#include "base/regexp.hpp"
+#include "base/string_utils.hpp"
+#include "base/timer.hpp"
#include "std/iostream.hpp"
+#include "std/target_os.hpp"
#include "std/string.hpp"
#include "std/vector.hpp"
-#include "std/target_os.hpp"
#ifdef OMIM_UNIT_TEST_WITH_QT_EVENT_LOOP
@@ -94,8 +95,10 @@ int main(int argc, char * argv[])
try
{
+ my::HighResTimer timer(true);
// Run the test.
pTest->m_Fn();
+ uint64_t const elapsed = timer.ElapsedNano();
if (g_bLastTestOK)
{
@@ -108,6 +111,7 @@ int main(int argc, char * argv[])
testResults[iTest] = false;
++numFailedTests;
}
+ LOG(LINFO, ("Test took", elapsed, "ns"));
}
catch (TestFailureException const & )