pkg_check() {
for pkg
do
- if command -v $pkg
+ if command -v "$pkg"
then
echo "$pkg is installed. Good."
else
### Cleanup previous runs
-! [ -z "$WORKSPACE" ] || die "No WORKSPACE"
+[ -n "$WORKSPACE" ] || die "No WORKSPACE"
[ -d "$WORKSPACE" ] || die "WORKSPACE ($WORKSPACE) does not exist"
do_cleanup() {
NUMPROC="$(nproc)" || NUMPROC=1
-cd $WORKSPACE/build
+cd "$WORKSPACE"/build
ctest -D ExperimentalStart || true
-cmake -Denable_documentation=OFF -Denable_lua=ON -Denable_java=OFF \
+cmake -Denable_documentation=OFF -Denable_java=OFF \
-Denable_compile_optimizations=ON -Denable_compile_warnings=ON \
- -Denable_jedule=ON -Denable_mallocators=OFF \
+ -Denable_mallocators=OFF \
-Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=ON -Denable_model-checking=OFF \
- -Denable_memcheck=OFF -Denable_memcheck_xml=OFF -Denable_smpi_ISP_testsuite=ON -Denable_coverage=OFF\
- -Denable_fortran=OFF -Denable_python=OFF ${SANITIZER_OPTIONS} $WORKSPACE
+ -Denable_ns3=ON \
+ -Denable_memcheck=OFF -Denable_memcheck_xml=OFF -Denable_smpi_MBI_testsuite=OFF -Denable_coverage=OFF\
+ -Denable_fortran=OFF -Denable_python=OFF -DLTO_EXTRA_FLAG="auto" -DCMAKE_CXX_COMPILER_LAUNCHER=ccache\
+ ${SANITIZER_OPTIONS} "$WORKSPACE"
make -j$NUMPROC tests
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
- mv CTestResults_${SANITIZER}.xml $WORKSPACE
+ xsltproc "$WORKSPACE"/tools/jenkins/ctest2junit.xsl Testing/"$(head -n 1 < Testing/TAG)"/Test.xml > CTestResults_"${SANITIZER}".xml
+ mv CTestResults_"${SANITIZER}".xml "$WORKSPACE"
fi
make clean