tCMakeLists.txt - pism - [fork] customized build of PISM, the parallel ice sheet model (tillflux branch)
 (HTM) git clone git://src.adamsgaard.dk/pism
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
       tCMakeLists.txt (2074B)
       ---
            1 find_program(NOSE_EXECUTABLE
            2   NAMES nosetests nosetests3)
            3 mark_as_advanced(NOSE_EXECUTABLE)
            4 
            5 if (Pism_DEBUG)
            6   add_test(NAME "Config:metadata_structure"
            7     COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/config_test.py pism_config.nc
            8     WORKING_DIRECTORY ${PROJECT_BINARY_DIR})
            9 endif ()
           10 
           11 if (Pism_BUILD_PYTHON_BINDINGS AND NOSE_EXECUTABLE)
           12   message(STATUS "Enabling PISM Python tests that use nose")
           13 
           14   macro(pism_nose_test name executable)
           15     add_test(NAME ${name}
           16       COMMAND ${NOSE_EXECUTABLE} "-v" "-s" ${CMAKE_CURRENT_SOURCE_DIR}/${executable}
           17       WORKING_DIRECTORY ${PROJECT_BINARY_DIR})
           18   endmacro()
           19 
           20   pism_nose_test("Python:nose:misc" miscellaneous.py)
           21   pism_nose_test("Python:nose:IceModelVec2T" icemodelvec2t.py)
           22   pism_nose_test("Python:nose:enthalpy:converter" enthalpy/converter.py)
           23   pism_nose_test("Python:nose:enthalpy:column" enthalpy/column.py)
           24   pism_nose_test("Python:nose:sia:bed_smoother" bed_smoother.py)
           25   pism_nose_test("Python:nose:bed_deformation:LC:restart" regression/beddef_lc_restart.py)
           26   pism_nose_test("Python:nose:ocean" regression/ocean_models.py)
           27   pism_nose_test("Python:nose:surface" regression/surface_models.py)
           28   pism_nose_test("Python:nose:atmosphere" regression/atmosphere_models.py)
           29   pism_nose_test("Python:nose:atmosphere:LTOP" regression/orographic_precipitation.py)
           30   pism_nose_test("Python:Verification:nose:bed_deformation:LC:viscous" regression/beddef_lc_viscous.py)
           31   pism_nose_test("Python:Verification:nose:bed_deformation:LC:elastic" regression/beddef_lc_elastic.py)
           32   pism_nose_test("Python:Verification:nose:bed_deformation:iso" regression/beddef_iso.py)
           33   pism_nose_test("Python:Verification:nose:mass_transport" mass_transport.py)
           34   pism_nose_test("Python:Verification:nose:btu" bedrock_column.py)
           35   pism_nose_test("Python:nose:frontal_melt" regression/frontal_melt_models.py)
           36   pism_nose_test("Python:nose:hydrology:steady" regression/hydrology_steady_test.py)
           37   pism_nose_test("Python:nose:file-io" regression/file.py)
           38 else()
           39   message(STATUS "nose was not found; some regression tests will be disabled")
           40 endif()