More apollo harness integration

Reviewers: mferencevic

Reviewed By: mferencevic

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D603
This commit is contained in:
Mislav Bradac 2017-07-29 21:44:39 +02:00
parent 0f562cd043
commit ddbb63a601
3 changed files with 5 additions and 1 deletions

View File

@ -365,6 +365,7 @@ if (MEMGRAPH)
set_property(TARGET ${MEMGRAPH_BUILD_NAME}
PROPERTY CXX_STANDARD ${cxx_standard})
target_link_libraries(${MEMGRAPH_BUILD_NAME} memgraph_lib)
add_custom_target(memgraph DEPENDS ${MEMGRAPH_BUILD_NAME})
endif()
# utility target to copy hardcoded queries

View File

@ -1 +1,2 @@
.storage/
.harness_summary

View File

@ -38,7 +38,7 @@ class _QuerySuite:
# what the QuerySuite can work with
KNOWN_KEYS = {"config", "setup", "itersetup", "run", "iterteardown",
"teardown", "common"}
summary = "Summary:\n{:>30}{:>30}{:>30}{:>30}{:>30}\n".format(
summary = "Macro benchmark summary:\n{:>30}{:>30}{:>30}{:>30}{:>30}\n".format(
"scenario_name", "query_parsing_time", "query_planning_time",
"query_plan_execution_time", WALL_TIME)
@ -529,6 +529,8 @@ def main():
for result in results:
jail.store_data(result)
print("\n\n{}\n".format(suite.summary))
with open(os.path.join(DIR_PATH, ".harness_summary"), "w") as f:
print(suite.summary, file=f)
if __name__ == "__main__":