# Target for build tests:
#
# Environment variables: CONFIGFILE CMAKE MAKEOPTS LOGDIR TMPDIR
+#
TMPDIR=/tmp
CMAKE=cmake
date:= $(shell date +%s)
mkdir -p $(logfiledir)
@echo "AUTOMATED DEAL.II BUILD TEST" | tee $(logfile)
@echo "BEGIN HEADER `date -u '+%Y-%m-%d %T'`" | tee -a $(logfile)
+ @svn info . | perl -ne 'print "dealii-feature: revision=$$_\n" if s/Last Changed Rev: //; print "dealii-feature: branch=$$1\n" if m/svn\.dealii\.org\/(.+)\/deal.II/;' | tee -a $(logfile)
+ @echo "dealii-feature: user=$(USER)"
+ @echo "dealii-feature: host=`hostname`"
+ @echo "dealii-feature: configuration=`basename "$(CONFIGFILE)"`
@echo END HEADER `date -u '+%Y-%m-%d %T'`\n | tee -a $(logfile)
@echo "BEGIN CONFIGURE OUTPUT `date -u '+%Y-%m-%d %T'`" | tee -a $(logfile)
cd $(builddir) && "$(CMAKE)" -C "$(CONFIGFILE)" -DCMAKE_INSTALL_PREFIX=$(installdir) $(PWD) >>$(logfile) 2>&1
@echo "END CONFIGURE OUTPUT `date -u '+%Y-%m-%d %T'`" | tee -a $(logfile)
+ @echo "BEGIN CMAKE SYSTEM INFORMATION `date -u '+%Y-%m-%d %T'`" | tee -a $(logfile)
+ cd $(builddir) && "$(CMAKE)" --system-information >>$(logfile) 2>&1
+ @echo "END CMAKE SYSTEM INFORMATION `date -u '+%Y-%m-%d %T'`" | tee -a $(logfile)
+ @echo "BEGIN REPORT FEATURES `date -u '+%Y-%m-%d %T'`" | tee -a $(logfile)
+ cd $(builddir) && make $(MAKEOPTS) report_features >>$(logfile) 2>&1
+ cd $(builddir) && make $(MAKEOPTS) run_report_features | tee -a $(logfile)
+ @echo "END REPORT FEATURES `date -u '+%Y-%m-%d %T'`" | tee -a $(logfile)
@echo "BEGIN BUILD INSTALL OUTPUT `date -u '+%Y-%m-%d %T'`" | tee -a $(logfile)
cd $(builddir) && make $(MAKEOPTS) install >>$(logfile) 2>&1
@echo "END BUILD INSTALL OUTPUT `date -u '+%Y-%m-%d %T'`" | tee -a $(logfile)
# ${DEAL_II_PACKAGE_NAME} configuration:
#
# CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}
+# BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}
# CMAKE_INSTALL_PREFIX: ${CMAKE_INSTALL_PREFIX}
# CMAKE_SOURCE_DIR: ${CMAKE_SOURCE_DIR} (Version ${DEAL_II_PACKAGE_VERSION})
# CMAKE_BINARY_DIR: ${CMAKE_BINARY_DIR}
IF(CMAKE_BUILD_TYPE MATCHES "Debug")
FILE(APPEND ${_log} "# DEAL_II_SHARED_LINKER_FLAGS_DEBUG: ${DEAL_II_SHARED_LINKER_FLAGS_DEBUG}\n")
ENDIF()
+FILE(APPEND ${_log} "# DEAL_II_SHARED_LINKER_FLAGS_DEBUG: ${DEAL_II_SHARED_LINKER_FLAGS_DEBUG}\n")
IF(NOT DEAL_II_SETUP_DEFAULT_COMPILER_FLAGS)
FILE(APPEND ${_log} "#\n# WARNING: DEAL_II_SETUP_DEFAULT_COMPILER_FLAGS is set to OFF\n")