Add tmt gating plan

Resolves: rhbz#2159304
This commit is contained in:
Lukas Zachar 2023-01-31 13:55:48 +01:00 committed by Charalampos Stratakis
parent 52512a41bc
commit ed88f06bb9
6 changed files with 37 additions and 0 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

7
gating.yaml Normal file
View File

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

17
plan.fmf Normal file
View File

@ -0,0 +1,17 @@
execute:
how: tmt
discover:
- how: shell
dist-git-source: true
tests:
- name: bundled demos
require:
- python3.11-devel
- python3.11-numpy
- gcc-c++
- gcc
test: |
cd $TMT_SOURCE_DIR/cython-*/Demos &&
sed 's/python /python3.11 /' -i Makefile &&
make test
- how: fmf

5
tests/helloworld.pyx Normal file
View File

@ -0,0 +1,5 @@
# https://cython.readthedocs.io/en/latest/src/tutorial/cython_tutorial.html
print("Hello World")
def works():
return True

2
tests/main.fmf Normal file
View File

@ -0,0 +1,2 @@
test: ${PYTHON:-python3} tutorial.py

5
tests/tutorial.py Normal file
View File

@ -0,0 +1,5 @@
import pyximport
pyximport.install()
import helloworld
assert helloworld.works()