This is an old revision of the document!


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

or to run only the tests whose names match the given regular expression

ctest -R <expresssion>

Results

  • On screen

Run the tests will print some informations:

=============================================================
                    Test ElmerIce Solvers
                    
Option []: All tests without email option
=============================================================
test 1 :                  Buoyancy                      [FAILED]
Comparison failed: look at [File_log/OutputBuoyancy.log] for details
test 2 :          ComputeDevStress 		[PASSED]
test 3 :                   Contact	        [PASSED - Diff Time-]

[FAILED] in case where difference between results are upper 1E-6
[PASSED] in case where there is no difference
[PASSED - Diff Time-] where there is a difference with time CPU

  • In directory [ELMER_TRUNK]/elmerice/Tests/File_log/

This directory is created if there are some troubles in the simulation (OutputSIF_<TestName>.log) or in the comparison of results (Output_<TestName>.log).

How to make test-case

  • Create new directory under elmerice/Tests/, define your analysis (.SIF, mesh files, …).

☛ Note, for the outputs, files named results.dat and result.dat.names have to be created.
If do not exist, you can write a script to configure their creation see /Tests/InvMeth_AdjBeta for example).

  • Define how to run the test write a Makefile (named Makefile), that details two targets:

- run: how to run the test
- clean: how to clean up if successfull.

  • Create repertory DATA/ in test-case repertory and put your validation-file named valid_<NameDirectory>.txt
     Step1Data1 [space] Step1Data2 [space] Step1Data3 ....
     Step2Data1 [space] Step2Data2 [space] Step2Data3 ....

Create a file named version to describe author and date of the test, Research Institute & Cluster, Elmer(/Ice) version:

                 file established:
                 Date
                 Author,Institute
                 Cluster
                 Revision ID

See details in [ELMER_TRUNK]/elmerice/Tests/ElmerIceSolver_test_how-to.txt.


compilation/tests.1426260833.txt.gz · Last modified: 2015/03/13 15:33 by ltavard
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0