-whitelist_externals = bash
-changedir={toxinidir}/tests
-commands =
- {py27,portmapping,topoPortMapping,rspn,topology,pce,olm,end2end,portmapping221,rspn221,topology221,olm221}: - bash -c "if [ ! `which mvn` ]; then ./installMavenCentOS.sh ; fi"
- {py27,portmapping,topoPortMapping,rspn,topology,olm,end2end,portmapping221,rspn221,topology221,olm221}: - bash -c "sed 's@=.*//#FUNCTESTVAL=@=@g' ../olm/src/main/java/org/opendaylight/transportpce/olm/util/OlmUtils.java >/tmp/pivot; mv /tmp/pivot ../olm/src/main/java/org/opendaylight/transportpce/olm/util/OlmUtils.java"
- {py27,portmapping,topoPortMapping,rspn,topology,pce,olm,end2end,portmapping221,rspn221,topology221,olm221}: - bash -c "(cd .. && mvn clean install -s tests/odl_settings.xml -DskipTests -Dmaven.javadoc.skip=true)"
- {py27,portmapping,topoPortMapping,rspn,topology,olm,end2end}: - ./buildHoneynode.sh
- #py27: nosetests --with-xunit transportpce_tests/1.2.1/
- {py27,portmapping}: - nosetests --with-xunit transportpce_tests/1.2.1/test_portmapping.py
- {py27,topoPortMapping}: - nosetests --with-xunit transportpce_tests/1.2.1/test_topoPortMapping.py
- {py27,topology}: - nosetests --with-xunit transportpce_tests/1.2.1/test_topology.py
- {py27,rspn}: - nosetests --with-xunit transportpce_tests/1.2.1/test_renderer_service_path_nominal.py
- {py27,pce}: - nosetests --with-xunit transportpce_tests/1.2.1/test_pce.py
- {py27,olm}: - nosetests --with-xunit transportpce_tests/1.2.1/test_olm.py
- #{py27,end2end}: - nosetests --with-xunit transportpce_tests/1.2.1/test_end2end.py
- {py27,portmapping221,rspn221,topology221,olm221}: - ./buildHoneynode.sh 2.2.1
- {py27,portmapping221}: - nosetests --with-xunit transportpce_tests/2.2.1/test_portmapping.py
- {py27,topology221}: - nosetests --with-xunit transportpce_tests/2.2.1/test_topology.py
- {py27,rspn221}: - nosetests --with-xunit transportpce_tests/2.2.1/test_renderer_service_path_nominal.py
- {py27,olm221}: - nosetests --with-xunit transportpce_tests/2.2.1/test_olm.py
+ setuptools>=7.0
+changedir = {toxinidir}/tests
+parallel_show_output = true
+
+[testenv:buildcontroller]
+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
+# sims profiles does not strictly depends on buildcontroller
+# but this dependency avoids race condition in the gate
+commands =
+ ./install_honeynode.sh 1.2.1
+
+[testenv:sims221]
+whitelist_externals = install_honeynode.sh
+depends = buildcontroller
+commands =
+ ./install_honeynode.sh 2.2.1
+
+[testenv:sims71]
+whitelist_externals = install_honeynode.sh
+depends = buildcontroller
+commands =
+ ./install_honeynode.sh 7.1
+
+[testenv:testsPCE]
+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_ODL_RESTCONF_VERSION=draft-bierman02
+deps =
+ -r{toxinidir}/tests/requirements.txt
+ -r{toxinidir}/tests/test-requirements.txt
+ setuptools>=7.0
+ gnpy4tpce==2.4.7
+whitelist_externals = launch_tests.sh
+passenv = LAUNCHER USE_LIGHTY NO_ODL_STARTUP USE_ODL_RESTCONF_VERSION
+basepython = python3
+commands =
+ ./launch_tests.sh pce {posargs:}
+
+[testenv:build_karaf_tests121]
+depends = buildcontroller
+# testsPCE dependency is only here to chain tests in the gate and avoid resources starvation
+whitelist_externals = launch_tests.sh
+passenv = LAUNCHER USE_LIGHTY
+setenv =
+# USE_LIGHTY=True
+ USE_ODL_ALT_KARAF_ENV=./karaf121.env
+ USE_ODL_ALT_KARAF_INSTALL_DIR=karaf121
+commands =
+ ./build_karaf_for_tests.sh
+
+[testenv:tests121]
+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 NO_ODL_STARTUP USE_ODL_RESTCONF_VERSION
+setenv =
+# USE_LIGHTY=True
+# USE_ODL_RESTCONF_VERSION=draft-bierman02
+ USE_ODL_ALT_KARAF_ENV=./karaf121.env
+ USE_ODL_ALT_KARAF_INSTALL_DIR=karaf121
+commands =
+ ./launch_tests.sh 1.2.1 {posargs:}
+# By default, all tests in the folder transportpce_tests/1.2.1/ are run.
+# Though, a restricted list of tests can be passed as argument to 'tox -e tests121'.
+# For example, 'tox -e tests121 portmapping' will run only the portmapping test.
+# and 'tox -e tests121 "portmapping pce"' will run the portmapping and pce tests.
+# Additionnally, a different launcher command than 'nosetests --with-xunit' can be
+# used by exporting the variable LAUNCHER. For example 'export LAUNCHER="python3"'
+# which is more verbose than nose or 'export LAUNCHER="ls -l"' to only list script
+# files attributes.
+
+[testenv:build_karaf_tests221]
+depends = buildcontroller
+# testsPCE dependency is only here to chain tests in the gate and avoid resources starvation
+whitelist_externals = launch_tests.sh
+passenv = LAUNCHER USE_LIGHTY
+setenv =
+# USE_LIGHTY=True
+ USE_ODL_ALT_KARAF_ENV=./karaf221.env
+ USE_ODL_ALT_KARAF_INSTALL_DIR=karaf221
+commands =
+ ./build_karaf_for_tests.sh
+
+[testenv:tests221]
+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 NO_ODL_STARTUP USE_ODL_RESTCONF_VERSION
+setenv =
+# USE_LIGHTY=True
+# USE_ODL_RESTCONF_VERSION=draft-bierman02
+ USE_ODL_ALT_KARAF_ENV=./karaf221.env
+ USE_ODL_ALT_KARAF_INSTALL_DIR=karaf221
+commands =
+ ./launch_tests.sh 2.2.1 {posargs:}
+
+[testenv:build_karaf_tests71]
+depends = buildcontroller
+# testsPCE dependency is only here to chain tests in the gate and avoid resources starvation
+whitelist_externals = launch_tests.sh
+passenv = LAUNCHER USE_LIGHTY
+setenv =
+# USE_LIGHTY=True
+ USE_ODL_ALT_KARAF_ENV=./karaf71.env
+ USE_ODL_ALT_KARAF_INSTALL_DIR=karaf71
+commands =
+ ./build_karaf_for_tests.sh