llvm-project/llvm/utils/lit/tests/custom-result-category.py

19 lines
601 B
Python

# UNSUPPORTED: system-windows
# Test lit.main.add_result_category() extension API.
# FIXME: this test depends on order of tests
# RUN: rm -f %{inputs}/custom-result-category/.lit_test_times.txt
# RUN: not %{lit} -j 1 %{inputs}/custom-result-category | FileCheck %s
# CHECK: CUSTOM_PASS: custom-result-category :: test1.txt
# CHECK: CUSTOM_FAILURE: custom-result-category :: test2.txt
# CHECK-NOT: My Passed Tests (1)
# CHECK-NOT: custom-result-category :: test1.txt
# CHECK: My Failed Tests (1)
# CHECK: custom-result-category :: test2.txt
# CHECK: My Passed: 1
# CHECK: My Failed: 1