summaryrefslogtreecommitdiffstats
path: root/build-gluster-org/scripts/gd2-smoke.sh
blob: 799fdf7f2b4b3febcdd7b17b15e1ae970d94b629 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

set -e

JDIRS="/var/log/glusterfs /var/lib/glusterd /var/lib/glusterd/groups/virt /var/run/gluster /d /d/archived_builds /d/backends /d/build /d/logs /home/jenkins/root /build/*"
sudo mkdir -p $JDIRS
echo Return code = $?
sudo chown -RH jenkins:jenkins $JDIRS
echo Return code = $?
sudo chmod -R 755 $JDIRS
echo Return code = $?

# build the glusterfs source code
/opt/qa/build.sh

# run gd2 tests script
/opt/qa/glusterd2-test.sh