Format all files with 'pre-commit run -a'

This commit is contained in:
Konrad Kleine 2024-05-22 09:53:23 +02:00 committed by Timm Bäder
parent f67a3015ee
commit d786a89a64
7 changed files with 22 additions and 22 deletions

View file

@ -5,7 +5,7 @@
set -e set -e
# This is important for systems that have a different local but want to produce # This is important for systems that have a different local but want to produce
# a valid changelog date. # a valid changelog date.
LANG=en_EN LANG=en_EN
function loginfo() { function loginfo() {

View file

@ -19,6 +19,7 @@ repos:
- id: check-yaml - id: check-yaml
args: args:
- "--allow-multiple-documents" - "--allow-multiple-documents"
- "--unsafe"
# See https://tmt.readthedocs.io/en/latest/guide.html#checking-data-validity # See https://tmt.readthedocs.io/en/latest/guide.html#checking-data-validity
- repo: https://github.com/teemtee/tmt.git - repo: https://github.com/teemtee/tmt.git

View file

@ -58,7 +58,7 @@ local-list-check: setup
--define "_disable_source_fetch 0" \ --define "_disable_source_fetch 0" \
-- $(SPEC) -bl -- $(SPEC) -bl
.PHONY: local-prep .PHONY: local-prep
local-prep: setup local-prep: setup
fedpkg --release $(FEDORA_RELEASE) -v \ fedpkg --release $(FEDORA_RELEASE) -v \
prep \ prep \
@ -94,4 +94,3 @@ local-tmt-vm:
-c fedora-llvm-team/llvm-snapshots-big-merge-20240124 \ -c fedora-llvm-team/llvm-snapshots-big-merge-20240124 \
test \ test \
report report

View file

@ -22,17 +22,17 @@ export LIT_XFAIL=""
# in your test paths. # in your test paths.
declare -a filter_out_tests declare -a filter_out_tests
#region LLVM xfail tests #region LLVM xfail tests
# Xfail testing of update utility tools # Xfail testing of update utility tools
# LLVM :: # LLVM ::
export LIT_XFAIL="$LIT_XFAIL;tools/UpdateTestChecks" export LIT_XFAIL="$LIT_XFAIL;tools/UpdateTestChecks"
#endregion #endregion
#region CLANG xfail tests #region CLANG xfail tests
# Clang :: # Clang ::
export LIT_XFAIL="$LIT_XFAIL;clang/test/CodeGen/profile-filter.c" export LIT_XFAIL="$LIT_XFAIL;clang/test/CodeGen/profile-filter.c"
#endregion #endregion
@ -45,7 +45,7 @@ export LIT_XFAIL="$LIT_XFAIL;clang/test/CodeGen/profile-filter.c"
# Change Dir: '/builddir/build/BUILD/openmp-17.0.6.src/redhat-linux-build' # Change Dir: '/builddir/build/BUILD/openmp-17.0.6.src/redhat-linux-build'
# Run Build Command(s): /usr/bin/ninja-build -v -j 6 check-openmp # Run Build Command(s): /usr/bin/ninja-build -v -j 6 check-openmp
# [1/1] cd /builddir/build/BUILD/openmp-17.0.6.src/redhat-linux-build && /usr/bin/cmake -E echo check-openmp\ does\ nothing,\ dependencies\ not\ found. # [1/1] cd /builddir/build/BUILD/openmp-17.0.6.src/redhat-linux-build && /usr/bin/cmake -E echo check-openmp\ does\ nothing,\ dependencies\ not\ found.
# #
# We're marking the tests that are failing with the follwing error as expected to fail (XFAIL): # We're marking the tests that are failing with the follwing error as expected to fail (XFAIL):
# #
# gdb.error: No symbol "ompd_sizeof____kmp_gtid" in current context # gdb.error: No symbol "ompd_sizeof____kmp_gtid" in current context
@ -79,7 +79,7 @@ filter_out_tests+=("libomp :: ompt/teams/distribute_dispatch.c")
# The following tests seem pass on ppc64le and x86_64 and aarch64 only: # The following tests seem pass on ppc64le and x86_64 and aarch64 only:
%ifnarch ppc64le x86_64 s390x aarch64 %ifnarch ppc64le x86_64 s390x aarch64
# Passes on ppc64le: # Passes on ppc64le:
# libomptarget :: powerpc64le-ibm-linux-gnu :: mapping/target_derefence_array_pointrs.cpp # libomptarget :: powerpc64le-ibm-linux-gnu :: mapping/target_derefence_array_pointrs.cpp
# libomptarget :: powerpc64le-ibm-linux-gnu-LTO :: mapping/target_derefence_array_pointrs.cpp # libomptarget :: powerpc64le-ibm-linux-gnu-LTO :: mapping/target_derefence_array_pointrs.cpp
# Passes on x86_64: # Passes on x86_64:
@ -88,7 +88,7 @@ filter_out_tests+=("libomp :: ompt/teams/distribute_dispatch.c")
# Passes on s390x: # Passes on s390x:
# libomptarget :: s390x-ibm-linux-gnu :: mapping/target_derefence_array_pointrs.cpp # libomptarget :: s390x-ibm-linux-gnu :: mapping/target_derefence_array_pointrs.cpp
# libomptarget :: s390x-ibm-linux-gnu-LTO :: mapping/target_derefence_array_pointrs.cpp # libomptarget :: s390x-ibm-linux-gnu-LTO :: mapping/target_derefence_array_pointrs.cpp
export LIT_XFAIL="$LIT_XFAIL;mapping/target_derefence_array_pointrs.cpp" export LIT_XFAIL="$LIT_XFAIL;mapping/target_derefence_array_pointrs.cpp"
%endif %endif
%ifnarch x86_64 %ifnarch x86_64
@ -97,8 +97,8 @@ export LIT_XFAIL="$LIT_XFAIL;mapping/target_derefence_array_pointrs.cpp"
# libomptarget :: x86_64-pc-linux-gnu :: api/ompx_3d.cpp # libomptarget :: x86_64-pc-linux-gnu :: api/ompx_3d.cpp
# libomptarget :: x86_64-pc-linux-gnu-LTO :: api/ompx_3d.c # libomptarget :: x86_64-pc-linux-gnu-LTO :: api/ompx_3d.c
# libomptarget :: x86_64-pc-linux-gnu-LTO :: api/ompx_3d.cpp # libomptarget :: x86_64-pc-linux-gnu-LTO :: api/ompx_3d.cpp
# libomptarget :: aarch64-unknown-linux-gnu :: # libomptarget :: aarch64-unknown-linux-gnu ::
export LIT_XFAIL="$LIT_XFAIL;api/ompx_3d.c" export LIT_XFAIL="$LIT_XFAIL;api/ompx_3d.c"
export LIT_XFAIL="$LIT_XFAIL;api/ompx_3d.cpp" export LIT_XFAIL="$LIT_XFAIL;api/ompx_3d.cpp"
%endif %endif
@ -194,7 +194,7 @@ export LIT_XFAIL="$LIT_XFAIL;worksharing/for/omp_collapse_one_int.c"
filter_out_tests=$(printf "|%s" "${filter_out_tests[@]}") filter_out_tests=$(printf "|%s" "${filter_out_tests[@]}")
# Remove the initial pipe symbol # Remove the initial pipe symbol
filter_out_tests=${filter_out_tests:1} filter_out_tests=${filter_out_tests:1}
# Properly escape path dots (".") for use in regular expression # Properly escape path dots (".") for use in regular expression
filter_out_tests=$(echo $filter_out_tests | sed 's/\./\\./') filter_out_tests=$(echo $filter_out_tests | sed 's/\./\\./')
# Add enclosing parenthesis # Add enclosing parenthesis
export LIT_FILTER_OUT="($filter_out_tests)" export LIT_FILTER_OUT="($filter_out_tests)"

View file

@ -98,7 +98,7 @@
%ifarch ppc64le %ifarch ppc64le
# Too many threads on ppc64 systems causes OOM errors. # Too many threads on ppc64 systems causes OOM errors.
# TODO(kkleine): Is this really needed when building together with llvm? # TODO(kkleine): Is this really needed when building together with llvm?
%global _smp_mflags -j8 %global _smp_mflags -j8
%endif %endif

View file

@ -23,10 +23,10 @@ addFilter("llvm-test.x86_64: W: no-documentation")
# This is a devel package # This is a devel package
addFilter("W: devel-file-in-non-devel-package") addFilter("W: devel-file-in-non-devel-package")
# These symlinks are dangling on x64_64 # These symlinks are dangling on x64_64
addFilter("compiler-rt.x86_64: W: dangling-relative-symlink /usr/lib64/clang/[0-9]+.[0-9]+.[0-9]+/") addFilter("compiler-rt.x86_64: W: dangling-relative-symlink /usr/lib64/clang/[0-9]+.[0-9]+.[0-9]+/")
addFilter("E: hardcoded-library-path in ../../lib/clang/") addFilter("E: hardcoded-library-path in ../../lib/clang/")
@ -37,13 +37,13 @@ addFilter("E: hardcoded-library-path in ../../lib/clang/")
## CLANG ############################################################ ## CLANG ############################################################
clang needs libstdc++-devel installed in order to compile c++ programs. clang needs libstdc++-devel installed in order to compile c++ programs.
addFilter("E: devel-dependency libstdc\+\+-devel") addFilter("E: devel-dependency libstdc\+\+-devel")
addFilter("E: explicit-lib-dependency libstdc\+\+-devel") addFilter("E: explicit-lib-dependency libstdc\+\+-devel")
# clang installs libear to /usr/lib on all arches, so we have to use # clang installs libear to /usr/lib on all arches, so we have to use
# a hard-coded /usr/lib path in order to move it to the python3 sitelib. # a hard-coded /usr/lib path in order to move it to the python3 sitelib.
addFilter("E: hardcoded-library-path in %{_prefix}/lib/{libear") addFilter("E: hardcoded-library-path in %{_prefix}/lib/{libear")

View file

@ -3,4 +3,4 @@
The tests for LLVM are in a separate repo: https://src.fedoraproject.org/tests/llvm The tests for LLVM are in a separate repo: https://src.fedoraproject.org/tests/llvm
This directory should contain only fmf plans (such as build-gating.fmf) which import This directory should contain only fmf plans (such as build-gating.fmf) which import
the tests from the tests repo. This can be done using the "url" parameter of the the tests from the tests repo. This can be done using the "url" parameter of the
plan's "discover" step. Reference: https://tmt.readthedocs.io/en/stable/spec/plans.html#fmf plan's "discover" step. Reference: https://tmt.readthedocs.io/en/stable/spec/plans.html#fmf