Add tmt gating plan
Resolves: rhbz#2159304
This commit is contained in:
parent
52512a41bc
commit
ed88f06bb9
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
||||
1
|
7
gating.yaml
Normal file
7
gating.yaml
Normal 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
17
plan.fmf
Normal 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
5
tests/helloworld.pyx
Normal 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
2
tests/main.fmf
Normal file
@ -0,0 +1,2 @@
|
||||
test: ${PYTHON:-python3} tutorial.py
|
||||
|
5
tests/tutorial.py
Normal file
5
tests/tutorial.py
Normal file
@ -0,0 +1,5 @@
|
||||
import pyximport
|
||||
pyximport.install()
|
||||
|
||||
import helloworld
|
||||
assert helloworld.works()
|
Loading…
Reference in New Issue
Block a user