Commit graph

218 commits

Author SHA1 Message Date
Tulio Magno Quites Machado Filho
8421b02273 integration-test-suite: Disable gold tests on RHEL 11
gold's build has been disabled on ELN/RHEL 11.
Get prepared for this change.

https://src.fedoraproject.org/rpms/binutils/c/ddb3cb864e8689fe53f8accd61def4403ff94aee
2026-08-24 20:41:34 -03:00
Tulio Magno Quites Machado Filho
ce3e5b6a0d Revert "kernel-ark-build: Disable LTO tests"
This reverts commit f57ec3b76c
because the original issue has been fixed.
2026-08-20 14:19:20 -03:00
Tulio Magno Quites Machado Filho
61dd89e407 flang: Fix linking phase on older distros
Ensure libgcc is installed in order to prevent the following error:

    /usr/bin/ld: cannot find -lgcc_s: No such file or directory

This is usually pre-installed because it's a requirement for dnf, but
dnf is not guaranteed to be installed in all scenarios.
2026-07-23 12:03:25 -03:00
Nikita Popov
3fd65b9990 Only run flang test on Fedora >= 44
In Fedora 43 flang is a separate package. This causes errors when
installing packages during snapshot tmt test runs on f43.
2026-06-24 14:54:28 +00:00
Nikita Popov
6f3ff93a5f Remove checks for Fedora < 41
These Fedora versions are no longer maintained, so remove related
conditionals.
2026-06-24 14:29:53 +02:00
Tulio Magno Quites Machado Filho
48d9d59fc6 Add a new test for flang
Build and run 2 simple Fortran programs using flang in order to
guarantee we have a flang that does the most basic tasks.
2026-06-08 11:02:46 -03:00
Tulio Magno Quites Machado Filho
f57ec3b76c kernel-ark-build: Disable LTO tests
Both base-lto and debug-lto tests have been failing since Linux upstream
added a new config option. This is requiring us to waive test results
whenever we have a new build on Rawhide.
The issue is being tracked at:
https://gitlab.com/cki-project/kernel-ark/-/issues/191

The kernel-ark team disabled these tests in their infrastructure and
believe that fixing them is not a priority at the moment.

Considering that our goal with kernel-ark-build is to track build issues
caused by LLVM changes before the kernel team see them, we should keep
our tests identical to them. In other words: we should disable both LTO
tests.
2026-04-28 15:14:33 -03:00
Tulio Magno Quites Machado Filho
18972ea7ad llvm-test-suite: Enable verbose mode
This helps to investigate build issues affecting the tests by allowing
us to see which flags are passed to the compiler.
2026-04-01 12:18:56 -03:00
Tulio Magno Quites Machado Filho
6df13a6c10 kernel-ark: Use dnf5 when available
Prefer to use dnf5, when it's available on the system.
Fallback to dnf-3 otherwise.

This fixes a warning on Testing Farm that might be interpreted as failure.
2026-03-10 12:11:58 +00:00
Jesus Checa Hidalgo
b5095271a1 kernel-ark-build: add dnf-plugins-core to requires
Some systems don't have it installed by default causing an error during
the setup phase.
2026-03-06 09:23:03 +01:00
Tulio Magno Quites Machado Filho
4f4c834e22 lldb-dwz: Be compatible with compat packages
Avoid running rpm against package names because they change when we test
a compat package.
Use the executable path instead because PATH gets modified when testing
compat packages.
2026-02-26 16:30:49 -03:00
Tulio Magno Quites Machado Filho
4c4d9b3bc5 rhbz_1482491: Ignore false-positive from find
Find returns failure when it isn't able to access all subdirectories,
causing a false-positive.

Avoid that by redirecting error messages to /dev/null and counting the
amount of files found.
2026-02-02 13:58:18 -03:00
Jesus Checa Hidalgo
140490cb76 lldb-dwz: Don't check for unsupported DW_FORM values in lldb 23+
LLDB 23 adds support for DW_FORM GNU_ref_alt and GNU_strp_alt.
Since this is supported unconditionally (don't depend on any config
dependent on the distro or the maintainer) we will set a check for the
lldb version in the script, rather than overcomplicating the metadata.
2026-01-30 10:04:32 +01:00
Tulio Magno Quites Machado Filho
dc54daea6f gcc-clang-compatibility: Use the new gcc-toolset-xx-env command
GTS 15 is shifting way from scl and provides a new command called
gcc-toolset-xx-env in order to setup its environment.
2025-11-21 11:00:36 -03:00
Tulio Magno Quites Machado Filho
03f0cdd926 Remove troubleshooting code from llvm-test-suite
Sometime this code was added in order to help troubleshoot an issue with
miniFE. It hasn't helped and it's causing issues when reporting issues
in Github because this is generating a too long output.
2025-11-13 11:45:51 -03:00
Jesus Checa Hidalgo
e4d1e99d30 Comprehensive review of TMT metadata
* Test tag review: add fedora-only and multilib, removed spoils-installation
  for being a duplicate of not-in-default
* Remove outdiated architecture and distribution adjustment rules.
* Further simplification of adjust rules by using major version comparison (~<)
  (https://fmf.readthedocs.io/en/stable/context.html#major-version)
* Add bugzilla links and descriptions to some tests
* Improve README by documenting all context dimensions used and test tags.
2025-09-03 10:15:33 +02:00
Jesus Checa Hidalgo
961500a660 pie-rpm: update relevancy
Remove fedora related relevancy as versions not supporting pie are
already EOL
Added RHEL/CentOS relevancy.
2025-08-28 13:33:31 +02:00
Tulio Magno Quites Machado Filho
d342d3c08b abi-test-suite: Add improvements
1. Ensure the required packages are listed.
2. Ignore running this test on RHEL/CentOS because the llvm-test-suite
   package is not available there.
3. Ignore running this test for compat packages.
4. Remove treatment of parameters from the script because this will
   always be called from tmt without parameters.
5. Remove temporary directory.
2025-08-07 15:44:30 +00:00
Tulio Magno Quites Machado Filho
a7f0d01a63 Add abi-test-suite
Move the test from https://src.fedoraproject.org/tests/llvm-test-suite
to here. Apply the following changes:
1. Rename runtest.sh to test.sh.
2. Enable the test.
2025-08-07 15:44:30 +00:00
Tulio Magno Quites Machado Filho
a84cc4e933 llvm-test-suite: Remove argument handling
This script is called from tmt, which does not pass any arguments.
2025-08-07 09:55:14 -03:00
Tulio Magno Quites Machado Filho
8309550db6 llvm-test-suite: Move script to this repository
Move a script from https://src.fedoraproject.org/rpms/llvm-test-suite to
here. With this change, network access and git are not required.
Adds cmake to the list of required package as this was missing before.
2025-08-06 16:46:53 -03:00
Nikita Popov
f2da47a2ca Use python3 instead of python
This is necessary on RHEL 8.
2025-08-05 10:13:07 +02:00
Nikita Popov
4f6d648643 Add test for use of lldb inside venv
For https://bugzilla.redhat.com/show_bug.cgi?id=2361538.
2025-07-10 07:28:26 +00:00
Nikita Popov
6018ff44fc Add test for multilib installation
Make sure that llvm-devel and llvm-devel.i686 can be installed
at the same time.
2025-07-09 18:29:38 +02:00
Tulio Magno Quites Machado Filho
7baa9af2da Require package which
We started to see TF failures on c10s because which was not installed.
Ensure the package is installed in order to avoid these errors.
2025-06-03 17:26:09 -03:00
Nikita Popov
ed30e923cc Skip installing weak dependencies in kernel-ark-build test 2025-03-06 16:48:56 +01:00
Nikita Popov
7dfda355f9 Fix cmake-imported-targets-llvm test for compat packages
We should be looking for clangNN-devel-dependencies.txt instead
of clang-devel-dependencies.txt in that case.
2025-03-06 15:32:31 +01:00
Jesus Checa Hidalgo
d48991f42a Add test for cmake imported targets
This test will ensure that all the exported targets (imported from the
user's perspective) from the clang and llvm find_package() are shipped
and are part of a dependency of the package which provides the
find_package.
2025-03-03 09:18:02 +01:00
Jesus Checa Hidalgo
5f75e69cbd libllvm-size: Add compat package support
Detect libLLVM path using llvm-config to make the script
reusable with compat packages.
2025-02-20 09:19:52 +01:00
Jesus Checa Hidalgo
91290fc5b1 Compat package testing adjustments
* No i686 pkgs, disable cross-compile-i686
* No python pkgs, disable lldb python interpreter tests, and ensure
  lldbNN does not depend on python-lldb
* Force integration testsuite to run libomp tests.
* Do not check buildrequires in pie-rpm so the spec builds with clangNN
2025-02-19 17:36:12 +01:00
Jesus Checa Hidalgo
38d826adb5 Deprecate DevTools collection metadata
Latest devtools (containing llvm-toolset-15.0) has been EOL since
May 2024 and all that metadata is now dead code.
2025-02-19 10:51:04 +00:00
Jesus Checa Hidalgo
f2b09a5e62 Remove legacy TCMS metadata 2025-02-19 10:51:04 +00:00
Jesus Checa Hidalgo
3e6d2aa917 Disable bolt-sanity in compat testing 2025-02-19 10:30:13 +01:00
Nikita Popov
03356db82d Only run bolt test on x86_64 and aarch64 2025-02-18 12:25:50 +01:00
Nikita Popov
d40ca8022a Add sanity test for llvm-bolt
Test that instrumentation and optimization don't generate errors,
to prevent issues like https://bugzilla.redhat.com/show_bug.cgi?id=2344830.
2025-02-14 15:57:07 +00:00
Nikita Popov
d2c29f2096 Disable mlir in integration test suite for snapshots + f40
This is a fixup for https://src.fedoraproject.org/tests/llvm/pull-request/44.
I forgot that we only ship mlir in snapshots starting with fedora 41.
2025-02-14 09:34:52 +01:00
Nikita Popov
cce3cc4dde Merge fedora and snapshot configs for integration-test-suite
Now that snapshots also include libcxx and mlir, we can use the
normal fedora configuration.

Also drop the conditions for fedora versions older than 40, which
are no longer supported.
2025-02-12 12:46:33 +01:00
Nikita Popov
023ec1ee03 Update ucrt test for new file output
After a recent file update, the output is now:

> a.exe: PE32+ executable for MS Windows 5.02 (console), x86-64, 18 sections

Adjust the grep to match both the old and new output. I think the
key parts are that it's a "PE32+ executable" for x86-64.
2025-02-10 16:11:35 +01:00
Jesus Checa Hidalgo
7b47ede5cd Fix for build-gating.fmf
Exclude tests tagged with "not-in-default" from discovery.
2025-01-13 17:14:48 +01:00
Jesus Checa Hidalgo
3ee1395888 Add sanity test for python-lit 2025-01-09 10:46:49 +01:00
Jesus Checa Hidalgo
c5c7ff94a3 Fix missing "execute" in ld-alternatives testplan. 2025-01-09 09:17:38 +01:00
Jesus Checa Hidalgo
bbc0f57af4 Group lldb tests in a subdirectory 2025-01-08 13:26:59 +01:00
Jesus Checa Hidalgo
b7d140d50e Group lld tests in a directory
lld metadata adjustments are tricky and makes sense to group the tests
together to avoid as much duplicity as possible from a maintainability
point of view
2024-12-20 17:10:08 +01:00
Jesus Checa Hidalgo
9fbc967ffd Rename test scripts
Clang test scripts were named "runtest.sh". Rename them as "test.sh"
for consistency with the rest of the repo.
2024-12-20 15:08:27 +01:00
Jesus Checa Hidalgo
3e6638c72c Merge remote-tracking branch 'lld/main' into merge-test-repos 2024-12-20 13:49:15 +01:00
Jesus Checa Hidalgo
f18276601b Merge remote-tracking branch 'lldb/main' into merge-test-repos 2024-12-20 12:33:50 +01:00
Jesus Checa Hidalgo
4ff8a6a55f Merge remote-tracking branch 'compiler-rt/main' into merge-test-repos 2024-12-20 11:17:57 +01:00
Jesus Checa Hidalgo
e851d75dcc Merge remote-tracking branch 'clang/main' into merge-test-repos 2024-12-20 11:16:01 +01:00
Jesus Checa Hidalgo
40fef0bd32 zstd-support: replace readelf with llvm-readelf
In some RHEL distros, the system binutils is too old and readelf
will not print ZSTD in the section details.
2024-12-18 09:56:01 +01:00
Jesus Checa Hidalgo
25257b851b zstd-support: Fix adjust condition for distros.
Make the condition more specific to each distro Y stream,
as specifying several comma-separated distros is prone to
fail in tmt.
2024-12-17 15:08:35 +01:00