[llvm] workflows/release-tasks: Setup FileCheck and not for release-lit (PR #66799)

Tulio Magno Quites Machado Filho via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 19 11:41:53 PDT 2023


https://github.com/tuliom created https://github.com/llvm/llvm-project/pull/66799

lit tests require commands FileCheck and not. They must be available in the PATH.

Reuse the tools provided by Ubuntu and create local symlinks in order to deal with the versioning suffix.

This also guarantees that python3-psutil is installed in order to enable more tests.

Fixes #64892.

>From 1ce8ec595ec5bdf92266b86ee51c0ff726470487 Mon Sep 17 00:00:00 2001
From: Tulio Magno Quites Machado Filho <tuliom at redhat.com>
Date: Tue, 19 Sep 2023 15:21:57 -0300
Subject: [PATCH] workflows/release-tasks: Setup FileCheck and not for
 release-lit

lit tests require commands FileCheck and not. They must be available in
the PATH.

Reuse the tools provided by Ubuntu and create local symlinks in order to
deal with the versioning suffix.

This also guarantees that python3-psutil is installed in order to enable
more tests.

Fixes #64892.
---
 .github/workflows/release-tasks.yml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/release-tasks.yml b/.github/workflows/release-tasks.yml
index 013714005d1124e..b3da8c5b47da0ef 100644
--- a/.github/workflows/release-tasks.yml
+++ b/.github/workflows/release-tasks.yml
@@ -84,12 +84,14 @@ jobs:
         uses: actions/checkout at v4
 
       - name: Install dependencies
-        run: sudo apt-get install -y python3-setuptools
+        run: sudo apt-get install -y python3-setuptools python3-psutil llvm-15-tools
 
       - name: Test lit
         run: |
           cd llvm/utils/lit
-          python3 lit.py tests
+          ln -s /usr/bin/FileCheck-15 ./FileCheck
+          ln -s /usr/bin/not-15 ./not
+          PATH=$(pwd):$PATH python3 lit.py tests
 
       - name: Package lit
         run: |



More information about the llvm-commits mailing list