[all-commits] [llvm/llvm-project] 0b7ae4: [LIT] Print discovered tests and percentages (#660...

Madhur Amilkanthwar via All-commits all-commits at lists.llvm.org
Sat Oct 21 20:52:39 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0b7ae41b23fc05c2ac3afc8566b8a923d7f76c45
      https://github.com/llvm/llvm-project/commit/0b7ae41b23fc05c2ac3afc8566b8a923d7f76c45
  Author: Madhur Amilkanthwar <madhur13490 at gmail.com>
  Date:   2023-10-22 (Sun, 22 Oct 2023)

  Changed paths:
    M llvm/utils/lit/lit/main.py
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/before-name.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/between-name-equals.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/braces-empty.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/braces-with-dot.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/braces-with-equals.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/braces-with-newline.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/braces-with-number.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/braces-with-ws.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/empty.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/no-equals.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/no-name.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/ws-only.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/continuation/empty.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/continuation/end-in-double-backslash.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/continuation/unterminated-define-bad-redefine.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/continuation/unterminated-define-continuation.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/continuation/unterminated-define-redefine.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/continuation/unterminated-define-run.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/continuation/unterminated-define.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/continuation/unterminated-redefine-bad-define.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/continuation/unterminated-redefine-continuation.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/continuation/unterminated-redefine-define.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/continuation/unterminated-redefine-run.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/continuation/unterminated-redefine.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/continuation/unterminated-run-define.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/continuation/unterminated-run-redefine.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/continuation/ws-only.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/defined-check/define-already-by-config.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/defined-check/define-already-by-test.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/defined-check/define-inside-pattern.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/defined-check/define-multiple-exact.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/defined-check/define-multiple-once-exact.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/defined-check/define-prefixes-pattern.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/defined-check/define-suffixes-pattern.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/defined-check/redefine-inside-pattern.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/defined-check/redefine-multiple-exact.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/defined-check/redefine-multiple-once-exact.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/defined-check/redefine-none.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/defined-check/redefine-prefixes-pattern.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/defined-check/redefine-suffixes-pattern.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/location-range.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/errors/no-run.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/examples/param-subst.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/expansion-order.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/line-number-substitutions.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/name-chars.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/recursiveExpansionLimit.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/shared-substs-0.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/shared-substs-1.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/value-equals.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/value-escaped.txt
    M llvm/utils/lit/tests/Inputs/shtest-define/ws-and-continuations.txt
    M llvm/utils/lit/tests/discovery.py
    M llvm/utils/lit/tests/ignore-fail.py
    M llvm/utils/lit/tests/shtest-env.py
    M llvm/utils/lit/tests/shtest-not.py
    M llvm/utils/lit/tests/shtest-pushd-popd.py

  Log Message:
  -----------
  [LIT] Print discovered tests and percentages (#66057) (#69831)

This patch adds "nice-to-have" feature in lit.
it prints the total number of discovered tests at the beginning. It is
covenient to see the total number of tests and avoid scrolling up to the
beginning of log.

Further, this patch also prints %ge of tests.

This patch fixes tests pointed by previous attempt of landing this
patch.

Reviewed By: RoboTux, jdenny-ornl

Co-authored-by: Madhur A <madhura at nvidia.com>




More information about the All-commits mailing list