Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
new attempt for bigdft ..
[simgrid.git] / tools / jenkins / DynamicAnalysis.sh
index f3e2930c0a17387c9b6a71fda48b2eda54fc8ef6..05e6a49415afc11aebd7cca1bccdedcffea005a7 100755 (executable)
@@ -1,12 +1,27 @@
 #!/usr/bin/env sh
 
-set -e
-
 die() {
     echo "$@"
     exit 1
 }
 
+[ -n "$WORKSPACE" ] || die "No WORKSPACE"
+[ -d "$WORKSPACE" ] || die "WORKSPACE ($WORKSPACE) does not exist"
+
+echo "XXXX Cleanup previous attempts. Remaining content of /tmp:"
+rm -f /tmp/cc*
+rm -f /tmp/*.so
+rm -f /tmp/*.so.*
+rm -rf /tmp/simgrid-java*
+rm -rf /var/tmp/simgrid-java*
+rm -rf /tmp/jvm-*
+find "$WORKSPACE" -name "hs_err_pid*.log" -exec rm -f {} +
+ls /tmp
+df -h
+echo "XXXX Let's go"
+
+set -e
+
 ### Check the node installation
 
 pkg_check() {
@@ -25,9 +40,6 @@ pkg_check valgrind pcregrep
 
 ### Cleanup previous runs
 
-[ -n "$WORKSPACE" ] || die "No WORKSPACE"
-[ -d "$WORKSPACE" ] || die "WORKSPACE ($WORKSPACE) does not exist"
-
 do_cleanup() {
   for d
   do