User Tools

Site Tools


battery:addtestgitlab

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
battery:addtestgitlab [2026/01/26 10:26]
arthur
battery:addtestgitlab [2026/01/26 10:26] (current)
arthur
Line 13: Line 13:
   - 2. A test phase that launches as many tests as implemented. It uses three .sh files:   - 2. A test phase that launches as many tests as implemented. It uses three .sh files:
        * run_tests.sh:​ this file cycles through the $CI_PROJECT/​Tests/​ folders in order to run each test. The prepro and lagamine is run for each test, then the .ipe, .ipn and .ipr are compared with the original results that may be found in a folder ExpectedResults. For the moment, the tolerance is set to 3% and any value below 1E-7 is rounded to 0.0. The differences are calculated as such:\\ \\ if(absx < abs_tol && absy < abs_tol) {diff = 0} \\ else if(absx < abs_tol) {diff = absy / abs_tol} \\ else if(absy < abs_tol) {diff = absx / abs_tol} \\ else {diff = (y - x)/x} \\        * run_tests.sh:​ this file cycles through the $CI_PROJECT/​Tests/​ folders in order to run each test. The prepro and lagamine is run for each test, then the .ipe, .ipn and .ipr are compared with the original results that may be found in a folder ExpectedResults. For the moment, the tolerance is set to 3% and any value below 1E-7 is rounded to 0.0. The differences are calculated as such:\\ \\ if(absx < abs_tol && absy < abs_tol) {diff = 0} \\ else if(absx < abs_tol) {diff = absy / abs_tol} \\ else if(absy < abs_tol) {diff = absx / abs_tol} \\ else {diff = (y - x)/x} \\
 +       
        * run_prepro.sh:​ this file calls the newly generated prepro.exe for the test case.        * run_prepro.sh:​ this file calls the newly generated prepro.exe for the test case.
        * run_lagamine.sh:​ this file calls the newly generated lagamine.exe for the test case. The .ipe, .ipn, .ipr, .log and .out are generated and exported in the artifacts of Gitlab, for further referencing. The simulations are run in sequential as all routines do not allow the use of parallelisation at the moment.        * run_lagamine.sh:​ this file calls the newly generated lagamine.exe for the test case. The .ipe, .ipn, .ipr, .log and .out are generated and exported in the artifacts of Gitlab, for further referencing. The simulations are run in sequential as all routines do not allow the use of parallelisation at the moment.
battery/addtestgitlab.1769419590.txt.gz · Last modified: 2026/01/26 10:26 by arthur