File tree 6 files changed +42
-42
lines changed
6 files changed +42
-42
lines changed Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ ROOT=$(cd "$(dirname "$0")/.." && pwd)
13
13
cd " $ROOT " || (echo failed to cd " $ROOT " ; exit 1)
14
14
15
15
export BINDIR=${BINDIR:- $ROOT / target/ debug}
16
- hammer=" $BINDIR /crucible-hammer"
17
- cds=" $BINDIR /crucible-downstairs"
18
- dsc=" $BINDIR /dsc"
16
+ hammer=" ${ BINDIR} /crucible-hammer"
17
+ cds=" ${ BINDIR} /crucible-downstairs"
18
+ dsc=" ${ BINDIR} /dsc"
19
19
for bin in $hammer $cds $dsc ; do
20
20
if [[ ! -f " $bin " ]]; then
21
21
echo " Can't find crucible binary at $bin " >&2
@@ -30,7 +30,7 @@ if pgrep -fl -U "$(id -u)" "$cds"; then
30
30
fi
31
31
32
32
WORK_ROOT=${WORK_ROOT:-/ tmp}
33
- TEST_ROOT=" $WORK_ROOT /hammer_loop"
33
+ TEST_ROOT=" ${ WORK_ROOT} /hammer_loop"
34
34
if [[ -d " $TEST_ROOT " ]]; then
35
35
# Delete previous test data
36
36
rm -r " $TEST_ROOT "
@@ -52,9 +52,9 @@ if [[ $? -ne 0 ]]; then
52
52
exit 1
53
53
fi
54
54
55
- loop_log=" $TEST_ROOT /hammer_loop.log"
56
- test_log=" $TEST_ROOT /hammer_loop_test.log"
57
- dsc_ds_log=" $TEST_ROOT /hammer_loop_dsc.log"
55
+ loop_log=" ${ TEST_ROOT} /hammer_loop.log"
56
+ test_log=" ${ TEST_ROOT} /hammer_loop_test.log"
57
+ dsc_ds_log=" ${ TEST_ROOT} /hammer_loop_dsc.log"
58
58
59
59
loops=20
60
60
Original file line number Diff line number Diff line change @@ -45,17 +45,17 @@ if [[ $? -ne 0 ]]; then
45
45
exit 1
46
46
fi
47
47
48
- loop_log=" $TEST_ROOT " /test_live_repair_summary.log
49
- test_log=" $TEST_ROOT " /test_live_repair.log
50
- verify_log=" $TEST_ROOT /test_live_repair_verify.log"
51
- dsc_ds_log=" $TEST_ROOT /test_live_repair_dsc.log"
48
+ loop_log=" ${ TEST_ROOT} /test_live_repair_summary.log"
49
+ test_log=" ${ TEST_ROOT} /test_live_repair.log"
50
+ verify_log=" ${ TEST_ROOT} /test_live_repair_verify.log"
51
+ dsc_ds_log=" ${ TEST_ROOT} /test_live_repair_dsc.log"
52
52
53
53
ROOT=$( cd " $( dirname " $0 " ) /.." && pwd)
54
54
cd " $ROOT " || (echo failed to cd " $ROOT " ; exit 1)
55
55
export BINDIR=${BINDIR:- $ROOT / target/ debug}
56
- crucible_test=" $BINDIR /crutest"
57
- dsc=" $BINDIR /dsc"
58
- downstairs=" $BINDIR /crucible-downstairs"
56
+ crucible_test=" ${ BINDIR} /crutest"
57
+ dsc=" ${ BINDIR} /dsc"
58
+ downstairs=" ${ BINDIR} /crucible-downstairs"
59
59
if [[ ! -f " $crucible_test " ]] || [[ ! -f " $dsc " ]] || [[ ! -f " $downstairs " ]]; then
60
60
echo " Can't find required binaries"
61
61
echo " Missing $crucible_test or $dsc or $downstairs "
Original file line number Diff line number Diff line change @@ -28,9 +28,9 @@ ROOT=$(cd "$(dirname "$0")/.." && pwd)
28
28
cd " $ROOT " || (echo failed to cd " $ROOT " ; exit 1)
29
29
export BINDIR=${BINDIR:- $ROOT / target/ debug}
30
30
31
- cds=" $BINDIR /crucible-downstairs"
32
- ct=" $BINDIR /crutest"
33
- dsc=" $BINDIR /dsc"
31
+ cds=" ${ BINDIR} /crucible-downstairs"
32
+ ct=" ${ BINDIR} /crutest"
33
+ dsc=" ${ BINDIR} /dsc"
34
34
35
35
for bin in $cds $ct $dsc ; do
36
36
if [[ ! -f " $bin " ]]; then
@@ -65,10 +65,10 @@ if [[ $? -ne 0 ]]; then
65
65
exit 1
66
66
fi
67
67
68
- verify_file=" $TEST_ROOT /test_repair_verify.data"
69
- test_log=" $TEST_ROOT /test_repair_out.txt"
70
- ds_log_prefix=" $TEST_ROOT /test_repair_ds"
71
- dsc_output_dir=" $TEST_ROOT /test_repair_dsc"
68
+ verify_file=" ${ TEST_ROOT} /test_repair_verify.data"
69
+ test_log=" ${ TEST_ROOT} /test_repair_out.txt"
70
+ ds_log_prefix=" ${ TEST_ROOT} /test_repair_ds"
71
+ dsc_output_dir=" ${ TEST_ROOT} /test_repair_dsc"
72
72
loops=100
73
73
74
74
usage () {
Original file line number Diff line number Diff line change @@ -41,17 +41,17 @@ if [[ $? -ne 0 ]]; then
41
41
exit 1
42
42
fi
43
43
44
- loop_log=" $TEST_ROOT /test_replace_special_summary.log"
45
- test_log=" $TEST_ROOT /test_replace_special.log"
46
- verify_log=" $TEST_ROOT /test_replace_special_verify.log"
47
- dsc_ds_log=" $TEST_ROOT /test_replace_special_dsc.log"
44
+ loop_log=" ${ TEST_ROOT} /test_replace_special_summary.log"
45
+ test_log=" ${ TEST_ROOT} /test_replace_special.log"
46
+ verify_log=" ${ TEST_ROOT} /test_replace_special_verify.log"
47
+ dsc_ds_log=" ${ TEST_ROOT} /test_replace_special_dsc.log"
48
48
49
49
ROOT=$( cd " $( dirname " $0 " ) /.." && pwd)
50
50
cd " $ROOT " || (echo failed to cd " $ROOT " ; exit 1)
51
51
export BINDIR=${BINDIR:- $ROOT / target/ debug}
52
- crucible_test=" $BINDIR /crutest"
53
- dsc=" $BINDIR /dsc"
54
- downstairs=" $BINDIR /crucible-downstairs"
52
+ crucible_test=" ${ BINDIR} /crutest"
53
+ dsc=" ${ BINDIR} /dsc"
54
+ downstairs=" ${ BINDIR} /crucible-downstairs"
55
55
if [[ ! -f " $crucible_test " ]] || [[ ! -f " $dsc " ]] || [[ ! -f " $downstairs " ]]; then
56
56
echo " Can't find required binaries"
57
57
echo " Missing $crucible_test or $dsc or $downstairs "
Original file line number Diff line number Diff line change @@ -38,16 +38,16 @@ if [[ $? -ne 0 ]]; then
38
38
exit 1
39
39
fi
40
40
41
- test_log=" $TEST_ROOT /test_replay.log"
42
- verify_log=" $TEST_ROOT /test_replay_verify.log"
43
- dsc_ds_log=" $TEST_ROOT /test_replay_dsc.log"
41
+ test_log=" ${ TEST_ROOT} /test_replay.log"
42
+ verify_log=" ${ TEST_ROOT} /test_replay_verify.log"
43
+ dsc_ds_log=" ${ TEST_ROOT} /test_replay_dsc.log"
44
44
45
45
ROOT=$( cd " $( dirname " $0 " ) /.." && pwd)
46
46
cd " $ROOT " || (echo failed to cd " $ROOT " ; exit 1)
47
47
export BINDIR=${BINDIR:- $ROOT / target/ debug}
48
- crucible_test=" $BINDIR /crutest"
49
- dsc=" $BINDIR /dsc"
50
- downstairs=" $BINDIR /crucible-downstairs"
48
+ crucible_test=" ${ BINDIR} /crutest"
49
+ dsc=" ${ BINDIR} /dsc"
50
+ downstairs=" ${ BINDIR} /crucible-downstairs"
51
51
if [[ ! -f " $crucible_test " ]] || [[ ! -f " $dsc " ]] || [[ ! -f " $downstairs " ]]; then
52
52
echo " Can't find required binaries"
53
53
echo " Missing $crucible_test or $dsc or $downstairs "
Original file line number Diff line number Diff line change @@ -63,9 +63,9 @@ ROOT=$(cd "$(dirname "$0")/.." && pwd)
63
63
cd " $ROOT " || (echo failed to cd " $ROOT " ; exit 1)
64
64
export BINDIR=${BINDIR:- $ROOT / target/ debug}
65
65
66
- cds=" $BINDIR /crucible-downstairs"
67
- ct=" $BINDIR /crutest"
68
- dsc=" $BINDIR /dsc"
66
+ cds=" ${ BINDIR} /crucible-downstairs"
67
+ ct=" ${ BINDIR} /crutest"
68
+ dsc=" ${ BINDIR} /dsc"
69
69
for bin in $cds $ct $dsc ; do
70
70
if [[ ! -f " $bin " ]]; then
71
71
echo " Can't find crucible binary at $bin " >&2
@@ -120,11 +120,11 @@ if [[ $? -ne 0 ]]; then
120
120
exit 1
121
121
fi
122
122
123
- export loop_log=" $TEST_ROOT /test_restart_repair.log"
124
- export test_log=" $TEST_ROOT /test_restart_repair_test.log"
125
- export verify_log=" $TEST_ROOT /test_restart_repair_verify.log"
126
- export dsc_log=" $TEST_ROOT /test_restart_repair_dsc.log"
127
- export dsc_ds_log=" $TEST_ROOT /dsc"
123
+ export loop_log=" ${ TEST_ROOT} /test_restart_repair.log"
124
+ export test_log=" ${ TEST_ROOT} /test_restart_repair_test.log"
125
+ export verify_log=" ${ TEST_ROOT} /test_restart_repair_verify.log"
126
+ export dsc_log=" ${ TEST_ROOT} /test_restart_repair_dsc.log"
127
+ export dsc_ds_log=" ${ TEST_ROOT} /dsc"
128
128
129
129
touch " $loop_log "
130
130
echo " starting $( date) " | tee " $loop_log "
You can’t perform that action at this time.
0 commit comments