1240aff80SAlex Richardson# REQUIRES: x86-registered-target 2240aff80SAlex Richardson## Basic test checking that update_test_checks.py works correctly 3240aff80SAlex Richardson# RUN: cp -f %S/Inputs/basic.ll %t.ll && %update_test_checks %t.ll 4240aff80SAlex Richardson# RUN: diff -u %t.ll %S/Inputs/basic.ll.expected 5240aff80SAlex Richardson## Check that running the script again does not change the result: 6240aff80SAlex Richardson# RUN: %update_test_checks %t.ll 7240aff80SAlex Richardson# RUN: diff -u %t.ll %S/Inputs/basic.ll.expected 8240aff80SAlex Richardson## Also try the --function-signature flag 9240aff80SAlex Richardson# RUN: %update_test_checks %t.ll --function-signature 10240aff80SAlex Richardson# RUN: diff -u %t.ll %S/Inputs/basic.ll.funcsig.expected 11*1698cc7eSJohannes Doerfert## Verify that running without the --function-signature flag does not removes 12*1698cc7eSJohannes Doerfert## the -SAME: lines since the generated file will have --function-signature in 13*1698cc7eSJohannes Doerfert## an UTC_ARGS: comment in the first line (from the invocation above) which is 14*1698cc7eSJohannes Doerfert## added to the update invocation below. 15240aff80SAlex Richardson# RUN: %update_test_checks %t.ll 16*1698cc7eSJohannes Doerfert# RUN: diff -u %t.ll %S/Inputs/basic.ll.funcsig.expected 17