|
1 | 1 | from buildbot.plugins import steps
|
| 2 | +from buildbot.process.results import SUCCESS, FAILURE, WARNINGS |
2 | 3 | from buildbot.steps.shell import ShellCommand
|
3 | 4 | from zorg.buildbot.builders.UnifiedTreeBuilder import getLLVMBuildFactoryAndSourcecodeSteps, addCmakeSteps, addNinjaSteps
|
4 | 5 | from zorg.buildbot.commands.LitTestCommand import LitTestCommand
|
@@ -92,6 +93,26 @@ def getBOLTCmakeBuildFactory(
|
92 | 93 | haltOnFailure=False,
|
93 | 94 | flunkOnFailure=False,
|
94 | 95 | env=env),
|
| 96 | + ShellCommand( |
| 97 | + name='nfc-check-validation', |
| 98 | + command=( |
| 99 | + "info=$(bin/llvm-bolt.new --version | grep 'BOLT revision' " |
| 100 | + "| grep -q '<unknown>' || echo 'bolt-revision'); " |
| 101 | + "info=$info$(readelf --notes bin/llvm-bolt.new " |
| 102 | + "| grep -q 'Build ID:' && echo ' GNU-build-id'); " |
| 103 | + "info=$(echo \"$info\" | sed 's/^ //'); " |
| 104 | + "[ ! -z \"$info\" ] || return 0 && " |
| 105 | + "(printf \"NFC-Mode WARNING: unique IDs found in binaries ($info)" |
| 106 | + ". This means tests will run at all times.\"; return 2)" |
| 107 | + ), |
| 108 | + description=('Check that nfc-mode works as intended when ' |
| 109 | + 'comparing with the previous commit.'), |
| 110 | + haltOnFailure=False, |
| 111 | + warnOnFailure=True, |
| 112 | + warnOnWarnings=True, |
| 113 | + decodeRC={0: SUCCESS, 1: FAILURE, 2: WARNINGS}, |
| 114 | + descriptionDone=["NFC-Mode unique IDs in binaries"], |
| 115 | + env=env), |
95 | 116 | ShellCommand(
|
96 | 117 | name='check-bolt-different',
|
97 | 118 | command=('find -name timing.log -delete; '
|
|
0 commit comments