Skip to content
Merged
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 zorg/buildbot/builders/DebugifyBuilder.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from buildbot.plugins import util
from buildbot.steps.shell import ShellCommand
from zorg.buildbot.builders import TestSuiteBuilder
from zorg.buildbot.builders.TestSuiteBuilder import test_suite_build_path
from zorg.buildbot.commands.CmakeCommand import CmakeCommand


Expand Down Expand Up @@ -53,7 +54,9 @@ def getDebugifyBuildFactory(
])

# This path will be passed through to util.Interpolate, so we leave it in this format.
debugify_output_path = f"%(prop:builddir)s/debugify-report.json"
# NB: This must be stored in the test suite build directory, as that is the only way to ensure that it is
# unconditionally up before (and not after) each run.
debugify_output_path = f"%(prop:builddir)s/{test_suite_build_path}/debugify-report.json"

# Make a local copy of the test suite configure args, as we are going to modify that.
if extra_test_suite_configure_args is not None:
Expand Down
5 changes: 4 additions & 1 deletion zorg/buildbot/builders/TestSuiteBuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
from zorg.buildbot.commands.NinjaCommand import NinjaCommand
from zorg.buildbot.commands.LitTestCommand import LitTestCommand

# The DebugifyBuilder needs to know the test-suite build directory, so we share the build directory via this variable.
test_suite_build_path = 'test/build-test-suite'

# This builder is uses UnifiedTreeBuilders and adds running
# llvm-test-suite with cmake and ninja step.

Expand All @@ -30,7 +33,7 @@ def addTestSuiteStep(
lit = util.Interpolate('%(prop:builddir)s/' + compiler_dir + '/bin/llvm-lit')
test_suite_base_dir = util.Interpolate('%(prop:builddir)s/' + 'test')
test_suite_src_dir = util.Interpolate('%(prop:builddir)s/' + 'test/test-suite')
test_suite_workdir = util.Interpolate('%(prop:builddir)s/' + 'test/build-test-suite')
test_suite_workdir = util.Interpolate('%(prop:builddir)s/' + test_suite_build_path)
cmake_lit_arg = util.Interpolate('-DTEST_SUITE_LIT:FILEPATH=%(prop:builddir)s/' + compiler_dir + '/bin/llvm-lit')
# used for cmake building test-suite step
if extra_configure_args is not None:
Expand Down