parallelism-groups.py 697 B

123456789101112131415161718192021
  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. # Note: We need at least 2 tests to prevent lit from using "single process
  13. # mode", which ignores parallelism groups.
  14. #
  15. # RUN: %{lit} -j2 %{inputs}/parallelism-groups | FileCheck %s
  16. # CHECK: -- Testing: 2 tests, 2 workers --
  17. # CHECK-DAG: PASS: parallelism-groups :: test1.txt
  18. # CHECK-DAG: PASS: parallelism-groups :: test2.txt
  19. # CHECK: Expected Passes : 2