22 lines · plain
1# REQUIRES: x86-registered-target2## Basic test checking that update_test_checks.py works correctly3# RUN: cp -f %S/Inputs/basic.ll %t.ll && %update_test_checks %t.ll4# RUN: diff -u %t.ll %S/Inputs/basic.ll.expected5## Check that running the script again does not change the result:6# RUN: %update_test_checks %t.ll7# RUN: diff -u %t.ll %S/Inputs/basic.ll.expected8## Also try the --function-signature flag9# RUN: %update_test_checks %t.ll --function-signature10# RUN: diff -u %t.ll %S/Inputs/basic.ll.funcsig.expected11## Verify that running without the --function-signature flag does not removes12## the -SAME: lines since the generated file will have --function-signature in13## an UTC_ARGS: comment in the first line (from the invocation above) which is14## added to the update invocation below.15# RUN: %update_test_checks %t.ll16# RUN: diff -u %t.ll %S/Inputs/basic.ll.funcsig.expected17## Restore the original file without --function-signature and check that18## --version 2 will implicitly enable it and also check the return type.19# RUN: cp -f %S/Inputs/basic.ll %t.ll20# RUN: %update_test_checks %t.ll --version 221# RUN: diff -u %t.ll %S/Inputs/basic.ll.v2.expected22