Debian Codegraph @

nfsometerlib/workloads/cthon.nfsometer

raw
1 #
2 # RUNDIR - a newly created directory on the nfs share.
3 # will exist only when running COMMAND.
4 #
5 # LOCALDIR - a directory on the local fs meant to serve as storage space for
6 # the fetch stage and setup() call
7 # will exist for setup, fetch stages and when COMMAND is run, but
8 # not durning check().
9 #
10
11 URL="git://linux-nfs.org/~steved/cthon04.git"
12 URL_OUT="cthon"
13
14 #
15 # the command to run
16 #
17 COMMAND="cd $LOCALDIR/cthon && NFSTESTDIR=\"$RUNDIR\" ./runtests -a"
18
19 #
20 # command description
21 #
22 DESCRIPTION="The connectathon test suite from git://linux-nfs.org/~steved/cthon04.git. All tests are run: basic, special, general and locking"
23
24 # workload_check()
25 # - no arguments
26 # - any output to stdout means the check failed
27 # - use need_* functions from workloads.sh
28 workload_check()
29 {
30 need_bin time
31 }
32
33 # workload_setup()
34 # - no arguments
35 # - non-zero return indicates a problem
36 workload_setup()
37 {
38 cd cthon || return 1
39
40 # fix tests.init file
41 mv tests.init tests.init.bak || return 1
42 cat tests.init.bak | grep -v "SUNW" > tests.init || return 1
43
44 # fix runtests script
45 mv runtests runtests.bak || return 1
46 cat runtests.bak | sed 's/TESTARG=-a/TESTARG=/g' > runtests || return 1
47
48 # finally make
49 make 2>&1 || return 1
50
51 return 0
52 }
53
54