A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tesh 'expect signal' can now accept more than one potential signal
[simgrid.git]
/
tools
/
jenkins
/
DynamicAnalysis.sh
diff --git
a/tools/jenkins/DynamicAnalysis.sh
b/tools/jenkins/DynamicAnalysis.sh
index f11b8430189698c36fb82abf4aedbe847fb0c164..04fe409694fc2c80849072b053f2d85c3756ad97 100755
(executable)
--- a/
tools/jenkins/DynamicAnalysis.sh
+++ b/
tools/jenkins/DynamicAnalysis.sh
@@
-1,4
+1,4
@@
-#!/
bin/
sh
+#!/
usr/bin/env
sh
set -e
set -e
@@
-20,17
+20,17
@@
do_cleanup() {
### Check the node installation
### Check the node installation
-for pkg in valgrind
+for pkg in valgrind
pcregrep
do
if command -v $pkg
do
if command -v $pkg
- then
+ then
echo "$pkg is installed. Good."
echo "$pkg is installed. Good."
- else
- die "please install $pkg before proceeding"
+ else
+ die "please install $pkg before proceeding"
fi
done
fi
done
-###
Cleanup previous runs
+###
Cleanup previous runs
! [ -z "$WORKSPACE" ] || die "No WORKSPACE"
[ -d "$WORKSPACE" ] || die "WORKSPACE ($WORKSPACE) does not exist"
! [ -z "$WORKSPACE" ] || die "No WORKSPACE"
[ -d "$WORKSPACE" ] || die "WORKSPACE ($WORKSPACE) does not exist"
@@
-46,7
+46,7
@@
NUMPROC="$(nproc)" || NUMPROC=1
cd $WORKSPACE/build
cd $WORKSPACE/build
-###
Proceed with the tests
+###
Proceed with the tests
ctest -D ExperimentalStart || true
cmake -Denable_documentation=OFF -Denable_lua=OFF \
ctest -D ExperimentalStart || true
cmake -Denable_documentation=OFF -Denable_lua=OFF \
@@
-56,12
+56,14
@@
cmake -Denable_documentation=OFF -Denable_lua=OFF \
-Denable_memcheck_xml=ON $WORKSPACE
-Denable_memcheck_xml=ON $WORKSPACE
-make -j$NUMPROC
-ctest -D ExperimentalTest -j$NUMPROC || true
+make -j$NUMPROC
tests
+ctest -
-no-compress-output -
D ExperimentalTest -j$NUMPROC || true
cd $WORKSPACE/build
if [ -f Testing/TAG ] ; then
find $WORKSPACE -iname "*.memcheck" -exec mv {} $WORKSPACE/memcheck \;
cd $WORKSPACE/build
if [ -f Testing/TAG ] ; then
find $WORKSPACE -iname "*.memcheck" -exec mv {} $WORKSPACE/memcheck \;
- mv Testing/`head -n 1 < Testing/TAG`/Test.xml $WORKSPACE/DynamicAnalysis.xml
+ #remove all "empty" files
+ grep -r -L "error>" $WORKSPACE/memcheck | xargs rm -f
+ mv Testing/$(head -n 1 < Testing/TAG)/Test.xml $WORKSPACE/DynamicAnalysis.xml
fi
fi