xref: /llvm-project/llvm/test/tools/UpdateTestChecks/update_test_checks/on_the_fly_arg_change.test (revision f50bc823fe6f4279eb2f426dd54f3151878c0216)
1# RUN: cp -f %S/Inputs/on_the_fly_arg_change.ll %t.ll
2# RUN: %update_test_checks %t.ll --function-signature --scrub-attributes
3# RUN: diff -u %t.ll %S/Inputs/on_the_fly_arg_change.ll.expected
4## Check that running the script again does not change the result:
5# RUN: %update_test_checks %t.ll
6# RUN: diff -u %t.ll %S/Inputs/on_the_fly_arg_change.ll.expected
7## Check that the --disable flag is added to the initial UTC_ARGS:
8# RUN: cp -f %S/Inputs/on_the_fly_arg_change.ll %t.ll
9# RUN: %update_test_checks --function-signature --scrub-attributes --disable %t.ll
10# RUN: diff -u %t.ll %S/Inputs/on_the_fly_arg_change.ll.initially_disabled.expected
11## Check that the --disable flag from UTC_ARGS is used:
12# RUN: %update_test_checks %t.ll
13# RUN: diff -u %t.ll %S/Inputs/on_the_fly_arg_change.ll.initially_disabled.expected
14## Check that UTC_ARGS: is parsed after the real command line arguments:
15# RUN: %update_test_checks --enable %t.ll
16# RUN: diff -u %t.ll %S/Inputs/on_the_fly_arg_change.ll.initially_disabled.expected
17