aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/Shell/Scripts/TestVersionFixScript.test
blob: 9467d1655b05c7762d7889397181104dd7c57010 (plain)
1
2
3
4
5
6
7
8
9
10
11
# Create a temp dir for output and run the version fix script on the truncated version of lldb-defines.h in the inputs dir.
RUN: mkdir -p %t/Outputs
RUN: %python %p/../../../scripts/version-header-fix.py --input_path %p/Inputs/lldb-defines.h --output_path %t/Outputs/lldb-defines.h --major 21 --minor 0 --patch 12

# Check the output
RUN: cat %t/Outputs/lldb-defines.h | FileCheck %s

# The LLDB version defines must be uncommented and filled in with the values passed into the script.
CHECK: {{^}}#define LLDB_VERSION 21
CHECK: {{^}}#define LLDB_REVISION 12
CHECK: {{^}}#define LLDB_VERSION_STRING "21.0.12"