[PATCH] D25398: [lit] Use path as test suite name

Brian Gesiak via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 8 11:47:16 PDT 2016


modocache created this revision.
modocache added reviewers: ddunbar, echristo, delcypher, beanz.
modocache added a subscriber: llvm-commits.
Herald added subscribers: mgorny, mehdi_amini.

This resolves an item from `utils/lit/TODO`, which suggested that the
path to a test suite be used in lit output, instead of the test suite
name specified in the lit config. This makes re-running lit test
suites easier, because users are able to copy-and-paste the test suite
name.

Changing the lit output for LLVM may have unintended consequences, so
to stage the rollout of this feature, add an option to use the old
behavior, `--use-test-suite-names`. (Swift and other projects that use
LLVM will use the new behavior by default once they update their LLVM
checkouts).

I've tested these changes by running the utils/lit/tests (all passing),
as well as check-llvm with the option enabled and disabled.


https://reviews.llvm.org/D25398

Files:
  CMakeLists.txt
  utils/lit/TODO
  utils/lit/lit/LitConfig.py
  utils/lit/lit/TestingConfig.py
  utils/lit/lit/main.py
  utils/lit/tests/Inputs/discovery/lit.cfg
  utils/lit/tests/Inputs/discovery/subsuite/lit.cfg
  utils/lit/tests/Inputs/exec-discovery-in-tree/lit.cfg
  utils/lit/tests/Inputs/googletest-format/lit.cfg
  utils/lit/tests/Inputs/googletest-timeout/lit.cfg
  utils/lit/tests/Inputs/googletest-upstream-format/lit.cfg
  utils/lit/tests/Inputs/progress-bar/lit.cfg
  utils/lit/tests/Inputs/shtest-format/lit.cfg
  utils/lit/tests/Inputs/shtest-output-printing/lit.cfg
  utils/lit/tests/Inputs/shtest-shell/lit.cfg
  utils/lit/tests/Inputs/shtest-timeout/lit.cfg
  utils/lit/tests/Inputs/test-data/lit.cfg
  utils/lit/tests/Inputs/unittest-adaptor/lit.cfg
  utils/lit/tests/Inputs/use-test-suite-names/named/lit.cfg
  utils/lit/tests/Inputs/use-test-suite-names/named/test-one.txt
  utils/lit/tests/Inputs/use-test-suite-names/unnamed/lit.cfg
  utils/lit/tests/Inputs/use-test-suite-names/unnamed/test-one.txt
  utils/lit/tests/discovery.py
  utils/lit/tests/googletest-format.py
  utils/lit/tests/googletest-timeout.py
  utils/lit/tests/googletest-upstream-format.py
  utils/lit/tests/lit.cfg
  utils/lit/tests/progress-bar.py
  utils/lit/tests/shtest-format.py
  utils/lit/tests/shtest-output-printing.py
  utils/lit/tests/shtest-shell.py
  utils/lit/tests/shtest-timeout.py
  utils/lit/tests/test-data.py
  utils/lit/tests/test-output.py
  utils/lit/tests/use-test-suite-names.py
  utils/lit/tests/xunit-output.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25398.74039.patch
Type: text/x-patch
Size: 33774 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161008/fa9cc9dc/attachment.bin>


More information about the llvm-commits mailing list