We have a downstream project with a command-line utility that operates pretty much exactly like `opt`. So it would make sense for us to maintain tests with update_test_checks.py with our custom tool substituted for `opt`, as this change allows. Differential Revision: https://reviews.llvm.org/D136329
9 lines
443 B
Plaintext
9 lines
443 B
Plaintext
# NOTE: Use a '\' in 'llvm\-extract' to prevent substitution.
|
|
|
|
# RUN: cp -f %S/Inputs/custom-tool.ll %t.ll && %update_test_checks %t.ll --tool=llvm\-extract --tool-binary=llvm-extract
|
|
# RUN: diff -u %t.ll %S/Inputs/custom-tool.ll.expected
|
|
|
|
## Check that running the script again does not change the result.
|
|
# RUN: %update_test_checks %t.ll --tool=llvm\-extract --tool-binary=llvm-extract
|
|
# RUN: diff -u %t.ll %S/Inputs/custom-tool.ll.expected
|