[UpdateTestChecks] Update tests option
authorDavid Bolvansky <david.bolvansky@gmail.com>
Wed, 7 Aug 2019 14:44:50 +0000 (14:44 +0000)
committerDavid Bolvansky <david.bolvansky@gmail.com>
Wed, 7 Aug 2019 14:44:50 +0000 (14:44 +0000)
commit7169ea391a7cc21da171e1c8acb5731e390d6852
tree9c99dc047d4bbe2cff98004e71a0c91cfe11799a
parent762bc3351f29b5a71dca31ddd114034a383ff0bd
[UpdateTestChecks] Update tests option

Summary:
Port of new feature introduced https://reviews.llvm.org/D65610 to other update scripts.

- update_*_checks.py: add an alias -u for --update-only
- port --update-only to other update_*_test_checks.py scripts
- update script aborts if the test file was generated by another update_*_test_checks.py utility

Reviewers: lebedev.ri, RKSimon, MaskRay, reames, gbedwell

Reviewed By: MaskRay

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D65793

llvm-svn: 368174
llvm/utils/UpdateTestChecks/common.py
llvm/utils/update_analyze_test_checks.py
llvm/utils/update_cc_test_checks.py
llvm/utils/update_llc_test_checks.py
llvm/utils/update_mir_test_checks.py
llvm/utils/update_test_checks.py