Skip to content
Snippets Groups Projects
Commit 5dd1e815 authored by Dilawar Singh's avatar Dilawar Singh
Browse files

Added some sanity tests for both moose and moogli.

parent c180075e
No related branches found
No related tags found
1 merge request!213Update rmoogli.py
......@@ -31,12 +31,14 @@ add_custom_command( OUTPUT ${OUTPUT_MOOSEBIN}
)
find_package(PythonInterp REQUIRED)
## moose-gui
## TODO: moose-gui should be a python module.
set(MOOSE_GUI_DIR ${CMAKE_SOURCE_DIR}/moose-gui)
install(DIRECTORY ${MOOSE_CORE_INSTALL_DIR}/
DESTINATION ${CMAKE_INSTALL_PREFIX}
PATTERN ".git" EXCLUDE
)
install(DIRECTORY ${MOOSE_GUI_DIR}
......@@ -44,7 +46,8 @@ install(DIRECTORY ${MOOSE_GUI_DIR}
PATTERN ".git" EXCLUDE
)
install(PROGRAMS ${DATA_DIR}/moosegui
configure_file( ${CMAKE_SOURCE_DIR}/cmake/moose.in ${CMAKE_BINARY_DIR}/moose )
install(PROGRAMS ${CMAKE_BINARY_DIR}/moose
DESTINATION bin
)
......@@ -64,3 +67,14 @@ add_custom_command(OUTPUT __uninstall_moose-gui__
${CMAKE_INSTALL_PREFIX}/lib/moose/gui
COMMAND ${CMAKE_COMMAND} -E remove ${CMAKE_INSTALL_PREFIX}/bin/moosegui
)
################################################################################
# CTEST
#################################################################################
enable_testing( )
add_test( NAME test_pymoose_sanity COMMAND ${PYTHON_EXECUTABLE} -c "import moose")
add_test( NAME test_moogli_sanity COMMAND ${PYTHON_EXECUTABLE} -c "import moogli")
set_tests_properties( test_pymoose_sanity test_moogli_sanity
PROPERTIES ENVIRONMENT "PYTHONPATH=${MOOSE_CORE_BUILD_DIR}/python"
)
......@@ -15,7 +15,7 @@ echo "Building MOOSE"
@CMAKE_MOOSE_CORE_ARGS@ \
@MOOSE_CORE_SOURCE_DIR@
$MAKE
ctest -V || echo "Some tests failed"
$MAKE install
ctest --output-on-failure || echo "Some tests failed"
)
3.1.1
\ No newline at end of file
3.1.1-66-gc180075
\ No newline at end of file
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