Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
compilation:tests [2015/04/01 09:30]
jtodd [Run the tests]
compilation:tests [2016/11/10 16:49] (current)
ltavard
Line 9: Line 9:
 After building your installation of Elmer/Ice, you run the tests with the command line After building your installation of Elmer/Ice, you run the tests with the command line
 <code> <code>
-ctest+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)
 </code> </code>
 or to run only the tests whose names match the given regular expression or to run only the tests whose names match the given regular expression
Line 38: Line 41:
 Solver 4 :: Reference Norm = real <norm> Solver 4 :: Reference Norm = real <norm>
 Solver 4 :: Reference Norm Tolerance = Real <tol> Solver 4 :: Reference Norm Tolerance = Real <tol>
 +$fprintf( stderr, "TEST CASE 1\n");
 +RUN
 +$fprintf( stderr, "END TEST CASE 1: Target NRM=<norm>,EPS=<tol>\n" );
 </code> </code>
 Equivalent to those lines inside the solver block to be tested Equivalent to those lines inside the solver block to be tested
Line 52: Line 58:
 FILE(COPY ELMERSOLVER_STARTINFO <file1> <file2> <directory1> ...DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/") FILE(COPY ELMERSOLVER_STARTINFO <file1> <file2> <directory1> ...DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/")
 ADD_ELMERICE_TEST(<test_name>) ADD_ELMERICE_TEST(<test_name>)
 +ADD_ELMERICE_LABEL(<test_name> <label>)
 </code> </code>
 +
 +__For label__\\
 +If the test is < 10s, <label>=elmerice-fast \\
 +If the test is > 100s, <label>=slow \\
  
   * Create runTest.cmake with   * Create runTest.cmake with
compilation/tests.1427880644.txt.gz · Last modified: 2015/04/01 09:30 by jtodd
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