path: root/build-gluster-org/scripts
diff options
authorNiels de Vos <>2018-11-15 13:31:40 +0100
committerNiels de Vos <>2018-11-27 10:25:21 +0100
commit957e7d7130b616b0e77d01cefcd6acca10914a4e (patch)
tree8844521c4c7e135672a18444b64cfa9d9bd80a97 /build-gluster-org/scripts
parent3071bfd255cac21c4a2f270f0816bfa0c1121aee (diff)
Add job for running glusterfs regressions with TSAN
This is a copy of the job+script that are used for ASAN testing. Currently combining ASAN+TSAN in a single test-run is not an option, both libraries conflict with each other. Change-Id: Ie649a8f88be3e2aae949824903c490a64ea93e6e See-also: # --enable-tsan option Updates: #543
Diffstat (limited to 'build-gluster-org/scripts')
1 files changed, 30 insertions, 0 deletions
diff --git a/build-gluster-org/scripts/ b/build-gluster-org/scripts/
new file mode 100644
index 0000000..5570bcb
--- /dev/null
+++ b/build-gluster-org/scripts/
@@ -0,0 +1,30 @@
+nproc=$(getconf _NPROCESSORS_ONLN)
+sudo -E bash /opt/qa/
+# Clean up other Gluster dirs
+sudo rm -rf /var/lib/glusterd/* /build/install /build/scratch >/dev/null 2>&1
+# Remove the many left over socket files in /var/run
+sudo rm -f /var/run/????????????????????????????????.socket >/dev/null 2>&1
+# Remove GlusterFS log files from previous runs
+sudo rm -rf /var/log/glusterfs/* /var/log/glusterfs/.cmd_log_history >/dev/null 2>&1
+JDIRS="/var/log/glusterfs /var/lib/glusterd /var/run/gluster /d /d/archived_builds /d/backends /d/build /d/logs /home/jenkins/root"
+sudo mkdir -p $JDIRS
+sudo chown jenkins:jenkins $JDIRS
+chmod 755 $JDIRS
+set -e
+rm -rf $P/scratch;
+mkdir -p $P/scratch;
+cd $P/scratch;
+rm -rf $P/install;
+$SRC/configure --prefix=$P/install --with-mountutildir=$P/install/sbin \
+ --with-initdir=$P/install/etc --localstatedir=/var \
+ --enable-debug --enable-gnfs --silent --enable-tsan
+make install -j ${nproc}
+cd $SRC;
+export TSAN_OPTIONS=log_path=/var/log/glusterfs/tsan-output.log
+sudo -E bash /opt/qa/