Sync tests from Fedora

Related: bz#1950291
This commit is contained in:
Lukas Zachar 2021-08-25 14:25:04 +02:00
parent a122e5c6a3
commit 4b1ef7967e
7 changed files with 30 additions and 4 deletions

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

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

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

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

@ -0,0 +1,8 @@
pushd /tmp/micropipenv/tests/data/install/$1/
python3 -m venv venv
source venv/bin/activate
micropipenv install
pip3 list
deactivate
rm -rf venv
popd