[lit] Provide extension API for custom result categories
authorJulian Lettner <julian.lettner@apple.com>
Tue, 14 Apr 2020 22:55:38 +0000 (15:55 -0700)
committerJulian Lettner <julian.lettner@apple.com>
Thu, 30 Apr 2020 02:45:55 +0000 (19:45 -0700)
commitfbdcfcd4c392c487c411632b951f4aada351154e
treeab7cf28bdb3a34e7b6f3a0ec9261393f08e366e3
parent52ec983895436089c5be0b0c4d967423db16045b
[lit] Provide extension API for custom result categories

The lnt test suite defines custom result codes [1].  Support those via
an extension API instead of "by accident", which should offer the
advantage of properly handling them when we print test results.

[1] https://reviews.llvm.org/D77986

Reviewed By: Meinersbur

Differential Revision: https://reviews.llvm.org/D78164
llvm/utils/lit/lit/main.py
llvm/utils/lit/tests/Inputs/custom-result-category/format.py [new file with mode: 0644]
llvm/utils/lit/tests/Inputs/custom-result-category/lit.cfg [new file with mode: 0644]
llvm/utils/lit/tests/Inputs/custom-result-category/test1.txt [new file with mode: 0644]
llvm/utils/lit/tests/Inputs/custom-result-category/test2.txt [new file with mode: 0644]
llvm/utils/lit/tests/Inputs/shtest-inject/lit.cfg
llvm/utils/lit/tests/custom-result-category.py [new file with mode: 0644]