1
0
mirror of https://github.com/rancher/os.git synced 2025-09-17 15:40:47 +00:00

tests container to run in-VM

This commit is contained in:
Ivan Mikushin
2015-05-07 17:18:53 +05:00
parent ece34c7a3d
commit 190a46542d
5 changed files with 33 additions and 0 deletions

View File

@@ -0,0 +1 @@
RancherOS In-VM Integration Tests

View File

@@ -0,0 +1,6 @@
def func(x):
return x + 1
def test_answer():
assert func(3) == 4

View File

@@ -0,0 +1,3 @@
flake8==2.4.0
pytest==2.7.0
tox==1.9.2

11
tests/container/setup.py Normal file
View File

@@ -0,0 +1,11 @@
from distutils.core import setup
setup(
name='RancherOSInVMTests',
version='0.1',
packages=[
'rancheros.invmtest'
],
license='ASL 2.0',
long_description=open('README.txt').read(),
)

12
tests/container/tox.ini Normal file
View File

@@ -0,0 +1,12 @@
[tox]
envlist=flake8, py27
[testenv]
deps=-rrequirements.txt
changedir={toxinidir}
commands=py.test --durations=20 {posargs}
[testenv:flake8]
deps=-rrequirements.txt
changedir={toxinidir}
commands=flake8 rancheros