File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ set -x
4+
35prefix=$1
46host=${2-" localhost" }
57url=root://$host
68EOS_ACCOUNTING_DIR=$prefix
79
10+ echo " prefix = $prefix "
11+ echo " host = $host "
12+ echo " url = $url "
13+ echo " EOS_ACCOUNTING_DIR = $EOS_ACCOUNTING_DIR "
14+
815cleanup () {
916 echo " Cleaning up the test directories"
1017 start_time=$( date +%s)
@@ -57,11 +64,12 @@ test_accounting $EOS_ACCOUNTING_DIR 0 0 0
5764eos mkdir -p $EOS_ACCOUNTING_DIR /source
5865eos mkdir -p $EOS_ACCOUNTING_DIR /destination
5966
60- nDirs=50
67+ nDirs=20
6168nFiles=10
6269
6370echo " Creating directory structures for the test..."
6471start_time=$( date +%s)
72+
6573# create nDirs directories in each we will create another directory containing a 0-size file (touch)
6674# then copy /etc/passwd to the nDirs directories
6775for (( i= 0 ; i< $nDirs ; i++ )) ;
7684 eos mkdir -p $EOS_ACCOUNTING_DIR /source/$i /dir$j && eos touch $EOS_ACCOUNTING_DIR /source/$i /dir$j /touch$j &
7785 eos cp /etc/passwd $url /$EOS_ACCOUNTING_DIR /source/$i /passwd$j &
7886 done
87+ wait
7988done
80- wait
89+
8190end_time=$( date +%s)
8291elapsed=$(( end_time - start_time))
8392echo " Done, elapsed time = $elapsed seconds"
Original file line number Diff line number Diff line change @@ -483,7 +483,7 @@ eos_squash() {
483483}
484484
485485eos_accounting () {
486- echo eos-accounting-test $1 ; eval eos-accounting-test $1 ${EOS_TEST_REDIRECTOR} >> $EOSCERTLOG 2>&1
486+ echo eos-accounting-test " $1 " ; eval eos-accounting-test " $1 " ${EOS_TEST_REDIRECTOR} >> $EOSCERTLOG 2>&1
487487}
488488
489489eos_file_cont_detached () {
You can’t perform that action at this time.
0 commit comments