reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
# Check that we do not crash if a parallelism group is set to None. Permits
# usage of the following pattern.
#
# [lit.common.cfg]
#   lit_config.parallelism_groups['my_group'] = None
#   if <condition>:
#     lit_config.parallelism_groups['my_group'] = 3
#
# [project/lit.cfg]
#   config.parallelism_group = 'my_group'
#
# Note: We need at least 2 tests to prevent lit from using "single process
#       mode", which ignores parallelism groups.
#

# RUN: %{lit} -j2 %{inputs}/parallelism-groups | FileCheck %s

# CHECK:     -- Testing: 2 tests, 2 workers --
# CHECK-DAG: PASS: parallelism-groups :: test1.txt
# CHECK-DAG: PASS: parallelism-groups :: test2.txt
# CHECK:     Expected Passes    : 2