Compare commits

...

No commits in common. "c8-stream-rhel8" and "stream-llvm-toolset-rhel8-rhel-8.10.0" have entirely different histories.

7 changed files with 108 additions and 7 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

6
.gitignore vendored
View File

@ -1 +1,7 @@
SOURCES/lit-15.0.7.tar.gz
/lit-15.0.7.tar.gz
/lit-16.0.0.tar.gz
/LICENSE.TXT
/lit-16.0.6.tar.gz
/lit-17.0.2.tar.gz
/lit-17.0.6.tar.gz

View File

@ -1 +1 @@
7ac9291376fcdf25330d3c1700b78f6a32be5803 SOURCES/lit-15.0.7.tar.gz
171f21ccbe6535f29c9b154dbe2c1c58d66ffeab lit-17.0.6.tar.gz

18
gating.yaml Normal file
View File

@ -0,0 +1,18 @@
--- !Policy
product_versions:
- fedora-*
decision_context: bodhi_update_push_testing
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
--- !Policy
product_versions:
- fedora-*
decision_context: bodhi_update_push_stable
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
--- !Policy
product_versions:
- rhel-9
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier0.functional}

View File

@ -1,18 +1,39 @@
%global lit_version 15.0.7
#global rc_ver 1
#%%global post_ver 1
%bcond_with snapshot_build
%if %{with snapshot_build}
# Unlock LLVM Snapshot LUA functions
%{llvm_sb_verbose}
%{llvm_sb}
%endif
%global lit_version 17.0.6
#global rc_ver 4
#global post_ver 0
%global python_lit_srcdir %{srcname}-%{version}%{?rc_ver:rc%{rc_ver}}%{?post_ver:.post%{post_ver}}
%if %{with snapshot_build}
%undefine rc_ver
%global lit_version %{llvm_snapshot_version}
%global python_lit_srcdir llvm-%{lit_version}.src/utils/lit
%endif
%bcond_without check
Name: python-lit
Version: %{lit_version}%{?rc_ver:~rc%{rc_ver}}
Version: %{lit_version}%{?rc_ver:~rc%{rc_ver}}%{?llvm_snapshot_version_suffix:~%{llvm_snapshot_version_suffix}}
Release: 1%{?dist}
BuildArch: noarch
License: NCSA
Summary: Tool for executing llvm test suites
URL: https://pypi.python.org/pypi/lit
%if %{without snapshot_build}
Source0: %{pypi_source lit %{lit_version}%{?rc_ver:rc%{rc_ver}}%{?post_ver:.post%{post_ver}}}
%else
Source0: %{llvm_snapshot_source_prefix}llvm-%{llvm_snapshot_yyyymmdd}.src.tar.xz
%{llvm_snapshot_extra_source_tags}
%endif
# for file check
%if %{with check}
@ -28,12 +49,17 @@ lit is a tool used by the LLVM project for executing its test suites.
Summary: LLVM lit test runner for Python 3
Requires: python3-setuptools
Recommends: python3-psutil
%description -n python3-lit
lit is a tool used by the LLVM project for executing its test suites.
%prep
%if %{with snapshot_build}
%autosetup -n %{python_lit_srcdir} -p4
%else
%autosetup -n lit-%{lit_version}%{?rc_ver:rc%{rc_ver}}%{?post_ver:.post%{post_ver}} -p4
%endif
%build
%py3_build
@ -44,18 +70,30 @@ lit is a tool used by the LLVM project for executing its test suites.
# Strip out #!/usr/bin/env python
sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}%{python3_sitelib}/lit/*.py
%if %{with check}
%if %{with check} && %{without snapshot_build}
%check
%{__python3} lit.py -v tests
%endif
%files -n python3-lit
%license LICENSE.TXT
%doc README.txt
%doc README.rst
%{python3_sitelib}/*
%{_bindir}/lit
%changelog
* Wed Nov 29 2023 Nikita Popov <npopov@redhat.com> - 17.0.6-1
- Update to LLVM 17.0.6
* Wed Oct 04 2023 Nikita Popov <npopov@redhat.com> - 17.0.2-1
- Update to LLVM 17.0.2
* Sat Jun 17 2023 Tom Stellard <tstellar@redhat.com> - 16.0.6-1
- 16.0.6 Release
* Thu Apr 27 2023 Tom Stellard <tstellar@redhat.com> - 16.0.0-1
- 16.0.0 Release
* Thu Jan 19 2023 Tom Stellard <tstellar@redhat.com> - 15.0.7-1
- Update to lit 15.0.7

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (lit-17.0.6.tar.gz) = ba88aa84f5ec54ed0ac5996432b4a024d042996e98d9eab13ef9b12239c9a811b752e9caa6f6a9a4e926f6f75245c7cbda69dc61a9de663957686fe352c203f0

37
tests/build-gating.fmf Normal file
View File

@ -0,0 +1,37 @@
#
# Build/PR gating tests for *LLVM 13*
#
# Imports and runs tests provided by Fedora LLVM git for the matching LLVM version.
#
# NOTE: *always* keep this file in sync with upstream, i.e. Fedora. Since we cannot "discover" a plan,
# we must duplicate at least some part of upstream plan setup, like `adjust` or `provision`. Not necessarily
# all steps, but if we do need some of them here, let's focus on making changes in upstream first, to preserve
# one source of truth. Once TMT learns to include whole plans, we could drop the copied content from here.
#
summary: python-lit tests for build/PR gating
adjust:
- because: "Plan to be ran when either executed locally, or executed by CI system to gate a build or PR."
when: >-
trigger is defined
and trigger != commit
and trigger != build
enabled: false
- because: "When testing SCL-ized LLVM, the collection must be enabled first"
environment+:
WITH_SCL: "scl enable llvm-toolset-13.0 rust-toolset-1.58"
when: "collection == llvm-toolset-13.0"
discover:
- name: "Upstream python-lit tests for build/PR gating"
how: fmf
url: https://src.fedoraproject.org/rpms/python-lit.git
ref: rawhide
execute:
how: tmt
provision:
hardware:
memory: ">= 4 GiB"