Files
clang-p2996/llvm/test/tools/UpdateTestChecks/update_test_checks/custom-tool.test
Nicolai Hähnle 0b779494a8 update_test_checks.py: allow use with custom tools
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
2022-10-27 10:06:01 +02:00

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