Debian Codegraph @

testfilesystem.sh

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2
3 usagescip-shell shell bbmap 39.20+dfsg-3 usage().(){
4 echoscip-shell system . . echo. "
5 Written by Brian Bushnell
6 Last modified December 11, 2017
7
8 Description: Logs filesystem performance by creating, deleting,
9 and copying files.
10
11 Usage: testfilesystem.sh <in> <out> <log> <size> <ways> <interval in seconds>
12
13 'in' should contain the # symbol if ways>1.
14
15 Please contact Brian Bushnell at [email protected] if you encounter any problems.
16 "
17 }
18
19
20 #This block allows symlinked shellscripts to correctly set classpath.
21 pushd . > /dev/nullscip-shell filesystem . . `/dev/null`.
22 DIR="${BASH_SOURCE[0]}"
23 while [scip-shell system . . `[`. -h "$DIR" ]; do
24 cd "$(dirnamescip-shell system . . dirname. "$DIR")"
25 DIR="$(readlinkscip-shell system . . readlink. "$(basenamescip-shell system . . basename. "$DIR")")"
26 done
27 cd "$(dirnamescip-shell system . . dirname. "$DIR")"
28 DIR="$(pwdscip-shell system . . pwd.)/"
29 popd > /dev/nullscip-shell filesystem . . `/dev/null`.
30
31 #DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/"
32 CP="$DIR""current/"
33
34 z="-Xmx50m"
35 set=0
36
37 if [scip-shell system . . `[`. -z "$1" ] || [[ $1 == -h ]] || [[ $1 == --help ]]; then
38 usagescip-shell shell bbmap 39.20+dfsg-3 usage().
39 exit
40 fi
41
42 calcXmxscip-shell shell bbmap 39.20+dfsg-3 calcXmx(). () {
43 source "$DIR""/calcmem.sh"
44 setEnvironment
45 parseXmx "$@"
46 }
47 calcXmxscip-shell shell bbmap 39.20+dfsg-3 calcXmx(). "$@"
48
49 function testfsscip-shell shell bbmap 39.20+dfsg-3 testfs().() {
50 local CMD="java $EA $EOOM $z -cp $CP jgi.TestFilesystem $@"
51 echoscip-shell system . . echo. $CMD >&2
52 eval $CMD
53 }
54
55 testfsscip-shell shell bbmap 39.20+dfsg-3 testfs(). "$@"