Use 'osci' for gating
Use same plan/test as c9s
This commit is contained in:
parent
e73010ac75
commit
b329230fd2
7
ci.fmf
7
ci.fmf
@ -1,7 +0,0 @@
|
||||
summary: Tier tests
|
||||
discover:
|
||||
how: fmf
|
||||
repository: git://pkgs.devel.redhat.com/tests/micropipenv
|
||||
filter: 'tier:1'
|
||||
execute:
|
||||
how: tmt
|
||||
@ -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
14
integration.fmf
Normal 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
|
||||
2
tests/example/pip-tools.fmf
Normal file
2
tests/example/pip-tools.fmf
Normal file
@ -0,0 +1,2 @@
|
||||
summary: Install from pip-tools
|
||||
test: ./test_install.sh pip-tools
|
||||
2
tests/example/pipfile.fmf
Normal file
2
tests/example/pipfile.fmf
Normal file
@ -0,0 +1,2 @@
|
||||
summary: Install from Pipfile
|
||||
test: ./test_install.sh pipenv
|
||||
2
tests/example/poetry.fmf
Normal file
2
tests/example/poetry.fmf
Normal file
@ -0,0 +1,2 @@
|
||||
summary: Install from poetry
|
||||
test: ./test_install.sh poetry
|
||||
2
tests/example/requirements.fmf
Normal file
2
tests/example/requirements.fmf
Normal file
@ -0,0 +1,2 @@
|
||||
summary: Install from requirements
|
||||
test: ./test_install.sh requirements
|
||||
11
tests/example/test_install.sh
Executable file
11
tests/example/test_install.sh
Executable 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
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