Debian Codegraph @

nfsometerlib/workloads/gitclone.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://git.linux-nfs.org/projects/trondmy/linux-nfs"
12 URL_OUT="linux-nfs"
13
14 #
15 # the command to run
16 #
17 COMMAND="git clone $LOCALDIR/linux-nfs"
18
19 #
20 # command description
21 #
22 DESCRIPTION="A git clone of a very large git repo: the linux kernel. Uses Trond's repo from git.linux-nfs.org. The measured 'git clone's are cloning from local disk to nfs as to not depend on connectivity to git.linux-nfs.org"
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 git
31 }
32
33 # workload_setup()
34 # - no arguments
35 # - non-zero return indicates a problem
36 workload_setup()
37 {
38 return 0
39 }