summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/UpdateTestChecks
Commit message (Collapse)AuthorAgeFilesLines
* Make mangled_names.test and update_cc_test_checks.py work with Python 2.Nico Weber2020-01-021-3/+3
| | | | Differential Revision: https://reviews.llvm.org/D71565
* [Utils] Deal with occasionally deleted functionsJohannes Doerfert2019-12-313-0/+36
| | | | | | | | | | | | When functions exist for some but not all run lines we need to be careful when selecting the prefix. So far, a common prefix was potentially chosen as there was never a "conflict" that would have caused otherwise. With this patch we avoid common prefixes if they are used by run lines that do not emit the function. Reviewed By: lebedev.ri Differential Revision: https://reviews.llvm.org/D68850
* [Utils][Fix] Minor test result changeJohannes Doerfert2019-12-311-1/+1
|
* [Utils] Reuse argument variable names in the bodyJohannes Doerfert2019-12-315-1/+41
| | | | | | | | | | If we have `int foo(int a) { return a; }` and we run with --function-signature enabled, we want a single variable declaration for `a` which is reused later. Reviewed By: lebedev.ri Differential Revision: https://reviews.llvm.org/D69722
* [Utils] Allow update_test_checks to scrub attribute annotationsJohannes Doerfert2019-12-314-0/+43
| | | | | | | | | Attribute annotations on calls, e.g., #0, are not useful on their own. This patch adds a flag to update_test_checks.py to scrub them. Reviewed By: lebedev.ri Differential Revision: https://reviews.llvm.org/D68851
* Partially revert "Add initial tests for update_{llc_,cc_,}test_checks.py"Reid Kleckner2019-12-266-142/+7
| | | | | | | | | | | | | | This reverts part of commit 240aff80e0e59b79779d046b3275904fc0750d59. It reverts cc802ea67beb66d2f8a935e647c3aedcf7848211. We currently run LLVM tests in environments where python3 exists on PATH, but it is broken. I don't think PATH discovery is a strong enough signal that a working Python 3 installation exists. If this will be the way forward, IMO we should follow the direction of debug-info-tests, and use CMake's PYTHON_EXECUTABLE, which in the near future will be a known-to-work Python 3 executable. If it's not Python 3, then we don't have to run this test.
* Only run mangled_names.test if python3 is available.Nico Weber2019-12-162-8/+14
| | | | | | | | | The %update_cc_test_checks substitution only gets added if python3 is on path, so the test fails if it isn't. Don't run the test when it would fail. Also include the '%' in the arg to add_update_script_substition(), to help greppability.
* Add initial tests for update_{llc_,cc_,}test_checks.pyAlex Richardson2019-12-1615-0/+508
Summary: This commit adds basic tests for these update script to validate that they still work as expected. In the future we could extend these tests whenever new features are added to avoid introducing regressions. Reviewers: xbolva00, MaskRay, jdoerfert Reviewed By: jdoerfert Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D70660
OpenPOWER on IntegriCloud