[Trilinos-Users] testing trilinos

Jonathan Hu jhu at sandia.gov
Fri Aug 19 17:16:29 EDT 2016


Victor,

> Are all the test examples in the “demos” directory?
     No.  Each Trilinos package has its own set of tests.  They are 
usually in PACKAGE/test, but there are exceptions, e.g., Tpetra, where 
the tests are distributed among different test subdirectories.  If you 
can't find the executables, it probably means you didn't enable them at 
configure time.  You can either enable tests for all packages via

-D Trilinos_ENABLE_TESTS:BOOL=ON

or do it on a per-package basis, e.g.,

-D Trilinos_ENABLE_TESTS:BOOL=OFF
-D MueLu_ENABLE_TESTS:BOOL=ON

Jonathan

Victor Eijkhout wrote on 08/18/2016 10:39 AM:
> Guys?
>
> Are all the test examples in the “demos” directory? I can’t get them 
> to run. Where is the actual executable that is tested? How can I see 
> what the errors were? (Note that I edited the CTest file to use the 
> correct mpirun; using mpiexec just gives a hanging test.)
>
> [c557-702:ex1:29] pwd
> /home1/00434/eijkhout/Software/trilinos/testing/demos-12.6.4/buildAgainstTrilinos/build/test/ex1
> [c557-702:ex1:30] cat CTestTestfile.cmake
> compile in parallel
> # CMake generated Testfile for
> # Source directory: 
> /home1/00434/eijkhout/Software/trilinos/testing/demos-12.6.4/buildAgainstTrilinos/test/ex1
> submission)
> # Build directory: 
> /home1/00434/eijkhout/Software/trilinos/testing/demos-12.6.4/buildAgainstTrilinos/build/test/ex1
> submission)
> #
> # This file includes the relevant testing commands required for
> # testing this directory and lists subdirectories to be tested as well.
> add_test(ex1 "ibrun" "-np" "4" 
> "/home1/00434/eijkhout/Software/trilinos/testing/demos-12.6.4/buildAgainstTrilinos/build/src/MyApp.exe") 
> │#ctest -VV
> [c557-702:ex1:31] make test ex1
> Running tests…
> /opt/apps/cmake/3.1.0/bin/ctest --force-new-ctest-process
> Test project 
> /home1/00434/eijkhout/Software/trilinos/testing/demos-12.6.4/buildAgainstTrilinos/build/test/ex1
>     Start 1: ex1
> 1/1 Test #1: ex1 ..............................***Failed    1.67 sec
>
> 0% tests passed, 1 tests failed out of 1
>
> Total Test time (real) =   1.68 sec
>
> The following tests FAILED:
>           1 - ex1 (Failed)
> Errors while running CTest
>
>
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at trilinos.org
> https://trilinos.org/mailman/listinfo/trilinos-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://trilinos.org/pipermail/trilinos-users/attachments/20160819/77e29f7a/attachment.html>


More information about the Trilinos-Users mailing list