path: root/build-gluster-org/scripts
diff options
authorNigel Babu <>2018-08-09 14:46:03 +0530
committerAmar Tumballi <>2018-09-24 04:48:32 +0000
commit2d2e77ad8437e173ef59ca166b98b817c2c3c682 (patch)
treee09e49413a26e11d1874891a92940dc44a6f2db0 /build-gluster-org/scripts
parent55a89d35ef8bb7045ddd0908ce26bb5c0f6ecabd (diff)
ASAN job for gluster
Change-Id: I69e058e6cce75e026c91b5cf42a3a602431a899e
Diffstat (limited to 'build-gluster-org/scripts')
1 files changed, 32 insertions, 0 deletions
diff --git a/build-gluster-org/scripts/ b/build-gluster-org/scripts/
new file mode 100644
index 0000000..eaea3b3
--- /dev/null
+++ b/build-gluster-org/scripts/
@@ -0,0 +1,32 @@
+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
+# Temporarily revert the libtool linking flags for the ASAN jobs. This does not
+# work with ASAN
+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-asan
+make install -j ${nproc}
+cd $SRC;
+sudo -E bash /opt/qa/ \ No newline at end of file