From: Michael Chase-S. <mc...@us...> - 2013-05-24 21:39:37
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "sfcb - Small Footprint CIM Broker". The branch, master has been updated via 2e68c1a981197cca8f64490dcef9021da1c44e74 (commit) from c73e360e6492f0f4106f03e94d10cc57abcb32f0 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 2e68c1a981197cca8f64490dcef9021da1c44e74 Author: Michael Chase-Salerno <br...@li...> Date: Fri May 24 17:38:29 2013 -0400 [sfcb-tix:#52] ABT core check ----------------------------------------------------------------------- Summary of changes: test/ABT/ABTScript | 15 +++++++++++++++ test/ABT/MonitorABT | 10 ++++++++++ 2 files changed, 25 insertions(+), 0 deletions(-) diff --git a/test/ABT/ABTScript b/test/ABT/ABTScript index 26d0ec0..c5ba77e 100755 --- a/test/ABT/ABTScript +++ b/test/ABT/ABTScript @@ -15,6 +15,7 @@ TESTNAME=$2 REPORT_DIR=$3 CONFIGOPTIONS=$4 COVERAGE_DIR="$BASE_DIR/sfcb/coverage" +CORE_DIR="$BASE_DIR/cores/" REPORTDIR=$REPORT_DIR/"$TESTNAME" RESULTDIR=$REPORTDIR/xmlFailure_reportFiles HTMLFILE="$REPORTDIR/index.html" @@ -28,6 +29,9 @@ fi if [ ! -d "$REPORTDIR" ]; then mkdir -p "$REPORTDIR" fi +if [ ! -d "$CORE_DIR" ]; then + mkdir -p "$CORE_DIR" +fi #Output to the email and index.html files # 1st arg is the text, 2nd is the link target @@ -115,6 +119,16 @@ SFCB_RESULTFILES() find . -name "*.result" -print0 | xargs -0 -r -I file cp file --target-directory=$RESULTDIR --parents fi } +SFCB_CORE() +{ + # Check if any core files were generated + if [ "$(ls -A /tmp/ABTcores/)" ] + then + cp /tmp/ABTcores/* $CORE_DIR + DUALOUT "FAILURE: Cores found, copied to $CORE_DIR" + RC=1 + fi +} SFCB_VALGRIND() { # Check the Valgrind output if it's there @@ -240,6 +254,7 @@ BUILD_SFCB() DUALOUT "SECOND TEST RUN:" SFCB_TESTS SFCB_STOP + SFCB_CORE SFCB_VALGRIND SFCB_RESULTFILES else diff --git a/test/ABT/MonitorABT b/test/ABT/MonitorABT index 14a2a6e..7d48d6e 100755 --- a/test/ABT/MonitorABT +++ b/test/ABT/MonitorABT @@ -115,6 +115,13 @@ if [ -d $SFCB_ROOT ]; then rm -rf $SFCB_ROOT fi +# Set core file location +coresave=`cat /proc/sys/kernel/core_pattern` +mkdir -p /tmp/ABTcores +rm -f /tmp/ABTcores/* +echo "/tmp/ABTcores/core.%t.%e.%p.%s" > /proc/sys/kernel/core_pattern +ulimit -c unlimited + while [ $i -lt $index ] do bash $scriptDir/ABTScript $SFCB_ROOT "${TESTNAME[$i]}" $REPORT_DIR "${TESTCONFIG[$i]}" @@ -124,6 +131,9 @@ do let i="$i + 1" done +# Restore core file location +echo $coresave > /proc/sys/kernel/core_pattern + if [ $testCount -eq $index ] ; then STATUS="SUCCESS" else hooks/post-receive -- sfcb - Small Footprint CIM Broker |