Compare commits

...

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

7 changed files with 75 additions and 3 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

4
.gitignore vendored
View File

@ -1 +1,5 @@
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

View File

@ -1 +1,2 @@
7ac9291376fcdf25330d3c1700b78f6a32be5803 SOURCES/lit-15.0.7.tar.gz
dbac0a7fb870d8463bb5f637f0b837966d4c8032 lit-16.0.6.tar.gz
af07f365643f841c69797e9059b66f0bd847f1cd LICENSE.TXT

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,4 +1,4 @@
%global lit_version 15.0.7
%global lit_version 16.0.6
#global rc_ver 1
#%%global post_ver 1
@ -13,6 +13,8 @@ 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}}}
# Remove the license file if it gets included in the tarball again.
Source1: https://raw.githubusercontent.com/llvm/llvm-project/llvmorg-%{lit_version}%{?rc_ver:rc%{rc_ver}}/llvm/utils/lit/LICENSE.TXT
# for file check
%if %{with check}
@ -34,6 +36,7 @@ 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
cp %{SOURCE1} ./
%build
%py3_build
@ -51,11 +54,17 @@ sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}%{python3_sitelib}/lit/*.p
%files -n python3-lit
%license LICENSE.TXT
%doc README.txt
%doc README.rst
%{python3_sitelib}/*
%{_bindir}/lit
%changelog
* 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

2
sources Normal file
View File

@ -0,0 +1,2 @@
SHA512 (lit-16.0.6.tar.gz) = 994140c36aa8140fc28e41f47f9cb8fff0a9e6caa43ccb19e1d7b93f01a2c77b007bd85bb44ca29c47432abf3151845f2e1c5883b6f410109702bae0f975f773
SHA512 (LICENSE.TXT) = 4a3325224ec2c86de08cf6f9320f1c95a6de061e45b53841df8fcab755d77341c27e0e064e4330d096b413c4fbb5310362b2f6c9b5c60e907bdceb2ff9b956d0

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"