Home | History | Annotate | Download | only in connectathon
      1 AUTHOR = "Poornima Nayak <mpnayak (a] linux.vnet.ibm.com>"
      2 NAME = "connectathon"
      3 TEST_CATEGORY = "NFS FVT"
      4 TEST_CLASS = "General"
      5 TEST_TYPE = "client"
      6 TIME = 'MEDIUM'
      7 DOC = '''
      8 Test for testing nfs mounted paths.
      9 
     10 More information about connecthon can be found at
     11 http://www.connectathon.org/nfstests.html
     12 '''
     13 
     14 import datetime, os
     15 now = 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']
     18 iter_range = [1]
     19 tests = ['-s -t']
     20 tag_ver = 0
     21 for 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