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

top level script does not call ctest in Relase mode [skip ci]

parent 954a37e7
No related branches found
No related tags found
No related merge requests found
...@@ -151,18 +151,20 @@ endif() ...@@ -151,18 +151,20 @@ endif()
################################################################################ ################################################################################
# CTEST # CTEST
################################################################################# #################################################################################
enable_testing( ) if(CMAKE_BUILD_TYPE EQUAL "DEBUG")
add_test( NAME test_pymoose_sanity enable_testing( )
COMMAND ${PYTHON_EXECUTABLE} -c "import moose" add_test( NAME test_pymoose_sanity
) COMMAND ${PYTHON_EXECUTABLE} -c "import moose"
)
if(WITH_GUI) if(WITH_GUI)
add_test( NAME test_gui_sanity add_test( NAME test_gui_sanity
COMMAND ${PYTHON_EXECUTABLE} ${MOOSE_GUI_INSTALL_DIR}/mgui.py COMMAND ${PYTHON_EXECUTABLE} ${MOOSE_GUI_INSTALL_DIR}/mgui.py
WORKING_DIRECTORY ${MOOSE_GUI_INSTALL_DIR} WORKING_DIRECTORY ${MOOSE_GUI_INSTALL_DIR}
)
endif()
set_tests_properties( test_pymoose_sanity
PROPERTIES ENVIRONMENT "PYTHONPATH=${PYMOOSE_BUILD_DIR}/python"
) )
endif() endif()
set_tests_properties( test_pymoose_sanity
PROPERTIES ENVIRONMENT "PYTHONPATH=${PYMOOSE_BUILD_DIR}/python"
)
...@@ -5,24 +5,23 @@ ...@@ -5,24 +5,23 @@
## Here goes the debian make. ## Here goes the debian make.
%: %:
dh "$@" dh "$@" --buildsystem=cmake
override_dh_auto_clean: ##override_dh_auto_clean:
rm -rf $(BUILD_DIR_MOOSE) ## dh_auto_clean --buildsystem=cmake
dh_auto_clean --buildsystem=cmake ##
### consider using -DUSE_VERSIONED_DIR=ON if backporting
# consider using -DUSE_VERSIONED_DIR=ON if backporting ##override_dh_auto_configure:
override_dh_auto_configure: ## cmake -DVERSION_MOOSE=3.1.3 -DCMAKE_INSTALL_PREFIX=debian/tmp/usr .
cmake -DVERSION_MOOSE=3.1.3 -DCMAKE_INSTALL_PREFIX=debian/tmp/usr . ##
##override_dh_auto_build:
override_dh_auto_build: ## make VERBOSE=0 -j`nproc`
make VERBOSE=0 -j`nproc` ##
##override_dh_auto_install:
override_dh_auto_install: ## make install
make install ##
##override_dh_auto_test:
override_dh_auto_test: ## echo "Nothing to do here"
echo "Nothing to do here" ##
##override_dh_shlibdeps:
override_dh_shlibdeps: ## dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info
dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info
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