This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
battery:addtestgitlab [2026/01/26 10:25] arthur [Flowchart] |
battery:addtestgitlab [2026/01/26 10:26] (current) arthur |
||
|---|---|---|---|
| Line 12: | Line 12: | ||
| - 1. A build phase that generates, in Unix, the Prepro.exe, Lagamine.exe and Select.exe. This gives a first information on the state of the code. | - 1. A build phase that generates, in Unix, the Prepro.exe, Lagamine.exe and Select.exe. This gives a first information on the state of the code. | ||
| - 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. | ||