X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=tox.ini;h=3514dcf8f79584e438e783196f7dca730fcecc11;hb=HEAD;hp=98bde2aef98add84001c88d0825a485a7a88686e;hpb=9b938fff9a4a1ef07a2df445ad3dd3f81dad2228;p=transportpce.git diff --git a/tox.ini b/tox.ini index 98bde2aef..73f3460ee 100644 --- a/tox.ini +++ b/tox.ini @@ -26,6 +26,7 @@ setupdir = tests/ [testenv] passenv = LAUNCHER USE_LIGHTY + USE_SIMS NO_ODL_STARTUP http_proxy HTTP_PROXY @@ -59,27 +60,37 @@ allowlist_externals = build.sh depends = buildcontroller,tests_hybrid changedir = {toxinidir}/lighty commands = - ./build.sh + - ./build.sh + +[testenv:sims] +passenv = USE_SIMS +allowlist_externals = install_lightynode.sh +depends = buildcontroller +commands = + ./install_lightynode.sh {posargs:} [testenv:sims121] -allowlist_externals = install_honeynode.sh +passenv = USE_SIMS +allowlist_externals = install_sims.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 + ./install_sims.sh 1.2.1 [testenv:sims221] -allowlist_externals = install_honeynode.sh +passenv = USE_SIMS +allowlist_externals = install_sims.sh depends = buildcontroller commands = - ./install_honeynode.sh 2.2.1 + ./install_sims.sh 2.2.1 [testenv:sims71] -allowlist_externals = install_honeynode.sh +passenv = USE_SIMS +allowlist_externals = install_sims.sh depends = buildcontroller commands = - ./install_honeynode.sh 7.1 + ./install_sims.sh 7.1 [testenv:testsPCE] depends = buildcontroller @@ -120,7 +131,7 @@ depends = buildcontroller,build_karaf_tests121,sims121,testsPCE allowlist_externals = launch_tests.sh passenv = LAUNCHER USE_LIGHTY - NO_ODL_STARTUP + USE_SIMS USE_ODL_RESTCONF_VERSION setenv = # USE_LIGHTY=True @@ -173,6 +184,7 @@ depends = buildcontroller,build_karaf_tests221,sims221,tests71 allowlist_externals = launch_tests.sh passenv = LAUNCHER USE_LIGHTY + USE_SIMS NO_ODL_STARTUP USE_ODL_RESTCONF_VERSION setenv = @@ -200,6 +212,7 @@ depends = buildcontroller,build_karaf_tests71,sims71,tests_tapi allowlist_externals = launch_tests.sh passenv = LAUNCHER USE_LIGHTY + USE_SIMS NO_ODL_STARTUP USE_ODL_RESTCONF_VERSION setenv = @@ -227,6 +240,7 @@ depends = buildcontroller,build_karaf_tests_hybrid,sims121,sims221,sims71,tests1 allowlist_externals = launch_tests.sh passenv = LAUNCHER USE_LIGHTY + USE_SIMS NO_ODL_STARTUP USE_ODL_RESTCONF_VERSION setenv = @@ -240,9 +254,11 @@ commands = [testenv:tests_tapi] depends = buildcontroller,build_karaf_tests221,sims221 -allowlist_externals = launch_tests.sh add_tapi_feature_to_tests221.sh +allowlist_externals = launch_tests.sh +# add_tapi_feature_to_tests221.sh passenv = LAUNCHER USE_LIGHTY + USE_SIMS NO_ODL_STARTUP OLM_TIMER1 OLM_TIMER2 @@ -258,14 +274,14 @@ setenv = commands = # ./add_tapi_feature_to_tests221.sh -- ./launch_tests.sh tapi {posargs:} + ./launch_tests.sh tapi {posargs:} [testenv:with_docker] depends = buildcontroller,sims221 -allowlist_externals = launch_tests.sh - dockercmd.sh +allowlist_externals = launch_tests.sh dockercmd.sh passenv = LAUNCHER USE_LIGHTY + USE_SIMS NO_ODL_STARTUP USE_ODL_RESTCONF_VERSION # OLM_TIMER1 @@ -387,7 +403,14 @@ commands = basepython = python3 deps = pre-commit passenv = HOME +allowlist_externals = sh + cpan + sudo + which commands = + sh -c 'which cpan || sudo yum install -y perl-CPAN \ + || (echo "cpan command not found - please install it \ + (e.g. sudo apt-get install perl-modules | yum install perl-CPAN )" >&2 && exit 1)' pre-commit run --all-files --show-diff-on-failure pre-commit run gitlint-ci --hook-stage manual