Skip to content

Commit 1c0fece

Browse files
committed
TEST: eos-accounting-test - reduced scale of the test and reduced parallelism
1 parent 6367c85 commit 1c0fece

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

test/eos-accounting-test

100644100755
Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
#!/bin/bash
22

3+
set -x
4+
35
prefix=$1
46
host=${2-"localhost"}
57
url=root://$host
68
EOS_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+
815
cleanup() {
916
echo "Cleaning up the test directories"
1017
start_time=$(date +%s)
@@ -57,11 +64,12 @@ test_accounting $EOS_ACCOUNTING_DIR 0 0 0
5764
eos mkdir -p $EOS_ACCOUNTING_DIR/source
5865
eos mkdir -p $EOS_ACCOUNTING_DIR/destination
5966

60-
nDirs=50
67+
nDirs=20
6168
nFiles=10
6269

6370
echo "Creating directory structures for the test..."
6471
start_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
6775
for (( i=0; i<$nDirs; i++ ));
@@ -76,8 +84,9 @@ do
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
7988
done
80-
wait
89+
8190
end_time=$(date +%s)
8291
elapsed=$((end_time - start_time))
8392
echo "Done, elapsed time = $elapsed seconds"

test/eos-instance-test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ eos_squash() {
483483
}
484484

485485
eos_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

489489
eos_file_cont_detached() {

0 commit comments

Comments
 (0)