TMT tests

This commit is contained in:
Lumir Balhar 2021-03-15 16:01:52 +01:00
parent eb5665b273
commit 0d746a4d20
7 changed files with 31 additions and 0 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

14
plans/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

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