1 ## Check that generated functions are included.
2 # RUN: cp -f %S/Inputs/generated_funcs.ll %t.ll && %update_test_checks --include-generated-funcs %t.ll
3 # RUN: diff -u %t.ll %S/Inputs/generated_funcs.ll.generated.expected
5 ## Check that running the script again does not change the result:
6 # RUN: %update_test_checks --include-generated-funcs %t.ll
7 # RUN: diff -u %t.ll %S/Inputs/generated_funcs.ll.generated.expected
8 ## Also try the --check-globals flag
9 # RUN: %update_test_checks %t.ll --check-globals
10 # RUN: diff -u %t.ll %S/Inputs/generated_funcs.ll.generated.globals.expected
12 ## Check that generated functions are not included.
13 # RUN: cp -f %S/Inputs/generated_funcs.ll %t.ll && %update_test_checks %t.ll
14 # RUN: diff -u %t.ll %S/Inputs/generated_funcs.ll.nogenerated.expected
16 ## Check that running the script again does not change the result:
17 # RUN: %update_test_checks %t.ll
18 # RUN: diff -u %t.ll %S/Inputs/generated_funcs.ll.nogenerated.expected
19 ## Also try the --check-globals flag
20 # RUN: %update_test_checks %t.ll --check-globals
21 # RUN: diff -u %t.ll %S/Inputs/generated_funcs.ll.nogenerated.globals.expected