-#!/bin/sh
+#!/usr/bin/env sh
set -e
then
export TSAN_OPTIONS="memory_limit_mb=1500"
SANITIZER_OPTIONS="-Denable_address_sanitizer=OFF -Denable_undefined_sanitizer=OFF -Denable_thread_sanitizer=ON"
+ export SMPI_PRIVATIZATION="mmap" # TSAN don't play well with dlopen
elif [ "${SANITIZER}" = "undefined" ]
then
export UBSAN_OPTIONS="print_stacktrace=1"
for pkg in xsltproc
do
if command -v $pkg
- then
+ then
echo "$pkg is installed. Good."
- else
- die "please install $pkg before proceeding"
+ else
+ die "please install $pkg before proceeding"
fi
done
-Denable_fortran=OFF ${SANITIZER_OPTIONS} $WORKSPACE
make -j$NUMPROC
-ctest -D ExperimentalTest || true
+ctest --no-compress-output -D ExperimentalTest || true
if [ -f Testing/TAG ] ; then
xsltproc $WORKSPACE/tools/jenkins/ctest2junit.xsl Testing/$(head -n 1 < Testing/TAG)/Test.xml > CTestResults_${SANITIZER}.xml