[all-commits] [llvm/llvm-project] 1e2d50: Add lit config for dir with standalone tests

RoboTux via All-commits all-commits at lists.llvm.org
Wed Feb 17 02:39:14 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1e2d50936a3bff2c8065a99d06f37b51185fbd81
      https://github.com/llvm/llvm-project/commit/1e2d50936a3bff2c8065a99d06f37b51185fbd81
  Author: Thomas Preud'homme <thomasp at graphcore.ai>
  Date:   2021-02-17 (Wed, 17 Feb 2021)

  Changed paths:
    M llvm/docs/CommandGuide/lit.rst
    M llvm/utils/lit/lit/TestingConfig.py
    M llvm/utils/lit/lit/discovery.py
    A llvm/utils/lit/tests/Inputs/standalone-tests-with-excludes/lit.cfg
    A llvm/utils/lit/tests/Inputs/standalone-tests-with-excludes/true.txt
    A llvm/utils/lit/tests/Inputs/standalone-tests-with-suffixes/lit.cfg
    A llvm/utils/lit/tests/Inputs/standalone-tests-with-suffixes/true.txt
    A llvm/utils/lit/tests/Inputs/standalone-tests/lit.cfg
    A llvm/utils/lit/tests/Inputs/standalone-tests/true.txt
    M llvm/utils/lit/tests/discovery.py

  Log Message:
  -----------
  Add lit config for dir with standalone tests

Some test systems do not use lit for test discovery but only for its
substitution and test selection because they use another way of managing
test collections, e.g. CTest. This forces those tests to be invoked with
lit --no-indirectly-run-check. When a mix of lit version is in use, it
requires to detect the availability of that option.

This commit provides a new config option standalone_tests to signal a
directory made of tests meant to run as standalone. When this option is
set, lit skips test discovery and the indirectly run check. It also adds
the missing documentation for --no-indirectly-run-check.

Reviewed By: jdenny

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




More information about the All-commits mailing list