X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=tox.ini;h=b736f8ef23f0703c400f819a63c70cc96df97928;hb=fe37a211f95e8fd728db62d4f307b0dbf4fb79a2;hp=7b18494cec9e6de424b8cf2f586bf5e14005e8aa;hpb=bc7e77930f84d25f4f000918278b0dbf9e5b52f9;p=transportpce.git diff --git a/tox.ini b/tox.ini index 7b18494ce..b736f8ef2 100644 --- a/tox.ini +++ b/tox.ini @@ -1,22 +1,24 @@ [tox] minversion = 3.7.0 -envlist = buildcontroller,testsPCE, - sims121,build_karaf_tests121,tests121, - sims221,build_karaf_tests221,tests221,tests_tapi, - sims71,build_karaf_tests71,tests71, - build_karaf_tests_hybrid,tests_hybrid, - docs - docs-linkcheck - checkbashisms - pre-commit - pylint +envlist = buildcontroller +  testsPCE, + sims121,build_karaf_tests121,tests121, + sims221,build_karaf_tests221,tests_tapi,tests221, +  sims71,build_karaf_tests71,tests71, + build_karaf_tests_hybrid,tests_hybrid, + buildlighty, + docs +  docs-linkcheck +  checkbashisms +  pre-commit +  pylint skipsdist = true setupdir = tests/ [testenv] -passenv = USE_LIGHTY http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY OLM_TIMER1 OLM_TIMER2 +passenv = USE_LIGHTY NO_ODL_STARTUP http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY OLM_TIMER1 OLM_TIMER2 setenv = - USE_LIGHTY=True +# USE_LIGHTY=True OLM_TIMER1=3000 OLM_TIMER2=2000 @@ -34,6 +36,13 @@ whitelist_externals = build_controller.sh commands = ./build_controller.sh +[testenv:buildlighty] +whitelist_externals = build.sh +depends = buildcontroller,tests_hybrid +changedir = {toxinidir}/lighty +commands = + ./build.sh + [testenv:sims121] whitelist_externals = install_honeynode.sh depends = buildcontroller @@ -59,7 +68,7 @@ depends = buildcontroller #the following lines retrieve unofficial package of GNPy with REST support from Orange opensource Gitlab repo setenv = PIP_EXTRA_INDEX_URL = https://gitlab.com/api/v4/projects/33090323/packages/pypi/simple - USE_LIGHTY=True +# USE_LIGHTY=True # USE_ODL_RESTCONF_VERSION=draft-bierman02 deps = -r{toxinidir}/tests/requirements.txt @@ -67,7 +76,7 @@ deps = setuptools>=7.0 gnpy4tpce==2.4.7 whitelist_externals = launch_tests.sh -passenv = LAUNCHER USE_LIGHTY USE_ODL_RESTCONF_VERSION +passenv = LAUNCHER USE_LIGHTY NO_ODL_STARTUP USE_ODL_RESTCONF_VERSION basepython = python3 commands = ./launch_tests.sh pce {posargs:} @@ -78,7 +87,7 @@ depends = buildcontroller whitelist_externals = launch_tests.sh passenv = LAUNCHER USE_LIGHTY setenv = - USE_LIGHTY=True +# USE_LIGHTY=True USE_ODL_ALT_KARAF_ENV=./karaf121.env USE_ODL_ALT_KARAF_INSTALL_DIR=karaf121 commands = @@ -88,9 +97,9 @@ commands = depends = buildcontroller,build_karaf_tests121,sims121,testsPCE # testsPCE dependency is only here to chain tests in the gate and avoid resources starvation whitelist_externals = launch_tests.sh -passenv = LAUNCHER USE_LIGHTY USE_ODL_RESTCONF_VERSION +passenv = LAUNCHER USE_LIGHTY NO_ODL_STARTUP USE_ODL_RESTCONF_VERSION setenv = - USE_LIGHTY=True +# USE_LIGHTY=True # USE_ODL_RESTCONF_VERSION=draft-bierman02 USE_ODL_ALT_KARAF_ENV=./karaf121.env USE_ODL_ALT_KARAF_INSTALL_DIR=karaf121 @@ -111,7 +120,7 @@ depends = buildcontroller whitelist_externals = launch_tests.sh passenv = LAUNCHER USE_LIGHTY setenv = - USE_LIGHTY=True +# USE_LIGHTY=True USE_ODL_ALT_KARAF_ENV=./karaf221.env USE_ODL_ALT_KARAF_INSTALL_DIR=karaf221 commands = @@ -121,9 +130,9 @@ commands = depends = buildcontroller,build_karaf_tests221,sims221,tests71 # tests71 dependency is only here to chain tests in the gate and avoid ressources starvation whitelist_externals = launch_tests.sh -passenv = LAUNCHER USE_LIGHTY USE_ODL_RESTCONF_VERSION +passenv = LAUNCHER USE_LIGHTY NO_ODL_STARTUP USE_ODL_RESTCONF_VERSION setenv = - USE_LIGHTY=True +# USE_LIGHTY=True # USE_ODL_RESTCONF_VERSION=draft-bierman02 USE_ODL_ALT_KARAF_ENV=./karaf221.env USE_ODL_ALT_KARAF_INSTALL_DIR=karaf221 @@ -136,7 +145,7 @@ depends = buildcontroller whitelist_externals = launch_tests.sh passenv = LAUNCHER USE_LIGHTY setenv = - USE_LIGHTY=True +# USE_LIGHTY=True USE_ODL_ALT_KARAF_ENV=./karaf71.env USE_ODL_ALT_KARAF_INSTALL_DIR=karaf71 commands = @@ -145,9 +154,9 @@ commands = [testenv:tests71] depends = buildcontroller,build_karaf_tests71,sims71,tests_tapi whitelist_externals = launch_tests.sh -passenv = LAUNCHER USE_LIGHTY USE_ODL_RESTCONF_VERSION +passenv = LAUNCHER USE_LIGHTY NO_ODL_STARTUP USE_ODL_RESTCONF_VERSION setenv = - USE_LIGHTY=True +# USE_LIGHTY=True # USE_ODL_RESTCONF_VERSION=draft-bierman02 USE_ODL_ALT_KARAF_ENV=./karaf71.env USE_ODL_ALT_KARAF_INSTALL_DIR=karaf71 @@ -159,7 +168,7 @@ depends = buildcontroller whitelist_externals = launch_tests.sh passenv = LAUNCHER USE_LIGHTY setenv = - USE_LIGHTY=True +# USE_LIGHTY=True USE_ODL_ALT_KARAF_ENV=./karaf121.env USE_ODL_ALT_KARAF_INSTALL_DIR=karaf_hybrid commands = @@ -169,9 +178,9 @@ commands = depends = buildcontroller,build_karaf_tests_hybrid,sims121,sims221,sims71,tests121,tests221,tests71 #the last dependency is to avoid temporarily concurrent ressources problem in parallel mode whitelist_externals = launch_tests.sh -passenv = LAUNCHER USE_LIGHTY USE_ODL_RESTCONF_VERSION +passenv = LAUNCHER USE_LIGHTY NO_ODL_STARTUP USE_ODL_RESTCONF_VERSION setenv = - USE_LIGHTY=True +# USE_LIGHTY=True # USE_ODL_RESTCONF_VERSION=draft-bierman02 USE_ODL_ALT_KARAF_ENV=./karaf121.env USE_ODL_ALT_KARAF_INSTALL_DIR=karaf_hybrid @@ -181,10 +190,10 @@ commands = [testenv:tests_tapi] depends = buildcontroller,build_karaf_tests221,sims221 -whitelist_externals = launch_tests.sh -passenv = LAUNCHER USE_LIGHTY OLM_TIMER1 OLM_TIMER2 USE_ODL_RESTCONF_VERSION +whitelist_externals = launch_tests.sh add_tapi_feature_to_tests221.sh +passenv = LAUNCHER USE_LIGHTY NO_ODL_STARTUP OLM_TIMER1 OLM_TIMER2 USE_ODL_RESTCONF_VERSION setenv = - USE_LIGHTY=True +# USE_LIGHTY=True # USE_ODL_RESTCONF_VERSION=draft-bierman02 USE_ODL_ALT_KARAF_ENV=./karaf221.env USE_ODL_ALT_KARAF_INSTALL_DIR=karaf221 @@ -193,13 +202,14 @@ setenv = OLM_TIMER2=2000 commands = +# ./add_tapi_feature_to_tests221.sh ./launch_tests.sh tapi {posargs:} [testenv:with_docker] depends = buildcontroller,sims221 whitelist_externals = launch_tests.sh dockercmd.sh -passenv = LAUNCHER USE_LIGHTY USE_ODL_RESTCONF_VERSION OLM_TIMER1 OLM_TIMER2 +passenv = LAUNCHER USE_LIGHTY NO_ODL_STARTUP USE_ODL_RESTCONF_VERSION OLM_TIMER1 OLM_TIMER2 setenv = OLM_TIMER1=3000 OLM_TIMER2=2000