Commit graph

195 commits

Author SHA1 Message Date
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
Jesus Checa Hidalgo
0abd69aae9 Add test to check zstd support is present and works 2024-12-12 14:49:38 +01:00
Tulio Magno Quites Machado Filho
b69c51a4a0 Revert commits related to debugging disk usage
The problem has been fixed and this troubleshooting code is not needed
anymore.

This reverts commits 7b5681ac95 and
336e421c1a.
2024-12-03 10:35:12 -03:00
Edjunior Machado
47cc23d2bb Expect python3.12-lit on RHEL 8 builds
Drop conditional on snapshots.
2024-11-27 16:04:19 +01:00
Jesus Checa Hidalgo
4d92417571 libllvm-size: test that libLLVM contains no debug sections 2024-11-14 18:13:35 +01:00
Tulio Magno Quites Machado Filho
7b5681ac95 Collect further information about disk usage
Continuing the investigation that started with commit 336e421c1a,
restrict the information collected on the /tmp partition because we got
a confirmation this partition is getting full.
Also, collect more details about which directories and files in /tmp are
consuming all disk space.
2024-11-14 11:40:08 -03:00
Tulio Magno Quites Machado Filho
de1663d7a9 Remove temporary files
Ensure s390x-asm-unsupported-pc-relative-addr and shlibs-cet-support
remove temporary files after a successful execution.
2024-11-14 11:40:08 -03:00
Tulio Magno Quites Machado Filho
c140bdf103 rhbz_1647130: Remove tmp_dir at the end
Guarantee the temporary directory is removed after the execution of this
test.
2024-11-13 16:30:58 -03:00
Tulio Magno Quites Machado Filho
336e421c1a Add an extra step in order to debug disk usage
Recent executions of this test on llvm-snapshots have been failing on
due to exhaustion of disk space. Print the disk usage at the end of the
execution in order to help debug this issue.
2024-11-12 15:53:40 -03:00
Jesus Checa Hidalgo
a2b93f39c8 ld-alternative: Update check on alternatives/ld symlink
Before LLD 19 /usr/bin/ld.lld was a file, and now it's a symlink to /usr/bin/lld.
Hence, /etc/alternative/ld symlink now resolves to /usr/bin/lld,
breaking our check and raising false positives.

Updating the expression to match "lld" only fixes the issue.
2024-10-14 10:06:13 +02:00
Nikita Popov
8f44f59b6f Use python3.12-lit for RHEL 8 snapshots
Also disable snapshots.fmf on rhel, because we reuse the main
rhel.fmf for snapshots in that case. snapshots.fmf is the
replacement for fedora.fmf only.
2024-08-12 14:31:16 +02:00
Nikita Popov
8e5e183f85 Allow python3.12-lldb in test 2024-08-09 09:36:50 +02:00
Jesus Checa Hidalgo
d69918d2f8 Add pre-commit config
Add pre-commit hooks for trailing whitespaces and newline at file end
Add pre-commit hook for tmt linting
Add pre-commit hook for static analysis on shell scripts (shellcheck)
Fixed issues flagged by shellcheck.
2024-08-05 09:48:18 +02:00
Jesus Checa Hidalgo
a9a9883a60 Shell static analysis
Add pre-commit hook for static analysis on shell scripts (shellcheck)
Fixed issues flagged by shellcheck.
2024-08-05 09:34:31 +02:00
Jesus Checa Hidalgo
85fc2de396 Shell static analysis
Add pre-commit hook for static analysis on shell scripts (shellcheck)
Fixed issues flagged by shellcheck.
2024-08-05 09:16:47 +02:00
Jesus Checa Hidalgo
cda9761d2e Shell static analysis
Add pre-commit hook for static analysis on shell scripts (shellcheck)
Fixed lots of issues flagged by shellcheck.
2024-08-05 09:15:19 +02:00
Jesus Checa Hidalgo
c8d36d768f Shell static analysis
Add pre-commit hook for static analysis on shell scripts (shellcheck)
Fixed lots of issues flagged by shellcheck.
2024-08-05 09:10:14 +02:00
Jesus Checa Hidalgo
71a2b1c3bf Refactor kernel-ark build test for caching and git clone retry
This commit mitigates test failures due to git unreliability and
improves test time over test reruns using cached SRPMs.
- Added CACHE_DIR_BASE, KERNEL_SRPM_PATTERN and KERNEL SRPM variables.
- Implemented checkCache() to look for an existing SRPM in the cache and
  install its build dependencies.
- Implemented cloneKernelTree() for cloning the kernel-ark repo with
  retries.
- Implemented generateSRPM() to handle all operations required to generate
  an SRPM and cache it.
- Updated main test phase to utilize caching and SRPM generation
  functions.
2024-07-23 10:01:02 +00:00
Timm Bäder
bf7e2faa36 Enable pie-rpm test by default 2024-07-19 07:28:13 +00:00
Jesus Checa Hidalgo
c45fd5b631 Update relevancy for compat packages
rust-sanity disabled, rust always uses latest llvm
binutils-plugin-ar not relevant, llvm-libs compat does not install the
symlink to LLVMgold.so
2024-07-17 13:37:32 +02:00
Jesus Checa Hidalgo
9080b2716a Update test relevancy for compat packages
llvm-test-suite and rpmmacros tests disabled for compat packages
2024-07-17 12:55:17 +02:00
Konrad Kleine
07526ca7fa For snapshots on RHEL we want to check for DWARF5 2024-07-03 16:44:21 +02:00
Jesus Checa Hidalgo
2554ce3aa3 Adjust test and plan relevancy for rhel 8.10 2024-07-01 12:36:20 +02:00
Jesus Checa Hidalgo
e272d84b2a integration testsuite: update relevancy for rhel 8.10 2024-07-01 12:27:50 +02:00