]> git.proxmox.com Git - ceph.git/blob - ceph/qa/workunits/suites/ffsb.sh
a6ec7d198af9cdfbc4d6f9686b5ba2bc231288a5
[ceph.git] / ceph / qa / workunits / suites / ffsb.sh
1 #!/usr/bin/env bash
2
3 set -e
4
5 mydir=`dirname $0`
6
7 # try it again if the clone is slow and the second time
8 trap -- 'retry' EXIT
9 retry() {
10 rm -rf ffsb
11 # double the timeout value
12 timeout 3600 git clone git://git.ceph.com/ffsb.git --depth 1
13 }
14 rm -rf ffsb
15 timeout 1800 git clone git://git.ceph.com/ffsb.git --depth 1
16 trap - EXIT
17
18 cd ffsb
19 ./configure
20 make
21 cd ..
22 mkdir tmp
23 cd tmp
24
25 for f in $mydir/*.ffsb
26 do
27 ../ffsb/ffsb $f
28 done
29 cd ..
30 rm -r tmp ffsb*
31