Skip to content
Snippets Groups Projects
Commit fadc31b4 authored by rds's avatar rds
Browse files

make check support

parent f079ed4b
No related branches found
No related tags found
No related merge requests found
......@@ -113,6 +113,7 @@ ZMAP_SSH_OPTIONS="-oStrictHostKeyChecking=no \
-oNumberOfPasswordPrompts=0"
ZMAP_MAKE=yes
ZMAP_MAKE_CHECK=yes
ZMAP_MAKE_INSTALL=yes
ZMAP_RELEASES_DIR=~zmap/BUILDS
ZMAP_RELEASE_LEVEL=DEVELOPMENT
......
......@@ -73,6 +73,41 @@ if [ "x$ZMAP_MAKE" == "x$ZMAP_TRUE" ]; then
make || zmap_message_exit $(hostname) "Failed Running make"
fi
if [ "x$ZMAP_MAKE_CHECK" == "x$ZMAP_TRUE" ]; then
zmap_message_out "Running make check"
CHECK_LOG_FILE=$(pwd)/$0.check.log
MAKE_CHECK_FAILED=no
make check check_zmap_LOG_FILE=$CHECK_LOG_FILE || MAKE_CHECK_FAILED=$ZMAP_TRUE
if [ "x$MAKE_CHECK_FAILED" == "x$ZMAP_TRUE" ]; then
TMP_LOG=/tmp/zmap_fail.$$.log
echo "ZMap Tests Failure" > $TMP_LOG
echo "" >> $TMP_LOG
echo "Tail of make check log:" >> $TMP_LOG
echo "" >> $TMP_LOG
tail $CHECK_LOG_FILE >> $TMP_LOG
echo "" >> $TMP_LOG
echo "Full log is here $(hostname):$CHECK_LOG_FILE" >> $TMP_LOG
ERROR_RECIPIENT=$ZMAP_MASTER_NOTIFY_MAIL
if [ "x$ERROR_RECIPIENT" != "x" ]; then
zmap_message_out "Mailing log to $ERROR_RECIPIENT"
cat $TMP_LOG | mailx -s "ZMap Tests Failure" $ERROR_RECIPIENT
fi
rm -f $TMP_LOG
zmap_message_exit $(hostname) "Failed Running make check"
fi
fi
if [ "x$ZMAP_MAKE_INSTALL" == "x$ZMAP_TRUE" ]; then
zmap_message_out "Running make install"
make install || zmap_message_exit $(hostname) "Failed running make install"
......
# Used as a sample and by the test suite.
[ZMap]
default-sequence = b0250
default-printer = print-1
sources = manual_annotation;automatic_annotation
[logging]
logging = true
show-code = false
[manual_annotation]
url = "acedb://any:any@server:1000"
[automatic_annotation]
url = "acedb://any:any@server:1001"
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