• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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