From f59c738fd54e018caaf7558dc377b8741fca2d9c Mon Sep 17 00:00:00 2001 From: Jesus Checa Hidalgo Date: Tue, 16 Jul 2024 14:07:44 +0200 Subject: [PATCH 1/2] Create compat18 branch --- tests/main.fmf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/main.fmf b/tests/main.fmf index 872f1ef..ea268a4 100644 --- a/tests/main.fmf +++ b/tests/main.fmf @@ -14,7 +14,7 @@ framework: shell # Always define "test" key and override in adjust or in each specific test # metadata if needed. -test: ./test.sh +test: "PATH=/usr/lib64/llvm18/bin:$PATH ./test.sh" # Commonly used keys are initialized to empty. require: [] @@ -35,10 +35,10 @@ adjust+: # Common requirements when LLVM is not SCL-ized - require+: - - clang - - clang-libs - - libomp - - libomp-devel + - clang18 + - clang18-libs + - libomp18 + - libomp18-devel when: collection is not defined # Requirements for SCL-ized LLVM From d48bf8554ec26ff58d78b2ecb66263ac18ff4cc5 Mon Sep 17 00:00:00 2001 From: Jesus Checa Hidalgo Date: Mon, 5 Aug 2024 09:33:39 +0200 Subject: [PATCH 2/2] Shell static analysis Add pre-commit hook for static analysis on shell scripts (shellcheck) --- .pre-commit-config.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e5388a6..2e27e78 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,3 +12,10 @@ repos: rev: 1.32.2 hooks: - id: tmt-lint + +- repo: https://github.com/koalaman/shellcheck-precommit + rev: v0.10.0 + hooks: + - id: shellcheck + require_serial: true # Podman has trouble running concurrently + args: ["--exclude=SC1091"] # Ignore "Not following" sourced scripts