1*240aff80SAlex Richardson# REQUIRES: x86-registered-target
2*240aff80SAlex Richardson## Basic test checking that update_test_checks.py works correctly
3*240aff80SAlex Richardson# RUN: cp -f %S/Inputs/basic.ll %t.ll && %update_test_checks %t.ll
4*240aff80SAlex Richardson# RUN: diff -u %t.ll %S/Inputs/basic.ll.expected
5*240aff80SAlex Richardson## Check that running the script again does not change the result:
6*240aff80SAlex Richardson# RUN: %update_test_checks %t.ll
7*240aff80SAlex Richardson# RUN: diff -u %t.ll %S/Inputs/basic.ll.expected
8*240aff80SAlex Richardson## Also try the --function-signature flag
9*240aff80SAlex Richardson# RUN: %update_test_checks %t.ll --function-signature
10*240aff80SAlex Richardson# RUN: diff -u %t.ll %S/Inputs/basic.ll.funcsig.expected
11*240aff80SAlex Richardson## Verify that running without the --function-signature flag removes the -SAME: lines:
12*240aff80SAlex Richardson# RUN: %update_test_checks %t.ll
13*240aff80SAlex Richardson# RUN: diff -u %t.ll %S/Inputs/basic.ll.expected
14