File: gitclone.nfsometer

package info (click to toggle)
nfsometer 1.9-3.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 836 kB
  • sloc: python: 4,928; sh: 156; javascript: 32; makefile: 5
file content (39 lines) | stat: -rw-r--r-- 1,032 bytes parent folder | download
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
#
#   RUNDIR - a newly created directory on the nfs share.
#            will exist only when running COMMAND.
# 
#   LOCALDIR - a directory on the local fs meant to serve as storage space for 
#             the fetch stage and setup() call
#             will exist for setup, fetch stages and when COMMAND is run, but
#             not durning check().
#

URL="git://git.linux-nfs.org/projects/trondmy/linux-nfs"
URL_OUT="linux-nfs"

#
# the command to run
#
COMMAND="git clone $LOCALDIR/linux-nfs"

# 
# command description
#
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"

# workload_check()
#  - no arguments
#  - any output to stdout means the check failed
#  - use need_* functions from workloads.sh
workload_check()
{
	need_bin git
}

# workload_setup()
#  - no arguments
#  - non-zero return indicates a problem
workload_setup()
{
	return 0
}