xref: /llvm-project/llvm/utils/lit/tests/parallelism-groups.py (revision 99d6e05e7144a2638c4e85ea75099e9dc6432cde)
1# Check that we do not crash if a parallelism group is set to None. Permits
2# usage of the following pattern.
3#
4# [lit.common.cfg]
5#   lit_config.parallelism_groups['my_group'] = None
6#   if <condition>:
7#     lit_config.parallelism_groups['my_group'] = 3
8#
9# [project/lit.cfg]
10#   config.parallelism_group = 'my_group'
11#
12
13# RUN: %{lit} -j2 %{inputs}/parallelism-groups | FileCheck %s
14
15# CHECK:     -- Testing: 2 tests, 2 workers --
16# CHECK-DAG: PASS: parallelism-groups :: test1.txt
17# CHECK-DAG: PASS: parallelism-groups :: test2.txt
18# CHECK:     Passed: 2
19