]> git.sur5r.net Git - bacula/bacula/blob - regress/nightly-disk
Make out of freespace non-fatal for removable devices -- i.e. behaves like tape
[bacula/bacula] / regress / nightly-disk
1 #!/bin/sh
2 #
3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
5 #
6
7 #
8 # test only the disk based regression scripts
9 #
10 # Include full output
11 LANG=C
12 echo "Begin nightly-disk `date`"
13 REGRESS_DEBUG=1
14 export REGRESS_DEBUG
15 rm -rf Testing
16 rm -f dumps/*
17 git pull
18 #
19 # Temp switch to branch Branch-5.0 NB this leaves you on a headless
20 #    branch, but it works for building and testing.
21 #
22 #git checkout `git branch -r | grep "5\.0" | head -1`
23 #if [ $? -ne 0 ]; then
24 #   git checkout master
25 #fi
26 make distclean
27 scripts/config_dart
28 make setup
29 nice ctest -D Nightly -R "^disk:"
30 rtn=$?
31 i=0
32 while [ $i -le 5 ]; do
33    if [ $rtn = 0 ] || [ "$rtn" = "8" ]; then
34       break;
35    fi
36    echo "Submit failed, waiting 5 mins"
37    sleep 300
38    echo "ctest failed re-running Submit"
39    ctest -D NightlySubmit
40    rtn=$?
41    i=`expr $i + 1`
42 done
43 echo "End nightly-disk `date`"