Add gating

This commit is contained in:
Lukáš Zachar 2025-10-07 16:45:36 +02:00 committed by Lumir Balhar
parent 532509588e
commit 4cf852c46b
3 changed files with 33 additions and 0 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

6
gating.yaml Normal file
View File

@ -0,0 +1,6 @@
--- !Policy
product_versions:
- rhel-*
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

26
plan.fmf Normal file
View File

@ -0,0 +1,26 @@
# based on https://gitlab.com/redhat/centos-stream/rpms/python-meson-python/-/blob/c10s/ci.fmf
execute:
how: tmt
discover:
- how: shell
tests:
- name: smoke
test: |
set -eux
TMP_DIR="$(mktemp -d)"
pushd "$TMP_DIR"
meson init --name foo
cat >pyproject.toml <<EOF
[build-system]
build-backend = 'mesonpy'
requires = ['meson-python']
EOF
python3.14 -c 'import mesonpy; x = mesonpy.Project(source_dir=".", build_dir="./build"); x.build()'
build/foo
popd
rm -rf "$TMP_DIR"
require:
- gcc
- python3.14-meson-python