[llvm] [LIT] Workaround the 60 processed limit on Windows (PR #157759)

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 17 08:12:03 PDT 2025


================
@@ -0,0 +1,25 @@
+# Create a directory with 20 files and check the number of pools and workers per pool that lit will use.
+
+# RUN: rm -Rf %t.dir && mkdir -p %t.dir
+# RUN: python -c "for i in range(20): open(f'%t.dir/file{i}.txt', 'w').write('RUN:')"
+
+# RUN:  echo "import lit.formats" > %t.dir/lit.cfg
+# RUN:  echo "config.name = \"top-level-suite\"" >> %t.dir/lit.cfg
+# RUN:  echo "config.suffixes = [\".txt\"]" >> %t.dir/lit.cfg
+# RUN:  echo "config.test_format = lit.formats.ShTest()" >> %t.dir/lit.cfg
+
+
+# 15 workers per pool max, 100 workers total max: we expect lit to cap the workers to the number of files
+# RUN: env "LIT_WINDOWS_MAX_WORKERS_PER_POOL=15" %{lit} -s %t.dir/ -j100 2>&1 | grep "total distributed as" > %t.out
+# CHECK: Using 2 pools balancing 20 workers total distributed as [10, 10]
----------------
boomanaiden154 wrote:

Can we also assert here and the two cases below that we're running all 20 tests?

https://github.com/llvm/llvm-project/pull/157759


More information about the llvm-commits mailing list