Add smoke test for tmt

Used in gating

Related: bz#1950291
This commit is contained in:
Lukas Zachar 2021-07-19 15:08:54 +02:00
parent 934f7b9903
commit a122e5c6a3
5 changed files with 25 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-9
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

4
plans.fmf Normal file
View File

@ -0,0 +1,4 @@
discover:
how: fmf
execute:
how: tmt

2
tests/smoke.fmf Normal file
View File

@ -0,0 +1,2 @@
test: bash ./smoke.sh
framework: shell

12
tests/smoke.sh Normal file
View File

@ -0,0 +1,12 @@
#!/bin/bash
set -ex
username="test_$$"
id "$username" && userdel -rf "$username"
useradd "$username"
su -l -c "echo simple-manylinux-demo > requirements.txt" "$username"
su -l -c "micropipenv install -- --user" "$username"
su -l -c "python3 -c 'from dummyextension.extension import hello; assert hello() == \"Hello from Python extension!\"'" "$username"
userdel -rf "$username"