• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1AUTHOR = "Poornima Nayak <mpnayak@linux.vnet.ibm.com>"
2NAME = "connectathon"
3TEST_CATEGORY = "NFS FVT"
4TEST_CLASS = "General"
5TEST_TYPE = "client"
6TIME = 'MEDIUM'
7DOC = '''
8Test for testing nfs mounted paths.
9
10More information about connecthon can be found at
11http://www.connectathon.org/nfstests.html
12'''
13
14import datetime, os
15now = datetime.datetime.now()
16#iter_range = [10, 100, 1000, 10000]
17#tests = ['-b -t', '-g -t', '-g -f', '-s -t', '-s -f', '-l -f', '-l -t']
18iter_range = [1]
19tests = ['-s -t']
20tag_ver = 0
21for test in tests:
22    for j in iter_range:
23        # On this example, /mnt/test is an NFS mounted location previously set
24        dir = os.path.join('/mnt', 'test', now.strftime("%Y-%m-%d%H:%M"))
25        if not os.path.isdir(dir):
26            os.makedirs(dir)
27        job.run_test(url='connectathon', testdir=dir, args=test,
28                     cthon_iterations=j,
29                     tag=("itera-%s-test-%s" % (j, tag_ver)))
30        tag_ver = tag_ver + 1
31
32