Hi,
I tried searching in the forum but I only get old results, so… how do I run the validation test suite?
Andrea
Hi,
I tried searching in the forum but I only get old results, so… how do I run the validation test suite?
Andrea
For future reference:
run_ctest --resutest=resutest -L sequential
Haven’t had yet the time to dig into the options.
Andrea
To run code_aster v16 tests:
./salome_meca-lgpl-2024* -B /tmp:/opt/salome_meca/V2024.1.0_scibian_11/prerequisites/Cea_archive-9120/BINARIES-DB11/SALOME/bin/salome/test/Testing -- test -R ASTER_16
To run code_aster v17 tests:
./salome_meca-lgpl-2024* -B /tmp:/opt/salome_meca/V2024.1.0_scibian_11/prerequisites/Cea_archive-9120/BINARIES-DB11/SALOME/bin/salome/test/Testing -- test -R ASTER_17
Note that the bind is necessary because salome writes the test output within its installation directory, so we “redirect” that to /tmp. It can be improvement to be considered in the future.
To run several tests at once, say using 4 workers, add -j 4 at the end of the command.
Edit: It seems that other files are being written during the test procedure, so it is necessary to be in a sandbox with --writable mode to get this to work.
@hberro where did you find that command? The official documentation says run_ctest Building and installing code_aster — code_aster documentation , do you know what’s the difference between the two commands?
Andrea
Inside Salome Meca, the command :
salome test
allows running tests for any component of the platform. Code_aster being one of the available components, it is possible to run its tests using
salome test -R ASTER_16
This executes all “salome” tests whose name contains ASTER_16. Note that Salome uses the ctest mecanism for running tests and thus multiple tests can be run at once (using -j) and other options from ctest can be used : ctest(1) — CMake 4.5.0-rc2 Documentation
The documentation you shared is indeed relevant for code_aster and can probably also be used.