1## Basic test checking that update_test_checks.py works correctly on various "IR value" kinds
2# RUN: cp -f %S/Inputs/various_ir_values.ll %t.ll && %update_test_checks %t.ll
3# RUN: diff -u %t.ll %S/Inputs/various_ir_values.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/various_ir_values.ll.expected
7## Also try the --function-signature flag
8# RUN: %update_test_checks %t.ll --function-signature
9# RUN: diff -u %t.ll %S/Inputs/various_ir_values.ll.funcsig.expected
10## Verify that running without the --function-signature flag does not removes
11## the -SAME: lines since the generated file will have --function-signature in
12## an UTC_ARGS: comment in the first line (from the invocation above) which is
13## added to the update invocation below.
14# RUN: %update_test_checks %t.ll
15# RUN: diff -u %t.ll %S/Inputs/various_ir_values.ll.funcsig.expected
16## Also try the --check-globals flag
17# RUN: %update_test_checks %t.ll --check-globals
18# RUN: diff -u %t.ll %S/Inputs/various_ir_values.ll.funcsig.globals.expected
19