[llvm] [lit] Support forcing lexical test order
authorMichał Górny <mgorny@moritz.systems>
Sat, 7 Aug 2021 14:40:09 +0000 (16:40 +0200)
committerMichał Górny <mgorny@moritz.systems>
Fri, 27 Aug 2021 18:47:11 +0000 (20:47 +0200)
commit2f69c82cec1ae05b4fdcef4ac48f48e9e2bad32b
tree772b277905558651abd98c2e53abbc934d9aec74
parent9dd74ee3f08e029bac00257cfc8ab8412cbcea6c
[llvm] [lit] Support forcing lexical test order

Add a new --order option to choose between available test orders:
the default "smart" order, predictable "lexical" order or "random"
order.  Default to using lexical order and one job in the lit test
suite.

Differential Revision: https://reviews.llvm.org/D107695
30 files changed:
llvm/docs/CommandGuide/lit.rst
llvm/utils/lit/lit/cl_arguments.py
llvm/utils/lit/lit/main.py
llvm/utils/lit/tests/allow-retries.py
llvm/utils/lit/tests/custom-result-category.py
llvm/utils/lit/tests/discovery.py
llvm/utils/lit/tests/googletest-discovery-failed.py
llvm/utils/lit/tests/googletest-format.py
llvm/utils/lit/tests/googletest-timeout.py
llvm/utils/lit/tests/googletest-upstream-format.py
llvm/utils/lit/tests/ignore-fail.py
llvm/utils/lit/tests/lit-opts.py
llvm/utils/lit/tests/lit.cfg
llvm/utils/lit/tests/max-failures.py
llvm/utils/lit/tests/progress-bar.py
llvm/utils/lit/tests/reorder.py
llvm/utils/lit/tests/shtest-env.py
llvm/utils/lit/tests/shtest-format-argv0.py
llvm/utils/lit/tests/shtest-format.py
llvm/utils/lit/tests/shtest-inject.py
llvm/utils/lit/tests/shtest-keyword-parse-errors.py
llvm/utils/lit/tests/shtest-not.py
llvm/utils/lit/tests/shtest-output-printing.py
llvm/utils/lit/tests/shtest-recursive-substitution.py
llvm/utils/lit/tests/shtest-run-at-line.py
llvm/utils/lit/tests/shtest-shell.py
llvm/utils/lit/tests/test-data-micro.py
llvm/utils/lit/tests/test-data.py
llvm/utils/lit/tests/test-output-micro.py
llvm/utils/lit/tests/test-output.py