This shows you the differences between two versions of the page.
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 | ||
< | < | ||
- | 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) | ||
</ | </ | ||
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 < | Solver 4 :: Reference Norm = real < | ||
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=< | ||
</ | </ | ||
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 < | FILE(COPY ELMERSOLVER_STARTINFO < | ||
ADD_ELMERICE_TEST(< | ADD_ELMERICE_TEST(< | ||
+ | ADD_ELMERICE_LABEL(< | ||
</ | </ | ||
+ | |||
+ | __For label__\\ | ||
+ | If the test is < 10s, < | ||
+ | If the test is > 100s, < | ||
* Create runTest.cmake with | * Create runTest.cmake with |