[f18679]: iAIDA / tests / CMakeLists.txt  Maximize  Restore  History

Download this file

40 lines (31 with data), 1.0 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# iAIDA/tests
macro (setup exeName testString)
add_executable( ${exeName} ${exeName}.cpp)
TARGET_LINK_LIBRARIES( ${exeName} iAIDA ${EXTERNAL_LIBS} )
add_test ( ${exeName} ${exeName} )
set_tests_properties ( ${exeName} PROPERTIES PASS_REGULAR_EXPRESSION ${testString} )
endmacro (setup)
# generic tests
set( tstFiles testAIDAMemoryTree
testHistoName
writeHistos
writeTuple
writeClouds
)
foreach(exa_ ${tstFiles} )
setup( ${exa_} "(OK)|(That's it !)")
endforeach()
set( allTests ${tstFiles} )
if (GRACE_FOUND)
setup ( "plot" "OK")
setup ( "plottingHistograms" "OK")
set( allTests ${allTests} plot plottingHistogram )
endif (GRACE_FOUND)
IF(CMAKE_BUILD_TYPE MATCHES DEBUG)
message("... tests set up")
ENDIF(CMAKE_BUILD_TYPE MATCHES DEBUG)
if ( ${IAIDA_INSTALL_EXAMPLES} MATCHES ON)
foreach(tst_ ${tstFiles} )
install(PROGRAMS ${PROJECT_BINARY_DIR}/tests/${tst_} DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}/iAIDA )
endforeach()
endif ( ${IAIDA_INSTALL_EXAMPLES} MATCHES ON)

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks