Add smoke test for tmt
Used in gating Related: bz#1950291
This commit is contained in:
parent
934f7b9903
commit
a122e5c6a3
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
|||||||
|
1
|
6
gating.yaml
Normal file
6
gating.yaml
Normal 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}
|
2
tests/smoke.fmf
Normal file
2
tests/smoke.fmf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
test: bash ./smoke.sh
|
||||||
|
framework: shell
|
12
tests/smoke.sh
Normal file
12
tests/smoke.sh
Normal 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"
|
Loading…
Reference in New Issue
Block a user