This is an old revision of the document!


Tests

As of revision 6515, 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

Tests are run with command line

runTest.sh

Options

Default option wich runs all the tests:

  •  runTest.sh 

For running all tests and sending results by e-mail:

  •  runTest.sh --all or -a 

Next option runs only selection of directory with “space-separator”, and there is possibility to send results by e-mail:

  •  runTest.sh --selection or -s 

You choose one ElmerIceSolver keyword and it runs all directories with this solver, and there is possibility to send results by e-mail:

  •  runTest.sh --solvers or -so 

Resume all the options:

  •  runTest.sh --help 

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/Buoyancy.log] for details
test 2 :          ComputeDevStress 		[PASSED]
test 3 :                   Contact	        [PASSED - Diff Time-]

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

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

This repertory is created if there is 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 ....

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


compilation/tests.1391218131.txt.gz · Last modified: 2014/02/01 01:28 by bdfleurian
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