Liebe Gitlab-Nutzer, lieber Gitlab-Nutzer, es ist nun möglich sich mittels des ZIH-Logins/LDAP an unserem Dienst anzumelden. Ein Anmelden über dieses erzeugt ein neues Konto. Das alte Konto ist über den Reiter "Standard" erreichbar. Die Administratoren

Dear Gitlab user, it is now possible to log in to our service using the ZIH login/LDAP. Logging in via this will create a new account. The old account can be accessed via the "Standard" tab. The administrators

Commit 6bba96d2 authored by Naumann, Andreas's avatar Naumann, Andreas
Browse files

amdis compile tests with small description

parent 848683ef
...@@ -712,63 +712,15 @@ list(REMOVE_DUPLICATES deb_add_dirs) ...@@ -712,63 +712,15 @@ list(REMOVE_DUPLICATES deb_add_dirs)
ENABLE_TESTING() ENABLE_TESTING()
INCLUDE(CTest) INCLUDE(CTest)
INCLUDE(Dart)
set(TEST_FILE amdis_test.cc) if(NOT CTEST_MODEL)
file(WRITE ${TEST_FILE} "#include <AMDiS.h> set(CTEST_MODEL "Experimental")
int main (int argc, char* argv[]) {
AMDiS::init(argc, argv);
AMDiS::finalize();
return 0 ;
}")
if(WIN32)
set(Boost_USE_STATIC_LIBS ON)
find_package(Boost 1.42 REQUIRED system iostreams filesystem program_options date_time zlib bzip2)
else()
set(Boost_USE_STATIC_LIBS OFF)
find_package(Boost 1.42 REQUIRED system iostreams filesystem program_options date_time)
endif() endif()
if(Boost_FOUND) if( NOT N_TEST_PROC)
list(APPEND AMDIS_LIBRARIES ${Boost_LIBRARIES}) set(N_TEST_PROC "8")
list(APPEND AMDIS_LIBRARY_DIRS ${Boost_LIBRARY_DIRS})
list(APPEND AMDIS_INCLUDE_DIRS ${Boost_INCLUDE_DIR})
else()
message(ERROR "Boost libraries not found")
endif(Boost_FOUND)
find_library(UMFPACK_LIB umfpack
HINTS ENV LIBRARY_PATH
DOC "The UMFPACK library")
if(UMFPACK_LIB)
list(APPEND AMDIS_LIBRARIES ${UMFPACK_LIB})
else()
message(FATAL_ERROR "Could not find the UMFPACK library")
endif() endif()
configure_file(myMake.sh.in myMake.sh @ONLY)
add_executable("amdis_test" ${TEST_FILE}) configure_file(CTestScript.cmake.in CTestScript.cmake @ONLY)
target_link_libraries("amdis_test" amdis reinit compositeFEM muparser ${AMDIS_LIBRARIES})
add_test(NAME test.amdis
WORKING_DIRECTORY ${CMAKE_BINARY_DIRECTORY}
COMMAND ${CMAKE_COMMAND} --build . --target amdis_test --config $<CONFIGURATION>
)
# add_test(NAME test.build.amdis
# WORKING_DIRECTORY ${CMAKE_BINARY_DIRECTORY}
# COMMAND ${CMAKE_COMMAND} --build . --target amdis --config $<CONFIGURATION>
# )
# add_test(NAME test.build.reinit
# WORKING_DIRECTORY ${CMAKE_BINARY_DIRECTORY}
# COMMAND ${CMAKE_COMMAND} --build . --target reinit --config $<CONFIGURATION>
# )
# add_test(NAME test.build.compositeFEM
# WORKING_DIRECTORY ${CMAKE_BINARY_DIRECTORY}
# COMMAND ${CMAKE_COMMAND} --build . --target compositeFEM --config $<CONFIGURATION>
# )
# add_test(NAME test.build.muparser
# WORKING_DIRECTORY ${CMAKE_BINARY_DIRECTORY}
# COMMAND ${CMAKE_COMMAND} --build . --target muparser --config $<CONFIGURATION>
# )
# PACKAGES # PACKAGES
......
## This file should be placed in the root directory of your project.
## Then modify the CMakeLists.txt file in the root directory of your
## project to incorporate the testing dashboard.
##
## # The following are required to submit to the CDash dashboard:
## ENABLE_TESTING()
## INCLUDE(CTest)
set(CTEST_PROJECT_NAME "AMDiS")
set(CTEST_NIGHTLY_START_TIME "00:00:00 EST")
set(CTEST_DROP_METHOD "http")
set(CTEST_DROP_SITE "my.cdash.org")
set(CTEST_DROP_LOCATION "/submit.php?project=AMDiS")
set(CTEST_DROP_SITE_CDASH TRUE)
# set(CTEST_USE_LAUNCHERS 1)
\ No newline at end of file
SET (CTEST_SOURCE_DIRECTORY @CMAKE_CURRENT_SOURCE_DIR@)
SET (CTEST_BINARY_DIRECTORY @CMAKE_CURRENT_BINARY_DIR@)
SET (CTEST_COMMAND "${CMAKE_CTEST_COMMAND}")
SET (CTEST_BUILD_COMMAND ${CTEST_BINARY_DIRECTORY}/myMake.sh)
set(CTEST_UPDATE_COMMAND ${CTEST_SOURCE_DIRECTORY}/MySvn.sh)
#set(CTEST_UPDATE_OPTIONS "--username studentiwr --password iwr_ws09")
set(CTEST_SITE @SITE@)
set(CTEST_BUILD_NAME @BUILDNAME@)
ctest_start(@CTEST_MODEL@)
ctest_build()
ctest_submit()
Testing AMDiS
--------------
testing the compilation of amdis is done after configuring the binary using cmake. The compile test is run using
ctest -V -S CTestScript.cmake
(omit the argument -V to remove the output)
Hint: This test only compiles the given configuration from a previous cmake run. If you want to test the demos, initfiles and so on, you have to check out https://fusionforge.zih.tu-dresden.de/svn/amdis/trunk/tools/test and have a look at the README there.
make -j@N_TEST_PROC@ $*
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