Use 'osci' for gating

Use same plan/test as c9s
This commit is contained in:
Lukáš Zachar 2026-07-03 09:53:25 +02:00
parent e73010ac75
commit b329230fd2
10 changed files with 48 additions and 8 deletions

7
ci.fmf
View File

@ -1,7 +0,0 @@
summary: Tier tests
discover:
how: fmf
repository: git://pkgs.devel.redhat.com/tests/micropipenv
filter: 'tier:1'
execute:
how: tmt

View File

@ -3,4 +3,4 @@ product_versions:
- rhel-8
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.other.functional}
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

14
integration.fmf Normal file
View File

@ -0,0 +1,14 @@
summary: Integration tests for micropipenv
discover:
how: fmf
execute:
how: tmt
prepare:
- name: install git-core
how: install
package:
- git-core
- micropipenv
- name: clone upstream test data
how: shell
script: git clone https://github.com/thoth-station/micropipenv.git /tmp/micropipenv

View File

@ -0,0 +1,2 @@
summary: Install from pip-tools
test: ./test_install.sh pip-tools

View File

@ -0,0 +1,2 @@
summary: Install from Pipfile
test: ./test_install.sh pipenv

2
tests/example/poetry.fmf Normal file
View File

@ -0,0 +1,2 @@
summary: Install from poetry
test: ./test_install.sh poetry

View File

@ -0,0 +1,2 @@
summary: Install from requirements
test: ./test_install.sh requirements

11
tests/example/test_install.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
set -e
pushd /tmp/micropipenv/tests/data/install/"$1"/
python3 -m venv venv
source venv/bin/activate
micropipenv install
pip3 list
deactivate
rm -rf venv
popd

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"