Commit 1976feeb authored by Kenneth Leiter's avatar Kenneth Leiter

ENH: Modify utils testing to use new testing functionality.

parent f87db327
# Add any dependencies that the cxx core tests may need
# Add any dependencies that the cxx tests may need
# Note: The tests already depend on their own file
SET_PROPERTY(GLOBAL APPEND PROPERTY CXX_TEST_DEPENDENCIES
"Xdmf"
......@@ -56,5 +56,4 @@ CLEAN_CXX_TEST(TestXdmfWriterHDF5ThenXML)
CLEAN_CXX_TEST(TestXdmfXPath
XdmfXPath1.xmf
XdmfXPath2.xmf
)
)
\ No newline at end of file
set(XdmfUtilsCxxTests
TestXdmfTopologyConverter
# Add any dependencies that the cxx tests may need
# Note: The tests already depend on their own file
SET_PROPERTY(GLOBAL APPEND PROPERTY CXX_TEST_DEPENDENCIES
"XdmfUtils"
)
# Include our test macros
include (UseCxxTest)
# Add any cxx tests here:
# Note: We don't want to use a foreach loop to test the files incase we
# have extra arguments (id: ADD_CXX_TEST(testname inputfile))
# Read UseCxxTest.cmake for more information
# ---------------------------------------
ADD_CXX_TEST(TestXdmfTopologyConverter)
if(XDMF_BUILD_EXODUS_IO)
set(XdmfUtilsCxxTests ${XdmfUtilsCxxTests} TestXdmfExodusIO)
ADD_CXX_TEST(TestXdmfExodusIO)
endif(XDMF_BUILD_EXODUS_IO)
foreach(test ${XdmfUtilsCxxTests})
add_executable(${test} ${test})
target_link_libraries(${test} XdmfUtils)
add_test(${test} ${test})
endforeach(test ${XdmfUtilsCxxTests})
# Add any cxx cleanup here:
# Note: We don't want to use a foreach loop to test the files incase we
# have multiple files (ie: CLEAN_CXX_TEST(testname outputfile1 ...))
# Read UseCxxTest.cmake for more information
# ---------------------------------------
CLEAN_CXX_TEST(TestXdmfTopologyConverter)
if(XDMF_BUILD_EXODUS_IO)
CLEAN_CXX_TEST(TestXdmfExodusIO
TestXdmfExodusIO.exo
)
endif(XDMF_BUILD_EXODUS_IO)
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment