Import rpm: 270f3290bd64142133c18fe41d45aeaf3a6cdac5
This commit is contained in:
commit
ee542b31e8
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
||||
1
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
SOURCES/lit-14.0.0.tar.gz
|
18
gating.yaml
Normal file
18
gating.yaml
Normal 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}
|
145
python-lit.spec
Normal file
145
python-lit.spec
Normal file
@ -0,0 +1,145 @@
|
||||
%global lit_version 14.0.0
|
||||
#global rc_ver 1
|
||||
#%%global post_ver 1
|
||||
|
||||
%bcond_without check
|
||||
|
||||
Name: python-lit
|
||||
Version: %{lit_version}%{?rc_ver:~rc%{rc_ver}}
|
||||
Release: 1%{?dist}
|
||||
BuildArch: noarch
|
||||
|
||||
License: NCSA
|
||||
Summary: Tool for executing llvm test suites
|
||||
URL: https://pypi.python.org/pypi/lit
|
||||
Source0: %{pypi_source lit %{lit_version}%{?rc_ver:rc%{rc_ver}}%{?post_ver:.post%{post_ver}}}
|
||||
|
||||
# for file check
|
||||
%if %{with check}
|
||||
BuildRequires: llvm-test
|
||||
%endif
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
|
||||
%description
|
||||
lit is a tool used by the LLVM project for executing its test suites.
|
||||
|
||||
%package -n python3-lit
|
||||
Summary: LLVM lit test runner for Python 3
|
||||
|
||||
Requires: python3-setuptools
|
||||
|
||||
%description -n python3-lit
|
||||
lit is a tool used by the LLVM project for executing its test suites.
|
||||
|
||||
%prep
|
||||
%autosetup -n lit-%{lit_version}%{?rc_ver:rc%{rc_ver}}%{?post_ver:.post%{post_ver}} -p4
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
%py3_install
|
||||
|
||||
# Strip out #!/usr/bin/env python
|
||||
sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}%{python3_sitelib}/lit/*.py
|
||||
|
||||
%if %{with check}
|
||||
%check
|
||||
%{__python3} lit.py tests
|
||||
%endif
|
||||
|
||||
%files -n python3-lit
|
||||
%license LICENSE.TXT
|
||||
%doc README.txt
|
||||
%{python3_sitelib}/*
|
||||
%{_bindir}/lit
|
||||
|
||||
%changelog
|
||||
* Thu Apr 07 2022 Timm Bäder <tbaeder@redhat.com> - 14.0.0-1
|
||||
- Update to 14.0.0
|
||||
|
||||
* Wed Feb 02 2022 Tom Stellard <tstellar@redhat.com> - 13.0.1-1
|
||||
- 13.0.1 Release
|
||||
|
||||
* Fri Oct 15 2021 Tom Stellard <tstellar@redhat.com> - 13.0.0-1
|
||||
- 13.0.0 Release
|
||||
|
||||
* Fri Jul 16 2021 sguelton@redhat.com - 12.0.1-1
|
||||
- 12.0.1 release
|
||||
|
||||
* Thu May 6 2021 sguelton@redhat.com - 12.0.0-1
|
||||
- 12.0.0 release
|
||||
|
||||
* Thu Oct 29 2020 sguelton@redhat.com - 0.11.0-1
|
||||
- 0.11.0 final release
|
||||
|
||||
* Thu Sep 17 2020 sguelton@redhat.com - 0.11.0-0.1.rc1
|
||||
- 0.11.0 rc1 Release
|
||||
|
||||
* Thu Apr 9 2020 sguelton@redhat.com - 0.10.0-1
|
||||
- 0.10.0 final release
|
||||
|
||||
* Fri Sep 27 2019 Tom Stellard <tstellar@redhat.com> - 0.9.0-1
|
||||
- 0.9.0 Release
|
||||
|
||||
* Wed Apr 17 2019 sguelton@redhat.com - 0.8.0-1
|
||||
- 0.8.0 Release
|
||||
|
||||
* Fri Dec 14 2018 Tom Stellard <tstellar@redhat.com> - 0.7.1-1
|
||||
- 0.7.1 Release
|
||||
|
||||
* Tue Nov 27 2018 Tom Stellard <tstellar@redhat.com> - 0.7.0-1
|
||||
- 0.7.0 Release
|
||||
|
||||
* Fri Nov 16 2018 Lumír Balhar <lbalhar@redhat.com> - 0.6.0-6
|
||||
- Require platform-python-setuptools instead of python3-setuptools
|
||||
- Resolves: rhbz#1650540
|
||||
|
||||
* Mon Oct 01 2018 Tom Stellard <tstellar@redhat.com> - 0.6.0-5
|
||||
- Drop SCL macros
|
||||
|
||||
* Wed Sep 12 2018 Tom Stellard <tstellar@redhat.com> - 0.6.0-4
|
||||
- Use versioned python dependencies (python3)
|
||||
|
||||
* Mon Aug 27 2018 Tom Stellard <tstellar@redhat.com> - 0.6.0-3
|
||||
- Fix python3 install
|
||||
|
||||
* Mon Aug 27 2018 Tom Stellard <tstellar@redhat.com> - 0.6.0-2
|
||||
- Enable python3
|
||||
|
||||
* Tue Jul 10 2018 Tom Stellrad <tstellar@redhat.com> - 0.6.0-1
|
||||
- 0.6.0 Release
|
||||
|
||||
* Mon Jul 02 2018 Tom Stellard <tstellar@redhat.com> - 0.5.1-4
|
||||
- Drop python2
|
||||
|
||||
* Tue Jun 12 2018 Tom Stellard <tstellar@redhat.com> - 0.5.1-3
|
||||
- Add BuildRequires: scl-utils-build
|
||||
|
||||
* Thu Jan 11 2018 Tom Stellard - 0.5.1-2
|
||||
- Fix build on RHEL8
|
||||
|
||||
* Tue Jan 09 2018 Tom Stellard <tstellar@redhat.com> - 0.5.1-1
|
||||
- Rebase to 0.5.1
|
||||
|
||||
* Thu Jun 08 2017 Tom Stellard <tstellar@redhat.com> - 0.5.0-7
|
||||
- Build for llvm-toolset-7 rename
|
||||
|
||||
* Thu May 18 2017 Tom Stellard <tstellar@redhat.com> - 0.5.0-6
|
||||
- Fix package names
|
||||
|
||||
* Wed May 10 2017 Tilmann Scheller <tschelle@redhat.com> - 0.5.0-5
|
||||
- Next attempt to add runtime dependency on python-setuptools
|
||||
|
||||
* Tue May 09 2017 Tilmann Scheller <tschelle@redhat.com> - 0.5.0-4
|
||||
- Properly add missing runtime dependency to python-setuptools
|
||||
|
||||
* Tue May 09 2017 Tilmann Scheller <tschelle@redhat.com> - 0.5.0-3
|
||||
- Add missing runtime dependency to python-setuptools
|
||||
|
||||
* Fri Apr 28 2017 Tom Stellard <tstellar@redhat.com> - 0.5.0-2
|
||||
- Add llvm-toolset-4 scl support
|
||||
|
||||
* Thu Mar 09 2017 Tom Stellard <tstellar@redhat.com> - 0.5.0-1
|
||||
- Initial version
|
1
sources
Normal file
1
sources
Normal file
@ -0,0 +1 @@
|
||||
SHA1 (lit-14.0.0.tar.gz) = 0acca41f54bc03a663d895e8b802713c59e049a1
|
37
tests/build-gating.fmf
Normal file
37
tests/build-gating.fmf
Normal 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"
|
Loading…
Reference in New Issue
Block a user