Warning: Undefined array key 1 in /home/np29546/public_html/elmerice/wiki/inc/auth.php on line 78
Warning: Cannot modify header information - headers already sent by (output started at /home/np29546/public_html/elmerice/wiki/inc/auth.php:78) in /home/np29546/public_html/elmerice/wiki/inc/auth.php on line 431
Warning: Cannot modify header information - headers already sent by (output started at /home/np29546/public_html/elmerice/wiki/inc/auth.php:78) in /home/np29546/public_html/elmerice/wiki/inc/Action/Export.php on line 104
Warning: Cannot modify header information - headers already sent by (output started at /home/np29546/public_html/elmerice/wiki/inc/auth.php:78) in /home/np29546/public_html/elmerice/wiki/inc/Action/Export.php on line 104
Warning: Cannot modify header information - headers already sent by (output started at /home/np29546/public_html/elmerice/wiki/inc/auth.php:78) in /home/np29546/public_html/elmerice/wiki/inc/Action/Export.php on line 104
~~NOTOC~~
====== Tests ======
Recently, Elmer's code-homebase has been moving to GitHub.
Directory with test-cases can be found under ''[ELMER_TRUNK]/elmerice/Tests''.\\
\\
For some test-cases, more tools (.SIF, grd) are available under ''[ELMER_TRUNK]/elmerice/examples''.
===== Run the tests =====
After building your installation of Elmer/Ice, you run the tests with the command line
ctest -L elmerice (run all Elmer/Ice tests)
ctest -L elmerice-fast (set of fast Elmer/Ice tests)
ctest -L elmerice-long (set of slow Elmer/Ice tests)
ctest -L netcdf (set of test using NetCDF library)
or to run only the tests whose names match the given regular expression
ctest -R
===== Results =====
* On screen
Run the tests will print some informations:\\
Start 1: Teterousse3a
1/36 Test #1: Teterousse3a .....................***Passed 503.64 sec
Start 2: Dating
2/36 Test #2: Dating ...........................***Passed 2.73 sec
* In directory ''build/elmerice/Testing/Temporary/''
We can find some files:\\
**''LastTest.log ''** with all the details about the tests and \\
**''LastTestsFailed.log''** with the list of failed tests.
===== How to make cmake test-case =====
* Create new directory under ''elmerice/Tests/''
* Define your analysis: .SIF file, mesh files, f-90 files and ELMERSOLVER_STARTINFO file
☛ In order to test a norm resulting from a solver , add those lines at the end of .sif file
Solver 4 :: Reference Norm = real
Solver 4 :: Reference Norm Tolerance = Real
$fprintf( stderr, "TEST CASE 1\n");
RUN
$fprintf( stderr, "END TEST CASE 1: Target NRM=,EPS=\n" );
Equivalent to those lines inside the solver block to be tested
Reference Norm = real
Reference Norm Tolerance = Real
* Create CMakeLists.txt file in the test directory with
INCLUDE(${CMAKE_CURRENT_SOURCE_DIR}/../test_macros.cmake)
CONFIGURE_FILE(.sif .sif COPYONLY)
ADD_ELMERICETEST_MODULE()
FILE(COPY ELMERSOLVER_STARTINFO ...DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/")
ADD_ELMERICE_TEST()
ADD_ELMERICE_LABEL(
__For label__\\
If the test is < 10s,