TMT tests
This commit is contained in:
parent
eb5665b273
commit
0d746a4d20
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
||||
1
|
14
plans/integration.fmf
Normal file
14
plans/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
|
8
tests/example/test_install.sh
Executable file
8
tests/example/test_install.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user