This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
battery:addtest [2021/11/09 18:04] helene |
battery:addtest [2021/11/16 16:14] (current) helene [Tests] |
||
---|---|---|---|
Line 2: | Line 2: | ||
The test battery consists in a large number of simple simulations that should be run everytime changes are made to the Lagamine code to ensure these changes do not alter previous developments. \\ The goal of the test battery is to improve the robustness of the code and avoid mistakes. | The test battery consists in a large number of simple simulations that should be run everytime changes are made to the Lagamine code to ensure these changes do not alter previous developments. \\ The goal of the test battery is to improve the robustness of the code and avoid mistakes. | ||
+ | |||
+ | Implemented by: Ehssen Betaieb, 2021 | ||
Line 29: | Line 31: | ||
Each test is in a separate folder named with the same name as the test defined in "Test_battery.txt". This folder contains: | Each test is in a separate folder named with the same name as the test defined in "Test_battery.txt". This folder contains: | ||
* The simulation files (*.lag, *ex.dat, etc.) | * The simulation files (*.lag, *ex.dat, etc.) | ||
- | * The reference simulation in a folder with the same name as the test +"_ref" (N.B. this folder can contain only the result files (*.ipe, *.ipn, *.rea, ...) and not the totality of the simulation files, as they are the same as the test files. | + | * The reference simulation in a folder with the same name as the test +"_ref" \\ **N.B.** this folder can contain only the result files (*.ipe, *.ipn, *.rea, ...) and not the totality of the simulation files, as they are the same as the test files. |
* A comparator python script attached to each test. This script must have the same name as its corresponding test. In the script, the user defines the numerical results to compare and the cost function. | * A comparator python script attached to each test. This script must have the same name as its corresponding test. In the script, the user defines the numerical results to compare and the cost function. | ||