Refactor tests launching procedure 65/96565/20
authorGuillaume Lambert <guillaume.lambert@orange.com>
Fri, 18 Jun 2021 20:18:39 +0000 (22:18 +0200)
committerguillaume.lambert <guillaume.lambert@orange.com>
Tue, 17 Aug 2021 23:05:44 +0000 (01:05 +0200)
commit1012f1723c3815f5c704fa9a908c3cfdce58ec31
treecd4e4267790c588b30a1feea882a2412868d8d2c
parentbb9f540b1796f6ab7a82c03511ca30abbd3326fb
Refactor tests launching procedure

The possibility to run test separately was lost during preliminary work
to prepare jobs parallelization.
This refactoring restores that feature but with a different approach.
For example, the equivalents of the old commands
    $ tox -e topoPortmapping
and
    $ tox -e portmapping,pce
are now
    $ tox -e tests121 topo_portmapping
and
    $ tox -e tests121 "portmapping pce"
(preceded by $ tox -e buildcontroller)

The possibility to choose the script launcher command from a global
variable have been added.
For example,
    $ export LAUNCHER='python3'
allows to replace 'nosetests --with-xunit' by a straight call to python3
to have more debug output during tests.

Tests order can also be changed by directly modifying script filenames
without touching tox.ini. Filenames have been modified here to add a
numbering and keep the tests current order.

JIRA: TRNSPRTPCE-482
Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I725d1dfac42bd309d18fbf87ff1c85bc1bce5be9
23 files changed:
tests/launch_tests.sh [new file with mode: 0755]
tests/transportpce_tests/1.2.1/test01_portmapping.py [moved from tests/transportpce_tests/1.2.1/test_portmapping.py with 100% similarity]
tests/transportpce_tests/1.2.1/test02_topo_portmapping.py [moved from tests/transportpce_tests/1.2.1/test_topo_portmapping.py with 100% similarity]
tests/transportpce_tests/1.2.1/test03_topology.py [moved from tests/transportpce_tests/1.2.1/test_topology.py with 100% similarity]
tests/transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py [moved from tests/transportpce_tests/1.2.1/test_renderer_service_path_nominal.py with 100% similarity]
tests/transportpce_tests/1.2.1/test05_olm.py [moved from tests/transportpce_tests/1.2.1/test_olm.py with 100% similarity]
tests/transportpce_tests/1.2.1/test06_end2end.py [moved from tests/transportpce_tests/1.2.1/test_end2end.py with 100% similarity]
tests/transportpce_tests/2.2.1/test01_portmapping.py [moved from tests/transportpce_tests/2.2.1/test_portmapping.py with 100% similarity]
tests/transportpce_tests/2.2.1/test02_topology.py [moved from tests/transportpce_tests/2.2.1/test_topology.py with 100% similarity]
tests/transportpce_tests/2.2.1/test03_otn_topology.py [moved from tests/transportpce_tests/2.2.1/test_otn_topology.py with 100% similarity]
tests/transportpce_tests/2.2.1/test04_flex_grid.py [moved from tests/transportpce_tests/2.2.1/test_flex_grid.py with 100% similarity]
tests/transportpce_tests/2.2.1/test05_renderer_service_path_nominal.py [moved from tests/transportpce_tests/2.2.1/test_renderer_service_path_nominal.py with 100% similarity]
tests/transportpce_tests/2.2.1/test06_otn_renderer.py [moved from tests/transportpce_tests/2.2.1/test_otn_renderer.py with 100% similarity]
tests/transportpce_tests/2.2.1/test07_otn_sh_renderer.py [moved from tests/transportpce_tests/2.2.1/test_otn_sh_renderer.py with 100% similarity]
tests/transportpce_tests/2.2.1/test08_olm.py [moved from tests/transportpce_tests/2.2.1/test_olm.py with 100% similarity]
tests/transportpce_tests/2.2.1/test09_tapi.py [moved from tests/transportpce_tests/2.2.1/test_tapi.py with 100% similarity]
tests/transportpce_tests/2.2.1/test10_otn_end2end.py [moved from tests/transportpce_tests/2.2.1/test_otn_end2end.py with 100% similarity]
tests/transportpce_tests/2.2.1/test11_end2end.py [moved from tests/transportpce_tests/2.2.1/test_end2end.py with 100% similarity]
tests/transportpce_tests/7.1/test01_portmapping.py [moved from tests/transportpce_tests/7.1/test_portmapping.py with 100% similarity]
tests/transportpce_tests/hybrid/test01_device_change_notifications.py [moved from tests/transportpce_tests/hybrid/test_device_change_notifications.py with 100% similarity]
tests/transportpce_tests/pce/test01_pce.py [moved from tests/transportpce_tests/pce/test_pce.py with 100% similarity]
tests/transportpce_tests/pce/test02_pce_400G.py [moved from tests/transportpce_tests/pce/test_pce_400G.py with 100% similarity]
tox.ini