Skip to content

Commit

Permalink
Add TrilinosATDMConfigTests package (trilinos#5939)
Browse files Browse the repository at this point in the history
The ATDM Trilinos Configuration scripts have become complex enough and
important enough that they need to be under automated testing.
  • Loading branch information
bartlettroscoe authored and Kim Liegeois committed May 29, 2020
1 parent 7dfe2e7 commit 2f01ee0
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions PackagesList.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
#
TRIBITS_REPOSITORY_DEFINE_PACKAGES(
TrilinosFrameworkTests commonTools/framework PT
TrilinosATDMConfigTests cmake/std/atdm PT
Gtest commonTools/gtest PT
Kokkos packages/kokkos PT
Teuchos packages/teuchos PT
Expand Down
3 changes: 3 additions & 0 deletions cmake/std/atdm/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
TRIBITS_PACKAGE(TrilinosATDMConfigTests)
TRIBITS_ADD_TEST_DIRECTORIES(test)
TRIBITS_PACKAGE_POSTPROCESS()
1 change: 1 addition & 0 deletions cmake/std/atdm/cmake/Dependencies.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TRIBITS_PACKAGE_DEFINE_DEPENDENCIES()
1 change: 1 addition & 0 deletions cmake/std/atdm/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ADD_SUBDIRECTORY(unit_tests)
27 changes: 27 additions & 0 deletions cmake/std/atdm/test/unit_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

TRIBITS_ADD_ADVANCED_TEST( atdm_match_keyword_unit_tests
OVERALL_WORKING_DIRECTORY TEST_NAME
OVERALL_NUM_MPI_PROCS 1
TEST_0 CMND env
ARGS SHUNIT_COLOR=none ${CMAKE_CURRENT_SOURCE_DIR}/atdm_match_keyword_unit_tests.sh
PASS_REGULAR_EXPRESSION_ALL "Ran 1 test" "[^]OK[$]"
ALWAYS_FAIL_ON_NONZERO_RETURN
)

TRIBITS_ADD_ADVANCED_TEST( atdm_match_any_keyword_unit_tests
OVERALL_WORKING_DIRECTORY TEST_NAME
OVERALL_NUM_MPI_PROCS 1
TEST_0 CMND env
ARGS SHUNIT_COLOR=none ${CMAKE_CURRENT_SOURCE_DIR}/atdm_match_any_keyword_unit_tests.sh
PASS_REGULAR_EXPRESSION_ALL "Ran 1 test" "[^]OK[$]"
ALWAYS_FAIL_ON_NONZERO_RETURN
)

TRIBITS_ADD_ADVANCED_TEST( set_build_options_unit_tests
OVERALL_WORKING_DIRECTORY TEST_NAME
OVERALL_NUM_MPI_PROCS 1
TEST_0 CMND env
ARGS SHUNIT_COLOR=none ${CMAKE_CURRENT_SOURCE_DIR}/set_build_options_unit_tests.sh
PASS_REGULAR_EXPRESSION_ALL "Ran 13 test" "[^]OK[$]"
ALWAYS_FAIL_ON_NONZERO_RETURN
)

0 comments on commit 2f01ee0

Please sign in to comment.