-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsettings.sh
executable file
·85 lines (64 loc) · 1.64 KB
/
settings.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#!/bin/bash
# If you change the values below, you may need to do a test_prepare.sh!
# Specify the remote server to copy to and from
REMOTE_SERVER=webdav.server.domain
# Specify the protocol used
PROTOCOL=https
# Storage path were the user is allowed to write on the remote machine
STORAGE_PATH=/remote.php/webdav
# Speaks for itself
USER=user
PASSWD=blablabla
#Testfile size in KB
TESTFILE_SIZE_KB=102400
# Number of files (not nessecerily same as number of transfers)
FILES=100000
# The number of concurrent writes during the tests
# Can be 0 or greater
WRITES=1
# The number of concurrent writes during the tests
# Can be 0 or greater
READS=10
#The stuff below you can leave as is.
#----------------------------------------------------
WRITEDIR=`pwd`/input_files
error=0
if [ -z ${REMOTE_SERVER} ]; then
echo "Please specify REMOTE_SERVER in settings.sh"
error=1
fi
if [ -z ${STORAGE_PATH} ]; then
echo "Please specify STORAGE_PATH in settings.sh"
error=1
fi
if [ -z ${PROTOCOL} ]; then
echo "Please specify PROTOCOL in settings.sh"
error=1
fi
if [ -z ${USER} ]; then
echo "Please specify USER in settings.sh"
error=1
fi
if [ -z ${PASSWD} ]; then
echo "Please specify PASSWD in settings.sh"
error=1
fi
if [ -z ${FILES} ]; then
echo "Please specify FILES in settings.sh"
error=1
fi
if [ -z ${TESTFILE_SIZE_KB} ]; then
echo "Please specify TESTFILE_SIZE_KB in settings.sh"
error=1
fi
if [ -z ${READS} ]; then
echo "Please specify READS in settings.sh"
error=1
fi
if [ -z ${WRITES} ]; then
echo "Please specify WRITES in settings.sh"
error=1
fi
if [ $error -ne 0 ]; then
exit 1
fi