Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ INCLUDE(CTest)
find_package(Python3 REQUIRED)

add_test(NAME Gitlab
COMMAND ${CMAKE_COMMAND} -E $ENV{EXIT_CODE})
COMMAND bash -c "./bin/benchpark analyze --workspace-dir wkp/dane/kripke/workspace --ctest-emit &&
exec ${CMAKE_COMMAND} -E \"$EXIT_CODE\""
)

10 changes: 10 additions & 0 deletions lib/benchpark/cmd/analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,10 @@ def make_chart(**kwargs):
"Note: ordering of regions in the figure are in reverse order of the tree."
)

# CTest measurement file emission
if kwargs.get("ctest_emit"):
print(f"<CTestMeasurementFile type=\"image/png\" name=\"TestImage\">{filename}.png</CTestMeasurementFile>")


# ----------------
# Data Preparation
Expand Down Expand Up @@ -769,6 +773,12 @@ def setup_parser(root_parser):
help="With 'archive', path for the .tar.gz (defaults to CWD/<workspace>-<timestamp>.tar.gz)",
)

# CTest flags
root_parser.add_argument(
"--ctest-emit",
action="store_true",
help="Emit CTest measurement markup."
)

def command(args):
"""
Expand Down
Loading