xref: /llvm-project/llvm/utils/lit/tests/custom-result-category.py (revision 2f69c82cec1ae05b4fdcef4ac48f48e9e2bad32b)
1# UNSUPPORTED: system-windows
2# Test lit.main.add_result_category() extension API.
3
4# RUN: not %{lit} %{inputs}/custom-result-category | FileCheck %s
5
6# CHECK: CUSTOM_PASS: custom-result-category :: test1.txt
7# CHECK: CUSTOM_FAILURE: custom-result-category :: test2.txt
8
9# CHECK-NOT: My Passed Tests (1)
10# CHECK-NOT:   custom-result-category :: test1.txt
11# CHECK:     My Failed Tests (1)
12# CHECK:       custom-result-category :: test2.txt
13
14# CHECK: My Passed: 1
15# CHECK: My Failed: 1
16