1# REQUIRES: x86-registered-target 2## Basic test checking that update_test_checks.py works correctly 3# RUN: cp -f %S/Inputs/basic.ll %t.ll && %update_test_checks %t.ll 4# RUN: diff -u %t.ll %S/Inputs/basic.ll.expected 5## Check that running the script again does not change the result: 6# RUN: %update_test_checks %t.ll 7# RUN: diff -u %t.ll %S/Inputs/basic.ll.expected 8## Also try the --function-signature flag 9# RUN: %update_test_checks %t.ll --function-signature 10# RUN: diff -u %t.ll %S/Inputs/basic.ll.funcsig.expected 11## Verify that running without the --function-signature flag does not removes 12## the -SAME: lines since the generated file will have --function-signature in 13## an UTC_ARGS: comment in the first line (from the invocation above) which is 14## added to the update invocation below. 15# RUN: %update_test_checks %t.ll 16# RUN: diff -u %t.ll %S/Inputs/basic.ll.funcsig.expected 17## Restore the original file without --function-signature and check that 18## --version 2 will implicitly enable it and also check the return type. 19# RUN: cp -f %S/Inputs/basic.ll %t.ll 20# RUN: %update_test_checks %t.ll --version 2 21# RUN: diff -u %t.ll %S/Inputs/basic.ll.v2.expected 22